⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bsd.h

📁 AS86 and LD86 source codes, used in build linux 0.
💻 H
字号:
/* bsd.h - simplify porting BSD programs to Linux - rick sladkey *//* make sure BSD features are enabled, i.e. __USE_BSD and _FAVOR_BSD *//* cpp in gcc 2.3.3 is broken.#ifndef _BSD_BSD_H#define _BSD_BSD_H*/#define _BSD_SOURCE 1#include <features.h>#include <endian.h>/* some BSD progs expect MIN and MAX to be defined */#define MIN(a, b)	((a) < (b) ? (a) : (b))#define MAX(a, b)	((a) > (b) ? (a) : (b))/* make sure we get L_SET and L_INCR, which is in a different place */#include <sys/file.h>/* BSD has slight non-POSIX names (and meanings :-) for some things */#define FAPPEND		O_APPEND #include <limits.h>/* (absolute) max # characters in exec arglist */#define NCARGS		ARG_MAX/* ftpd uses this as bits per byte, I don't know why it's called NBBY */#define NBBY		CHAR_BIT/* gloss over slight differences between BSD direct and POSIX dirent */  #define d_namlen	d_reclen#if 0/* See <bsd/signal.h> */typedef void	sig_t;#endif/* #endif _BSD_BSD_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -