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

4.104.114.84.95
Last change on this file since a85d8ec was b72e368c, checked in by Joel Sherrill <joel.sherrill@…>, on 01/04/02 at 18:29:03

2002-01-04 Ralf Corsepius <corsepiu@…>

  • include/rtems/seterr.h: Add do {..} while (0) in defines. Rename set_errno_and_return_minus_one into rtems_set_errno_and_return_minus_one.
  • Property mode set to 100644
File size: 591 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 rtems_set_errno_and_return_minus_one( _error ) \
16  do { errno = (_error); return -1; } while(0)
17
18#define rtems_set_errno_and_return_minus_one_cast( _error, _cast ) \
19  do { errno = (_error); return (_cast) -1; } while(0)
20
21#endif
22/* end of include file */
Note: See TracBrowser for help on using the repository browser.