OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [include/] [rtems/] [seterr.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
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
 *  seterr.h,v 1.2 2002/01/04 18:29:03 joel Exp
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 */

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.