You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
492 B

#ifndef BERRNO_H
#define BERRNO_H
/* 常用的错误码 (也表示中断错误、信号等)*/
#ifdef ENOENT
#undef ENOENT
#endif
#define ENOENT 2
#ifdef EINTR
#undef EINTR
#endif
#define EINTR 4
#ifdef EIO
#undef EIO
#endif
#define EIO 5
#ifdef EAGAIN
#undef EAGAIN
#endif
#define EAGAIN 11
#ifdef ENOMEM
#undef ENOMEM
#endif
#define ENOMEM 12
#ifdef EINVAL
#undef EINVAL
#endif
#define EINVAL 22
#ifdef EPIPE
#undef EPIPE
#endif
#define EPIPE 32
#endif