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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [posix/] [include/] [rtems/] [posix/] [seterr.h] - Blame information for rev 846

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
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: seterr.h,v 1.2 2001-09-27 11:59:14 chris Exp $
10
 */
11
 
12
#ifndef __POSIX_SET_ERRNO_h
13
#define __POSIX_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 */

powered by: WebSVN 2.1.0

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