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

📄 ckcdeb.h

📁 早期freebsd实现
💻 H
📖 第 1 页 / 共 3 页
字号:
    struct zstr reply;    /* This goes last, used for attribute reply */};/* Kermit file information structure */struct filinfo {  int bs;				/* Blocksize */  int cs;				/* Character set */  long rl;				/* Record length */  int org;				/* Organization */  int fmt;				/* Record format */  int cc;				/* Carriage control */  int typ;				/* Type (text/binary) */  int dsp;				/* Disposition */  char *os_specific;			/* OS-specific attributes */  unsigned int lblopts;			/* LABELED FILE options bitmask */};/* VMS values for LABELED FILE options bitmask */#ifdef VMS#define LBL_NAM  1			/* Ignore incoming name if set */#define LBL_PTH  2			/* Use complete path if set */#define LBL_ACL  4			/* Preserve ACLs if set */#define LBL_BCK  8			/* Preserve backup date if set */#define LBL_OWN 16			/* Preserve ownership if set */#endif /* VMS *//*  Data types.  First the header file for data types so we can pick up the  types used for pids, uids, and gids.  Override this section by putting  -DCKTYP_H=xxx on the command line to specify the header file where your  system defines these types.*/#ifdef OSK				/* OS-9 */#include <types.h>#else					/* General case, not OS-9 */#ifndef CKTYP_H#ifndef VMS#ifndef MAC#ifndef AMIGA#define CKTYP_H <sys/types.h>#endif /* AMIGA */#endif /* MAC */#endif /* VMS */#endif /* CKTYP_H */#ifdef GEMDOS#undef CKTYP_H#include <types.h>#endif /* GEMDOS */#ifdef CKTYP_H				/* Include it. */#ifdef COHERENT				/* Except for COHERENT */#include <sys/types.h>#else#ifdef datageneral#include <sys/types.h>			/* Compiler didn't like other */#else#include CKTYP_H#endif /* datageneral */#endif /* COHERENT */#endif /* CKTYP_H */#endif /* OSK */			/* End of types.h section *//*  Data type for pids.  If your system uses a different type, put something  like -DPID_T=pid_t on command line, or override here.*/#ifndef PID_T#define PID_T int#endif /* PID_T *//*  Data types for uids and gids.  Same deal as for pids.  Wouldn't be nice if there was a preprocessor test to find out if a  typedef existed?*/#ifdef VMS/* Not used in VMS so who cares */#define UID_T int#define GID_T int#endif /* VMS */#ifdef POSIX/* Or would it be better (or worse?) to use _POSIX_SOURCE here? */#ifndef UID_T#define UID_T uid_t#endif /* UID_T */#ifndef GID_T#define GID_T gid_t#endif /* GID_T */#else /* Not POSIX */#ifdef SVR4/* SVR4 and later have uid_t and gid_t. *//* SVR3 and earlier use int, or unsigned short, or.... */#ifndef UID_T#define UID_T uid_t#endif /* UID_T */#ifndef GID_T#define GID_T gid_t#endif /* GID_T */#else /* Not SVR4 */#ifdef BSD43#ifndef UID_T#define UID_T uid_t#endif /* UID_T */#ifndef GID_T#define GID_T gid_t#endif /* GID_T */#else /* Not BSD43 *//* Default these to int for older UNIX versions */#ifndef UID_T#define UID_T int#endif /* UID_T */#ifndef GID_T#define GID_T int#endif /* GID_T */#endif /* BSD43 */#endif /* SVR4  */#endif /* POSIX *//*   getpwuid() arg type, which is not necessarily the same as UID_T,  e.g. in SCO UNIX SVR3, it's int.*/#ifndef PWID_T#define PWID_T UID_T#endif /* PWID_T */#ifdef NEXT				/* Argument for wait() */#include <sys/wait.h>typedef union wait WAIT_T;#else#ifdef POSIX#include <sys/wait.h>#define WAIT_T pid_t#elsetypedef int WAIT_T;#endif /* POSIX */#endif /* NEXT *//* Forward declarations of system-dependent functions callable from all *//* C-Kermit modules. *//* File-related functions from system-dependent file i/o module */_PROTOTYP( int zkself, (void) );_PROTOTYP( int zopeni, (int, char *) );_PROTOTYP( int zopeno, (int, char *, struct zattr *, struct filinfo *) );_PROTOTYP( int zclose, (int) );#ifndef MAC_PROTOTYP( int zchin, (int, int *) );#endif /* MAC */_PROTOTYP( int zsinl, (int, char *, int) );_PROTOTYP( int zinfill, (void) );_PROTOTYP( int zsout, (int, char*) );_PROTOTYP( int zsoutl, (int, char*) );_PROTOTYP( int zsoutx, (int, char*, int) );_PROTOTYP( int zchout, (int, char) );_PROTOTYP( int zoutdump, (void) );_PROTOTYP( int zsyscmd, (char *) );_PROTOTYP( int zshcmd, (char *) );_PROTOTYP( int chkfn, (int) );_PROTOTYP( long zchki, (char *) );_PROTOTYP( int iswild, (char *) );_PROTOTYP( int zchko, (char *) );_PROTOTYP( int zdelet, (char *) );_PROTOTYP( VOID zrtol, (char *,char *) );_PROTOTYP( VOID zltor, (char *,char *) );_PROTOTYP( VOID zstrip, (char *,char **) );_PROTOTYP( int zchdir, (char *) );_PROTOTYP( char * zhome, (void) );_PROTOTYP( char * zgtdir, (void) );_PROTOTYP( int zxcmd, (int, char *) );#ifndef MAC_PROTOTYP( int zclosf, (int) );#endif /* MAC */_PROTOTYP( int zxpand, (char *) );_PROTOTYP( int znext, (char *) );_PROTOTYP( int zchkspa, (char *, long) );_PROTOTYP( VOID znewn, (char *, char **) );_PROTOTYP( int zrename, (char *, char *) );_PROTOTYP( int zsattr, (struct zattr *) );_PROTOTYP( int zfree, (char *) );_PROTOTYP( char * zfcdat, (char *) );_PROTOTYP( int zstime, (char *, struct zattr *, int) );_PROTOTYP( int zmail, (char *, char *) ); _PROTOTYP( int zprint, (char *, char *) ); _PROTOTYP( char * tilde_expand, (char *) ); /* Functions from system-dependent terminal i/o module */_PROTOTYP( int ttopen, (char *, int *, int, int) );  /* tty functions */#ifndef MAC_PROTOTYP( int ttclos, (int) );#endif /* MAC */_PROTOTYP( int tthang, (void) );_PROTOTYP( int ttres, (void) );_PROTOTYP( int ttpkt, (long, int, int) );#ifndef MAC_PROTOTYP( int ttvt, (long, int) );#endif /* MAC */_PROTOTYP( int ttsspd, (int) );_PROTOTYP( long ttgspd, (void) );_PROTOTYP( int ttflui, (void) );_PROTOTYP( int ttfluo, (void) );_PROTOTYP( int ttchk, (void) );_PROTOTYP( int ttxin, (int, CHAR *) );_PROTOTYP( int ttol, (CHAR *, int) );_PROTOTYP( int ttoc, (char) );_PROTOTYP( int ttinc, (int) );_PROTOTYP( int ttscarr, (int) );_PROTOTYP( int ttgmdm, (void) );_PROTOTYP( int ttsndb, (void) );_PROTOTYP( int ttsndlb, (void) );#ifdef PARSENSE#ifdef UNIX_PROTOTYP( int ttinl, (CHAR *, int, int, CHAR, CHAR, int) );#else#ifdef VMS_PROTOTYP( int ttinl, (CHAR *, int, int, CHAR, CHAR, int) );#else_PROTOTYP( int ttinl, (CHAR *, int, int, CHAR, CHAR) );#endif /* VMS */#endif /* UNIX */#else_PROTOTYP( int ttinl, (CHAR *, int, int, CHAR) );#endif /* PARSENSE *//* Console functions */_PROTOTYP( int congm, (void) );#ifdef COMMENT_PROTOTYP( VOID conint, (SIGTYP (*)(int, int), SIGTYP (*)(int, int)) );#else_PROTOTYP( VOID conint, (SIGTYP (*)(int), SIGTYP (*)(int)) );#endif_PROTOTYP( VOID connoi, (void) );_PROTOTYP( int concb, (char) );_PROTOTYP( int conbin, (char) );_PROTOTYP( int conres, (void) );_PROTOTYP( int conoc, (char) );_PROTOTYP( int conxo, (int, char *) );_PROTOTYP( int conol, (char *) );_PROTOTYP( int conola, (char *[]) );_PROTOTYP( int conoll, (char *) );_PROTOTYP( int conchk, (void) );_PROTOTYP( int coninc, (int) );_PROTOTYP( int psuspend, (int) );_PROTOTYP( int priv_ini, (void) );_PROTOTYP( int priv_on, (void) );_PROTOTYP( int priv_off, (void) );_PROTOTYP( int priv_can, (void) );_PROTOTYP( int priv_chk, (void) );_PROTOTYP( int priv_opn, (char *, int) );_PROTOTYP( int sysinit, (void) );	/* Misc Kermit functions */_PROTOTYP( int syscleanup, (void) );_PROTOTYP( int msleep, (int) );_PROTOTYP( VOID rtimer, (void) );_PROTOTYP( int gtimer, (void) );_PROTOTYP( VOID ttimoff, (void) );_PROTOTYP( VOID ztime, (char **) );_PROTOTYP( int parchk, (CHAR *, CHAR, int) );_PROTOTYP( VOID doexit, (int, int) );_PROTOTYP( int askmore, (void) );_PROTOTYP( VOID fatal, (char *) );/* Key mapping support */#ifdef NOICP#ifndef NOSETKEY#define NOSETKEY#endif /* NOSETKEY */#endif /* NOICP */_PROTOTYP( int congks, (int) );#ifndef NOSETKEY#ifdef OS2#define KMSIZE 768typedef int KEY;typedef CHAR *MACRO;extern int wideresult;_PROTOTYP( VOID keymapinit, (void) );#else /* Not OS2 *//*  Catch-all for systems where we don't know how to read keyboard scan  codes > 255.  Note: CHAR (i.e. unsigned char) is very important here.*/#define KMSIZE 256typedef CHAR KEY;typedef CHAR * MACRO;#define congks coninc#endif /* OS2 */#endif /* NOSETKEY *//*  Function prototypes for system and library functions.*/#ifdef _POSIX_SOURCE#ifndef VMS#ifndef MAC#define CK_ANSILIBS#endif /* MAC */#endif /* VMS */#endif /* _POSIX_SOURCE */#ifdef NEXT#define CK_ANSILIBS#endif /* NEXT */#ifdef SVR4#define CK_ANSILIBS#endif /* SVR4 */#ifdef OS2#define KANJI#define CK_ANSILIBS#define MYCURSES#define CK_RTSCTS#ifdef __IBMC__#define S_IFMT 0xF000#define timezone _timezone#endif /* __IBMC__ */#include <io.h>#ifdef __EMX__#ifndef __32BIT__#define __32BIT__#endif /* __32BIT__ */#include <sys/timeb.h>#else#include <direct.h>#define SIGALRM SIGUSR1_PROTOTYP( unsigned alarm, (unsigned) );_PROTOTYP( unsigned sleep, (unsigned) );#endif /* __EMX__ */_PROTOTYP( long zdskspace, (int) );_PROTOTYP( int zchdsk, (int) );_PROTOTYP( int conincraw, (int) );_PROTOTYP( int ttiscom, (int f) );_PROTOTYP( int IsFileNameValid, (char *) );_PROTOTYP( void ChangeNameForFAT, (char *) );_PROTOTYP( char *GetLoadPath, (void) );#endif /* OS2 */#ifdef MYCURSES				/* MYCURSES implies CK_CURSES */#ifndef CK_CURSES#define CK_CURSES#endif /* CK_CURSES */#endif /* MYCURSES */#ifdef CK_ANSILIBS/*  String library functions.  For ANSI C, get prototypes from <string.h>.  Otherwise, skip the prototypes.*/#include <string.h>/*  Prototypes for other commonly used library functions, such as  malloc, free, getenv, atol, atoi, and exit.  Otherwise, no prototypes.*/#include <stdlib.h>#ifdef DIAB /* DIAB DS90 *//* #include <commonC.h>  */#include <sys/wait.h>#ifdef COMMENTextern void exit(int status);extern void _exit(int status);extern int uname(struct utsname *name);#endif /* COMMENT */extern int chmod(char *path, int mode);extern int ioctl(int fildes, int request, ...);extern int rdchk(int ttyfd);extern int nap(int m);#ifdef COMMENTextern int getppid(void);#endif /* COMMENT */extern int _filbuf(FILE *stream);extern int _flsbuf(char c,FILE *stream);#endif /* DIAB *//*  Prototypes for UNIX functions like access, alarm, chdir, sleep, fork,  and pause.  Otherwise, no prototypes.*/#ifdef NEXT#include <libc.h>#else#ifndef AMIGA#ifndef OS2#include <unistd.h>#endif /* OS2 */#endif /* AMIGA */#endif /* NEXT */#else /* Not ANSI libs... */#ifdef MAC#include <String.h>#include <StdLib.h>#endif /* MAC */#ifdef SUNOS41#include <unistd.h>#include <stdlib.h>#else/*  It is essential that these are declared correctly!*/_PROTOTYP( char * malloc, (unsigned int) );_PROTOTYP( char * getenv, (char *) );_PROTOTYP( long atol, (char *) );#endif /* SUNOS4 */#endif /* CK_ANSILIBS */#ifndef NULL				/* In case NULL is still not defined */#define NULL 0L/* or #define NULL 0 *//* or #define NULL ((char *) 0) *//* or #define NULL ((void *) 0) */#endif /* NULL *//* Funny names for library functions department... */#ifdef ZILOG#define setjmp setret#define longjmp longret#define jmp_buf ret_buf#define getcwd curdir#endif /* ZILOG */#endif /* CKCDEB_H *//* End of ckcdeb.h */

⌨️ 快捷键说明

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