Changeset 531


Ignore:
Timestamp:
Aug 5, 2003, 1:56:50 PM (22 years ago)
Author:
bird
Message:

Backed out Andys changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/sys/errno.h

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r530 r531  
    4747#define _SYS_ERRNO_H /* bird: emx */
    4848
    49 #if !defined (_ERRNO) && !defined (__ASSEMBLER__)
    50 #define _ERRNO
    51 extern int *_errno (void);
    52 #define errno (*_errno ())
    53 #endif
    54 
    55 #ifndef __ASSEMBLER__
    56 extern __const__ char * __const__ sys_errlist[];
    57 extern __const__ int sys_nerr;
    58 #endif
     49#ifndef _KERNEL
     50#if !defined (_ERRNO) && !defined (__ASSEMBLER__) /* bird: emx */
     51#include <sys/cdefs.h>
     52__BEGIN_DECLS
     53#define _ERRNO                          /* bird: emx */
     54extern int * _errno(void);              /* bird: emx is using _errno, bsd __error. */
     55__END_DECLS
     56#define errno (* _errno())              /* bird: emx */
     57#endif /* bird: emx */
     58#endif 
    5959
    6060#define EPERM           1               /* Operation not permitted */
     
    191191#endif /* _POSIX_SOURCE */
    192192
    193 #endif
     193#ifdef _KERNEL
     194/* pseudo-errors returned inside kernel to modify return to process */
     195#define ERESTART        (-1)            /* restart syscall */
     196#define EJUSTRETURN     (-2)            /* don't modify regs, just return */
     197#define ENOIOCTL        (-3)            /* ioctl not handled by this layer */
     198#define EDIRIOCTL       (-4)            /* do direct ioctl in GEOM */
     199#endif
     200
     201#endif
Note: See TracChangeset for help on using the changeset viewer.