source: rtems/cpukit/libcsupport/src/ftrylockfile.c @ e22af78

4.115
Last change on this file since e22af78 was ee89b319, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/06/11 at 13:39:12

2011-12-06 Ralf Corsépius <ralf.corsepius@…>

  • libcsupport/src/flockfile.c, libcsupport/src/ftrylockfile.c, libcsupport/src/funlockfile.c: Add attribute((unused)) to unused function parameters.
  • Property mode set to 100644
File size: 574 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 __attribute__((unused)))
21{
22  rtems_set_errno_and_return_minus_one( ENOTSUP );
23}
24
25#endif
Note: See TracBrowser for help on using the repository browser.