unix.h

来自「支持X/YModem和cis_b+协议的串口通讯程序」· C头文件 代码 · 共 35 行

H
35
字号
/*****  Editline system header file for Unix.*/#define strdup xc_strdupextern char *xc_strdup(const char *s);#define CRLF		"\r\n"#include <sys/types.h>#include <sys/stat.h>/* extern int ioctl(int fildes, int request, ...);*/#include <sys/ioctl.h>#if	defined(USE_DIRENT)#include <dirent.h>typedef struct dirent	DIRENTRY;#else#include <sys/dir.h>typedef struct direct	DIRENTRY;#endif	/* defined(USE_DIRENT) */#if	!defined(S_ISDIR)#define S_ISDIR(m)		(((m) & S_IFMT) == S_IFDIR)#endif	/* !defined(S_ISDIR) */#ifdef BSD   /* 386BSD has bad toupper() tolower()  functions */#ifdef i386#undef tolower(c)#undef toupper(c)#define tolower(x) (((x)>0x40)&&((x)<0x5b)?((x)|0x20):(x))#define toupper(x) (((x)>0x60)&&((x)<0x7b)?((x)&0xdf):(x))#endif#endif

⌨️ 快捷键说明

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