source: rtems/cpukit/libcsupport/src/ftrylockfile.c @ 98b785e

4.115
Last change on this file since 98b785e was 45fcb76, checked in by Joel Sherrill <joel.sherrill@…>, on 06/28/10 at 22:14:35

2010-06-28 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/brk.c, libcsupport/src/gettod.c, libcsupport/src/times.c, libcsupport/src/fchdir.c, libcsupport/src/ftrylockfile.c, libcsupport/src/getpwent.c, libcsupport/src/gxx_wrappers.c, libcsupport/src/libio_sockets.c, libcsupport/src/pipe.c: Use rtems_set_errno_and_return_minus_one() where it was missed before.
  • Property mode set to 100644
File size: 550 bytes
Line 
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
13#if defined(RTEMS_NEWLIB) && !defined(HAVE_FTRYLOCKFILE) && defined(HAVE_DECL_FTRYLOCKFILE)
14
15#include <stdio.h>
16#include <rtems/seterr.h>
17#include <errno.h>
18
19/* This is a non-functional stub */
20int ftrylockfile(FILE* file)
21{
22  rtems_set_errno_and_return_minus_one( ENOTSUP );
23}
24
25#endif
Note: See TracBrowser for help on using the repository browser.