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
RevLine 
[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]20int 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.