source: rtems/cpukit/libcsupport/src/ftrylockfile.c @ 167654e

5
Last change on this file since 167654e was 167654e, checked in by Sebastian Huber <sebastian.huber@…>, on 10/18/18 at 12:45:24

Remove checks for flockfile(), etc. declarations

Declarations provided by Newlib since 2002.

Update #3409.

  • Property mode set to 100644
File size: 530 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)
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  (void) file;
23  rtems_set_errno_and_return_minus_one( ENOTSUP );
24}
25
26#endif
Note: See TracBrowser for help on using the repository browser.