source: rtems/cpukit/score/include/rtems/seterr.h @ 11874561

4.104.114.84.95
Last change on this file since 11874561 was 11874561, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/21/04 at 07:17:38

Adjust doxygen @file.

  • Property mode set to 100644
File size: 742 bytes
Line 
1/**
2 *  @file  rtems/seterr.h
3 *
4 *  This file contains macros and definitions which ease the burden
5 *  of consistently setting errno and returning -1.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2004.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef __RTEMS_SET_ERRNO_h
20#define __RTEMS_SET_ERRNO_h
21
22#define rtems_set_errno_and_return_minus_one( _error ) \
23  do { errno = (_error); return -1; } while(0)
24
25#define rtems_set_errno_and_return_minus_one_cast( _error, _cast ) \
26  do { errno = (_error); return (_cast) -1; } while(0)
27
28#endif
29/* end of include file */
Note: See TracBrowser for help on using the repository browser.