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

📄 llib-lc

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻
📖 第 1 页 / 共 2 页
字号:
char *	strncpy(a,b,n) char *a, *b; int n; { return a; }char *	strchr(s, c) char *s; int c; { return s; }char *	strrchr(s, c) char *s; int c; { return s; }char *	strpbrk(s, brk) char *s, *brk; { return s; }int	strspn(s, set) char *s, *set; { return(0); }int	strcspn(s, set) char *s, *set; { return(0); }char *	strtok(s, sep) char *s, *sep; { return s; }char *	index(s,c) char *s, c; { return s; }char *	rindex(s,c) char *s, c; { return s; }/* SWAB(3) */void	swab(f,t,n) char *f, *t; int n; {}/* SYSCONF(3) */long	sysconf(n) int n; { return(0L); }/* SYSTEM(3) */int	system(s) char *s; { return(0); }/* TIMES(3C) */#ifndef SYSTEM_FIVEint	times(b) struct tms *b; { return(0); }#endif/* TTYNAME(3) */char *	ttyname(f) int f; { return " "; }int	isatty(f) int f; { return 1; }int	ttyslot() { return 1; }/* UNGETC(3S) */int	ungetc(c,f) int c; FILE *f; {  return(c); }/* UTIME(3C) */int 	utime(f,t) char *f; time_t t[]; { return(1); }struct	_iobuf _iob[];/* Things in the Ultrix-Berkeley environment that don't need to be * in the SYSTEM_FIVE environment. */#ifndef SYSTEM_FIVE/* BIND(2) */int	bind(s,n,l) int s; struct sockaddr *n; int l; { return 0; }/* CONNECT(2) */int	connect(s,n,l) int s; struct sockaddr *n; int l; { return 0; }/* FLOCK(2) */int	flock(f,o) int f; int o; { return 0; }/* FSYNC(2) */int	fsync(f) int f; { return (0); }/* GETDTABLESIZE(2) */int	getdtablesize() { return 20 ; }/* GETGROUPS(2) */int	getgroups(n,g) int n, *g; { return 0; }/* GETHOSTID(2) */int	gethostid() { return 1; }int	sethostid(h) int h; { return 0;}/* GETHOSTNAME(2) */int	gethostname(n,l) char *n; int l; { return 0 ;}int	sethostname(n,l) char *n; int l; { return 0 ;}/* GETITIMER(2) */int	getitimer(w,v) int w; struct itimerval *v; { return 0; }int	setitimer(w,v,ov) int w; struct itimerval *v, *ov; { return 0; }/* GETPAGESIZE(2) */int	getpagesize() { return 1; }/* GETPEERNAME(2) */int	getpeername(s,n,l) int s, *l; struct sockaddr *n; {return 0;}/* GETPRIORITY(2) */int	getpriority(w,who) int w; int who; { return 1;}int	setpriority(w,who, pri ) int w, who, pri; { return 1;}/* GETRLIMIT(2) */int	getrlimit(res,rip) int res; struct rlimit *rip; { return 0;}int	setrlimit(res,rip) int res; struct rlimit *rip; { return 0;}/* GETRUSAGE(2) */int	getrusage(res,rip) int res; struct rusage *rip; { return 0;}/* GETSOCKNAME(2) */int	getsockname(s,name,namelen) int s; char *name; int *namelen;		{ return(0); }/* GETSOCKOPT(2) */int	getsockopt(s,level,opt,buf,len) int s,level,opt; char *buf;		int *len; {return(0); }	/*VARARGS*/int	setsockopt(s,level,opt,buf,len) int s,level,opt,len; char *buf;		{return(0); }/* GETTIMEOFDAY(2) */int	gettimeofday(t,z) struct timeval *t; struct timezone *z; { return 0;}int	settimeofday(t,z) struct timeval *t; struct timezone *z; { return 0;}/* KILLPG(2) */int	killpg(pg,s) int pg; int s; { return 0;}/* LISTEN(2) */int	listen(s,b) int s; int b; { return 0; }/* QUOTA(2) */int	quota(c,u,a,b) int c,u,a; caddr_t b; { return(0); }/* READLINK(2) */int	readlink(p,b,s) char *p, *b; int s; { return 1; }/* REBOOT(2) */int	reboot(h) int h; {return (0);}/* RECV(2) */int	recv(s,b,l,f) int s,l,f; char *b; { return l ; }int	recvfrom(s,b,l,f,fr,fl ) int s,l,f; char *b; struct sockaddr *fr; 		int *fl; { return l; }int	recvmsg(s,m,f) int s,f; struct msghdr m[]; { return 1; }/* RENAME(2) */int	rename(f,t) char *f, *t; { return 0;}/* RMDIR(2) */int	rmdir(p) char *p; { return 0;}/* SELECT(2) */int	select(n,r,w,e,t) int  n,*r,*w,*e;struct timeval *t; { return n; }/* SEND(2) */int	send(s,m,l,f)  int s,l,f; char *m; { return l; }int	sendto(s,m,l,f,t,tl) int s,l,f,tl; char *m; struct sockaddr *t; 		{ return l; }int	sendmsg(s,m,l) int s,l; struct msghdr m[]; { return l; }/* SETGROUPS(2) */int	setgroups(n,g) int *g, n; { return 0; }/* SETPEGID(2) */int	setregid(r,e) int r, e; { return 0; }/* SETQUOTA(2) */int	setquota(s,f) char *s, *f; { return 0; }/* SETREUID(2) */int	setreuid(r,e) int r, e; { return 0; }/* SETSID(2) */pid_t	setsid() {return ((pid_t)NULL); }/* SHUTDOWN(2) */int	shutdown(s,h) int s,h; { return 0;}/* SIGBLOCK(2) */int	sigblock(m) int m; { return (m); }/* SIGPENDING(2) */#ifndef	SYSTEM_FIVEint	sigpending(s) sigset_t *s; { return (0); }#endif/* SIGPAUSE(2) */int	sigpause(m) int m; { return (0); }/* SIGSETMASK(2) */int	sigsetmask(m) int m; { return (m); }/* SIGSTACK(2) */int	sigstack(ss,oss) struct sigstack *ss, *oss; { return (0); }/* SIGVEC(2) */int	sigvec(c,f,m) int c; struct sigvec *f, *m; { return(0); }/* SOCKET(2) */int	socket(a,t,p) int a, t, p; {return 1;}/* SOCKETPAIR(2) */int	socketpair(d,t,p,s) int d, t, p; int s[2]; { return 0; }/* SWAPON(2) */int	swapon(s) char *s; { return 0;}/* SYMLINK(2) */int	symlink(t,f) char *t, *f; { return 0;}/* TRUNCATE(2) */int	truncate(p,l) char *p; int l; { return 0;}int	ftruncate(d,l) int d; int l; { return 0;}/* UTIMES(2) */int	utimes(f,t) char *f; struct timeval t[2]; { return 0 ;}/* VFORK(2) */int	vfork() { return(0); }/* VHANGUP(2) */void	vhangup() {}/* ATOF(3) */double	atof(s) char *s; { return(1.); }int	atoi(s) char *s; { return 1;   }long	atol(s) char *s; { return 1L;  }/* BSTRING(3) */void	bcopy(a,b,l) char *a, *b; int l; {}int	bcmp(a,b,l) char *a, *b; int l; { return (0); } void	bzero(b, length) char *b; int length; { ; }int	ffs(i) int i; { return i; }/* DIRECTORY(3) */DIR *	opendir(f) char *f; { return (DIR *)NULL; }struct direct *	readdir(p) DIR *p; { return (struct direct *)NULL; }int	closedir(p) DIR *p; {}/* rewinddir, telldir, and seekdir are macros  * *	void	rewinddir(p) DIR *p; {} *	long	telldir(p) DIR *p; { return 1L; } *	void	seekdir(p,l) DIR *p; long l; {} * *//* GETWD(3) */char *	getwd(p) char *p; { return(p); }/* INSQUE(3) */struct qelem {	struct qelem *q_forw;	struct qelem *q_back;	char   q_data[1];};void	insque(e,p) struct qelem *e, *p; {}void	remque(e) struct qelem *e; {}/* PSIGNAL(3) */void	psignal(g,s) unsigned g; char *s; {}char *	sys_siglist[];/* RANDOM(3) */void	srandom(s) int s; {}long	random() { return 1L; }char *	initstate(s,st,n) unsigned s; char *st; int n; { return st; }char *	setstate(st) char *st; { return st; }/* REGEX(3) */char *	re_comp(s) char *s ; { return s; }int	re_exec(s) char *s ; { return 1; }/* SCANDIR(3) */int	scandir(d,n,s,c) char *d; struct direct *(*n[]); int (*s)(),(*c)();		{ return 1; }int	alphasort(d1,d2) struct direct **d1, **d2; { return 0;}/* SIGACTION(3) */int	sigaction(s,a,o) int s; struct sigaction *a, *o; {return(0); }/* STTY(3C) */int	stty(f,b) struct sgttyb *b; int f; { return(0); }int	gtty(f,b) int f; struct sgttyb *b; { return(0); }/* SYSLOG(3) */int	openlog(i,l) char *i; int l; { return(0); }	/*VARAGS2*/void	syslog(i,p) int i; char *p; {}void	closelog() {}/* TIME(3C) */long	time(t) long *t; { return(0L);}void	ftime(t) struct timeb *t; {}/* VALLOC(3) */char *	valloc(s) unsigned s; { return malloc(s); }/* VLIMIT(3C) */int	vlimit(r,v) int r,v; { return(0); }/* VTIMES(3C) */int	vtimes(p,c) struct vtimes *p, *c; { return(0); }#endif/* These variables were in the System V library but not in the    Ultrix library.  They are here to make the Ultrix lint lib   compatible with System V code.*/#include <sys/ipc.h>#include <sys/msg.h>#include <sys/sem.h>/* EXEC(2) */char **	environ;	/*VARARGS1*/int	execlp(f,a) char *f, *a; { return (0); }int	execvp(s,v) char *s, *v[]; { return (0); }/* MSGCTL(2) */int	msgctl(m,c,b) int m,c; struct msqid_ds *b; { return (m); }/* MSGGET(2) */int	msgget(k,m) key_t k; int m; { return (m); }/* MSGOP(2) */int	msgsnd(q,p,s,f) int q,s,f; struct msgbuf *p; { return (q); }int	msgrcv(q,p,s,t,f) int q,s,f; struct msgbuf *p; long t;		{ return (q); }/* PLOCK(2) */int	plock(o) int o; { return (o); }/* SEMCTL(2) */union semun { int val; struct semid_ds *buf; ushort *array; };	/*VARARGS3*/int	semctl(i,n,c,a) int i,n,c; union semun a; { return (i); }/* SEMGET(2) */int	semget(k,n,s) key_t k; int n,s; { return (n); }/* SEMOP(2) */int	semop(i,o,n) int i,n; struct sembuf **o; { return (i); }/* SHMCTL(2) */#include <sys/shm.h>int	shmctl(s,c,b) int s,c; struct shmid_ds *b; { return (s); }/* SHMGET(2) */int	shmget(k,s,f) key_t k; int s,f; { return (s); }/* SHMOP(2) */char *	shmat(i,a,f) int i,f; char *a; { return (a); }int	shmdt(a) char *a; { return (0); }/* STIME(2) */int	stime(t) long *t; { return (0); }#if u3b || u3b5 || u3b2/* SYS3B(2) (3B20, 3B2 and 3B5 only) */	/*VARARGS2*/void	sys3b(c,a,b) int c,a,b; {}#endif/* ULIMIT(2) */long	ulimit(c,n) int c; long n; { return (n); }/* UNAME(2) */#include <sys/utsname.h>int	uname(n) struct utsname *n; { return (0); }/* USTAT(2) */#include <ustat.h>int	ustat(d,b) int d; struct ustat *b; { return (d); }/* A64L(3C) */long	a64l(s) char *s; { return (0L); }char *	l64a(l) long l; { return (""); }/* ASSERT(3X) */void	_assert(a,f,n) char *a, *f; int n; {}/* BSEARCH(3C) */char *	bsearch(k,b,n,w,c) char *k, *b; unsigned n, w; int (*c)(); 		{ return (k); }/* CONV(3C) */#undef _toupper#undef _tolower#undef toasciiint	toupper(i) int i; { return (i); }int	tolower(i) int i; { return (i); }int	_toupper(i) int i; { return (i); }int	_tolower(i) int i; { return (i); }int	toascii(i) int i; { return (i); }/* CLOCK(3C) */long	clock() { return (0L); }/* CTERMID(3S) */char *	ctermid(s) char *s; { return (s); }/* CTYPE(3C) */#undef isalpha#undef isupper#undef islower#undef isdigit#undef isxdigit#undef isalnum#undef isspace#undef ispunct#undef isprint#undef isgraph#undef iscntrl#undef isasciiint	isalpha(c) int c; { return (c); }int	isupper(c) int c; { return (c); }int	islower(c) int c; { return (c); }int	isdigit(c) int c; { return (c); }int	isxdigit(c) int c; { return (c); }int	isalnum(c) int c; { return (c); }int	isspace(c) int c; { return (c); }int	ispunct(c) int c; { return (c); }int	isprint(c) int c; { return (c); }int	isgraph(c) int c; { return (c); }int	iscntrl(c) int c; { return (c); }int	isascii(c) int c; { return (c); }char	_ctype[129];/* CUSERID(3S) */char *	cuserid(s) char *s; { return (s); }/* DRAND48(3C) */double	drand48() { return (0.0); }double	erand48(x) unsigned short x[3]; { return (0.0); }long	lrand48() { return (0L); }long	nrand48(x) unsigned short x[3]; { return (0L); }long	mrand48() { return (0L); }long	jrand48(x) unsigned short x[3]; { return (0L); }void	srand48(s) long s; {}unsigned short *	seed48(s) unsigned short s[3]; { return (s); }void	lcong48(p) unsigned short p[7]; {}/* FERROR(3S) */#undef feof#undef ferror#undef clearerr#undef filenoint	feof(f) FILE *f; { return (0); }int	ferror(f) FILE *f; { return (0); }void	clearerr(f) FILE *f; {}int	fileno(f) FILE *f; { return (0); }/* GETCWD(3C) */char *	getcwd(b,s) char *b; int s; { return (b); }/* GETOPT(3C) */int	getopt(c,v,o) int c; char **v, *o; { return (c); }char *	optarg;int	optind;int	opterr;int	optopt; /* undocumented *//* HSEARCH(3C) */#include <search.h>ENTRY *	hsearch(i,a) ENTRY i; ACTION a; { return (&i); }int	hcreate(n) unsigned n; { return (0); }void	hdestroy() {}/* L3TOL(3C) */void	l3tol(l,c,n) long *l; char *c; int n; {}void	ltol3(c,l,n) char *c; long *l; int n; {}/* LSEARCH(3C) */char *	lsearch(k,b,n,w,c) char *k, *b; unsigned *n, w; int (*c)();		{ return (k); }char *	lfind(k,b,n,w,c) char *k, *b; unsigned *n, w; int (*c)();		{ return (k); }/* MEMORY(3C) */char *	memccpy(a,b,c,n) char *a, *b; int c,n; { return (a); }char *	memchr(s,c,n) char *s; int c,n; { return (s); }int	memcmp(a,b,n) char *a, *b; int n; { return (n); }char *	memcpy(a,b,n) char *a, *b; int n; { return (a); }char *	memset(s,c,n) char *s; int c,n; { return (s); }/* SSIGNAL(3C) */int (*	ssignal(s,a))() int s; int (*a)(); { return (a); }int	gsignal(s) { return (s); }/* STDIPC(3C) */key_t	ftok(s,i) char *s; int i; { return ((key_t)0); }/* STRTOD(3C) */double	strtod(s,t) char *s, **t; { return (0.0); }/* STRTOL(3C) */long	strtol(s,t,b) char *s, **t; int b; { return (0L); }/* TMPFILE(3) */FILE *	tmpfile() { return (stdin); }/* TMPNAM(3S) */char *	tmpnam(s) char *s; { return (s); }char *	tempnam(d,s) char *d, *s; { return (d); }/* TSEARCH(3C) */char *	tsearch(k,r,c) char *k, **r; int (*c)(); { return (k); }char *	tfind(k,r,c) char *k, **r; int (*c)(); { return (k); }char *	tdelete(k,r,c) char *k, **r; int (*c)(); { return (k); }void	twalk(r,f) char *r; void (*f)(); {}/* VPRINTF(3S) */#include <varargs.h>int	vprintf(s,v) char *s; va_list v; { return (0); }int	vfprintf(f,s,v) FILE *f; char *s; va_list v; { return (0); }int	vsprintf(p,s,v) char *p, *s; va_list v; { return (0); }/* UNDOCUMENTED (not for general use) */	/*VARARGS3*/int	syscall(n,r,s,a) int n,r,s,a; { return (n); }long	tell(f) int f; { return((long)0); }int	_filbuf(f) FILE *f; { return 0; }/* the unsigned is due to putc and putchar macro expansion */int	_flsbuf(c,f) unsigned c; FILE *f; { return 0; }/* Unknown vars */char	_ctype_[];unsigned short	_ctype__[];unsigned short	*_pctype;/* * These System V definitions conflict with the Ultrix definitions and * so they are seperated by an ifdef block. */#ifdef SYSTEM_FIVE#include <mon.h>/* ALARM(2) */unsigned	alarm(s) unsigned s; { return (s); }/* BRK(2) */int	brk(e) char *e; { return (0); }/* EXIT(2) */void	_exit(s) int s; {}/* GETPGRP(2) */int	getpgrp() { return (0); }/* GETUID */unsigned short getuid() { return((unsigned short)0); }unsigned short geteuid() { return((unsigned short)0); }unsigned short getgid() { return((unsigned short)0); }unsigned short getegid() { return((unsigned short)0); }/* IOCTL(2) */	/*VARARGS2*/int	ioctl(f,r,a) int f, r, a; { return (f); }/* NICE(2) */int	nice(i) int i;{ return (i); }/* PROFIL(2) */void	profil(b,s,o,i) char *b; int s, o, i; {}/* READ(2) */int	read(f,b,n) int f; char *b; unsigned n; { return (f); }/* SETPGRP(2) */int	setpgrp() { return (0); }/* TIMES(2) */long	times(b) struct tms *b; { return (0L); }/* WAIT(2) */int	wait(s) int *s; { return (0); }/* WRITE(2) */int	write(f,b,n) int f; char *b; unsigned n; { return (f); }/* CRYPT(3C) */void	setkey(k) char *k; {}void	encrypt(b,e) char *b; int e; {}/* CTIME(3C) */void	tzset() {}long	timezone;int	daylight;char *	tzname[2];/* GETGRENT(3C) */struct group *	getgrent() { static struct group x; return (&x); }struct group *	getgrgid(g) { static struct group x; return (&x); }struct group *	getgrnam(n) char *n; { static struct group x; return (&x); }void	setgrent() {}void	endgrent() {}/* GETPWENT(3C) */struct passwd *	getpwent() { static struct passwd x; return (&x); }struct passwd *	getpwuid(u) { static struct passwd x; return (&x); }struct passwd *	getpwnam(n) char *n; { static struct passwd x; return (&x); }void	setpwent() {}void	endpwent() {}/* MONITOR(3C) */void	monitor(l,h,b,s,n) int (*l)(), (*h)(); WORD *b; int s, n; {}/* NLIST(3C) */int	nlist(f,n) char *f; struct nlist *n; { return (0); }/* PRINTF(3S) */	/*VARARGS*/int	sprintf(p,s) char *p, *s; { return (0); }/* QSORT(3C) */void	qsort(b,n,w,c) char *b; unsigned n, w; int (*c)(); {}#endif

⌨️ 快捷键说明

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