source: rtems/c/src/exec/score/include/rtems/seterr.h @ 188c82b

4.104.114.84.95
Last change on this file since 188c82b was 188c82b, checked in by Joel Sherrill <joel.sherrill@…>, on 08/30/00 at 17:12:55

2000-08-30 Joel Sherrill <joel@…>

  • Many files: Moved posix/include/rtems/posix/seterr.h to score/include/rtems/seterr.h so it would be available within all APIs.
  • Property mode set to 100644
File size: 555 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-1999.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.OARcorp.com/rtems/license.html.
8 *
9 *  $Id$
10 */
11 
12#ifndef __RTEMS_SET_ERRNO_h
13#define __RTEMS_SET_ERRNO_h
14 
15#define set_errno_and_return_minus_one( _error ) \
16  { errno = (_error); return -1; }
17
18#define set_errno_and_return_minus_one_cast( _error, _cast ) \
19  { errno = (_error); return (_cast) -1; }
20
21#endif
22/* end of include file */
Note: See TracBrowser for help on using the repository browser.