source:
rtems/cpukit/libcsupport/src/ftrylockfile.c
@
167654e
Last change on this file since 167654e was 167654e, checked in by Sebastian Huber <sebastian.huber@…>, on 10/18/18 at 12:45:24 | |
---|---|
|
|
File size: 530 bytes |
Rev | Line | |
---|---|---|
[c7989fe] | 1 | /* |
2 | * Copyright (c) 2009 by | |
3 | * Ralf Corsépius, Ulm, Germany. All rights reserved. | |
4 | * | |
5 | * Permission to use, copy, modify, and distribute this software | |
6 | * is freely granted, provided that this notice is preserved. | |
7 | */ | |
8 | ||
9 | #if HAVE_CONFIG_H | |
10 | #include "config.h" | |
11 | #endif | |
12 | ||
[167654e] | 13 | #if defined(RTEMS_NEWLIB) && !defined(HAVE_FTRYLOCKFILE) |
[c7989fe] | 14 | |
15 | #include <stdio.h> | |
[45fcb76] | 16 | #include <rtems/seterr.h> |
17 | #include <errno.h> | |
[c7989fe] | 18 | |
19 | /* This is a non-functional stub */ | |
[f97536d] | 20 | int ftrylockfile(FILE* file) |
[c7989fe] | 21 | { |
[f97536d] | 22 | (void) file; |
[45fcb76] | 23 | rtems_set_errno_and_return_minus_one( ENOTSUP ); |
[c7989fe] | 24 | } |
25 | ||
26 | #endif |
Note: See TracBrowser
for help on using the repository browser.