📄 llib-lsvidii
字号:
/*LINTLIBRARY*//* * Cross lint library for * svid issue 2 all three volumes -DSVID_V3 * svid issue 2 first two volumes * xopen issue 2 (includes optional functions) -DSVID_V3 -DXPG2 *//*#include <signal.h> Can't use this: void/int problems*/#define __signal_h#define __sys_signal_h#include <stdio.h>#include <sys/param.h>#include <sys/ipc.h>#include <sys/msg.h>#include <sys/sem.h>#include <pwd.h>#include <sys/time.h>#include <sys/stat.h>#include <sys/stropts.h>#include <sys/poll.h>#include <sys/ptrace.h>#include <sys/shm.h>#include <sys/times.h>#include <sys/utsname.h>#include <ustat.h>#include <utime.h>/*#include <sys/wait.h> Can't use this: pid_t/int */#include <dirent.h>#include <fstab.h>#include <grp.h>#include <mntent.h>#include <search.h>/*#include <malloc.h> Can't use this, void/int problems */#include <mon.h>#include <a.out.h>#include <setjmp.h>#include <termios.h>#include <varargs.h>#include <utmp.h>#include <tiuser.h>#undef assert#undef _toupper#undef _tolower#undef toascii#undef isalpha#undef isupper#undef islower#undef isdigit#undef isxdigit#undef isalnum#undef isspace#undef ispunct#undef isprint#undef isgraph#undef iscntrl#undef isascii#undef rewinddir#undef feof#undef ferror#undef clearerr#undef fileno#undef getc#undef getchar#undef putc#undef putcharlong timezone;int daylight;char *tzname[2];int signgam;int errno;char *sys_errlist[];int sys_nerr;FILE _iob[3];/* * Need to define mallinfo since we can't include malloc.h * From /usr/5include/malloc.h */struct mallinfo { int arena; /* total space in arena */ int ordblks; /* number of ordinary blocks */ int smblks; /* number of small blocks */ int hblks; /* number of holding blocks */ int hblkhd; /* space in holding block headers */ int usmblks; /* space in small blocks in use */ int fsmblks; /* space in free small blocks */ int uordblks; /* space in ordinary blocks in use */ int fordblks; /* space in free ordinary blocks */ int keepcost; /* cost of enabling keep option */ int mxfast; /* max size of small blocks */ int nlblks; /* number of small blocks in a holding block */ int grain; /* small block rounding factor */ int uordbytes; /* space (including overhead) allocated in ord. blks */ int allocated; /* number of ordinary blocks allocated */ int treeoverhead; /* bytes used in maintaining the free tree */};#ifndef XPG2long a64l(s) char *s; { return (0L); }#endifint abort() {}int abs(i) { return (i); }int access(f, m) char *f; int m; { return (m); }int acct(f) char *f; { return (0); }double acos(x) double x; { return (x); }int advance(s, e) char *s, *e; { return (0); }unsigned alarm(s) unsigned s; { return (s); }char* asctime(t) struct tm *t; { static char *x; return (x); }void assert(s) {}double asin(x) double x; { return (x); }double atan(x) double x; { return (x); }double atan2(x) double x; { return (x); }double atof(s) char *s; { return (0.0); }int atoi(s) char *s; { return (0); }long atol(s) char *s; { return (0L); }#if defined(XPG2)int brk(p) char *p; { return (0); } /* use malloc instead */#endifchar* bsearch(k, b, n, w, c) char *k, *b; unsigned n, w; int (*c)(); { return (k); }char* calloc(n, e) unsigned n, e; { static char *x; return (x); }double ceil(x) double x; { return (x); }int chdir(s) char *s; { return (0); }int chmod(s, m) char *s; { return (0); }int chown(s, o, g) char *s; { return (o); }int chroot(p) char *p; { return (0); }void clearerr(f) FILE *f; {}long clock() { return (0L); }int close(f) { return (0); }#if defined(XPG2) || defined(SVID_V3)int closedir(d) DIR *d; { return(0); }#endifchar* compile(i, exp, end, eof) char *i, *exp, *end; { return (exp); }double cos(x) double x; { return (x); }double cosh(x) double x; { return (x); }int creat(s, m) char *s; { return (m); }char* crypt(k, s) char *k, *s; { return (k); }char* ctermid(s) char *s; { return (s); }#if defined(SVID_V3) && !defined(XPG2)char* ctime(t) time_t *t; { static char *x; return (x); }#elsechar* ctime(t) long *t; { static char *x; return (x); }#endif#if defined(XPG2)char *cuserid(s) char *s; { return(s); }#endifdouble drand48() { return (0.0); }int dup(f) { return (f); }#if defined(SVID_V3) && !defined(XPG2)int dup2(f1, f2) { return (f2); }#endifvoid encrypt(b, e) char *b; {}void endgrent() {}void endpwent() {}void endutent() {}double erand48(x) unsigned short x[3]; { return (0.0); }double erf(x) double x; { return (x); }double erfc(x) double x; { return (x); }#if defined(XPG2)char *evct(v, n, d, s) double v; int *d, *s; { return ((char*)0); }#endif /*VARARGS2*/int execl(f, a) char *f, *a; { return (0); } /*VARARGS3*/int execle(f, a, e) char *f, *a, *e[]; { return (0); } /*VARARGS2*/int execlp(f, a) char *f, *a; { return (0); }int execv(s, v) char *s, *v[]; { return (0); }int execve(f, a, e) char *f, *a[], *e[]; { return (0); }int execvp(s, v) char *s, *v[]; { return (0); }void _exit(s) {}void exit(s) {}double exp(x) double x; { return (x); }double fabs(x) double x; { return (x); }int fclose(f) FILE *f; { return (0); } /*VARARGS2*/int fcntl(f, c, a) { return (f); }#if defined(XPG2)char *fcvt(v, n, d, s) double v; int *d, *s; { return ((char*)0); }#endifFILE* fdopen(f, t) char *t; { return (stdin); }int feof(f) FILE *f; { return (0); }int ferror(f) FILE *f; { return (0); }int fflush(f) FILE *f; { return (0); }int fgetc(f) FILE *f; { return (0); }struct group* fgetgrent(f) FILE *f; { static struct group x; return (&x); }struct passwd* fgetpwent(f) FILE *f; { static struct passwd x; return (&x); }char* fgets(s, n, f) char *s; FILE *f; { return (s); }int fileno(f) FILE *f; { static int fd; return (fd); }double floor(x) double x; { return (x); }double fmod(x, y) double x, y; { return (x); }FILE* fopen(f, t) char *f, *t; { return (stdin); }int fork() { static int x; return (x); } /*VARARGS2 PRINTFLIKE2*/int fprintf(f, s) FILE *f; char *s; { return (0); }int fputc(c, f) FILE *f; { return (c); }int fputs(s, f) char *s; FILE *f; { return (0); }#if defined(SVID_V3) && !defined(XPG2)int fread(b, s, n, f) char *b; size_t s, n; FILE *f; { return (n); }#endif#if !defined(SVID_V3) && !defined(XPG2)int fread(b, s, n, f) char *b; unsigned s, n; FILE *f; { return (n); }#endif#if defined(XPG2)int fread(b, s, n, f) char *b; size_t s; FILE *f; { return (n); }#endifvoid free(s) char *s; {}FILE* freopen(f, t, s) char *f, *t; FILE *s; { return (s); }double frexp(x, e) double x; int *e; { return (x); } /*VARARGS2 SCANFLIKE2*/int fscanf(f, s) FILE *f; char *s; { return (0); }int fseek(f, o, p) FILE *f; long o; { return (0); }int fstat(f, b) struct stat *b; { return (0); }long ftell(f) FILE *f; { static long p; return (p); }int ftw(p, f, d) char *p; int (*f)(); { return (d); }#ifdef SVID_V3int fwrite(b, s, n, f) char *b; size_t s, n; FILE *f; { return (n); }#elseint fwrite(b, s, n, f) char *b; unsigned s, n; FILE *f; { return (n); }#endifdouble gamma(x) double x; { return (x); }#if defined(XPG2)char *gcvt(v, n, b) double v; char *b; { return (b); }#endifint getc(f) FILE *f; { return (0); }int getchar() { return (0); }char* getcwd(b, s) char *b; { return (b); }unsigned short getegid() { static unsigned short x; return (x); }char* getenv(n) char *n; { return (n); }unsigned short geteuid() { static unsigned short x; return (x); }unsigned short getgid() { static unsigned short x; return (x); }struct group* getgrent() { static struct group x; return (&x); }struct group* getgrgid(g) gid_t g; { static struct group x; return (&x); }struct group* getgrnam(n) char *n; { static struct group x; return (&x); }char* getlogin() { static char *x; return (x); }#if defined(SVID_V3) && !defined(XPG2)int getmsg(fd, c, d, fl) struct strbuf *c, *d; int *fl; { return (0); }#endifint getopt(c, v, o) char **v, *o; { return (c); }char* getpass(s) char *s; { return (s); }int getpgrp() { return (0); }int getpid() { return (0); }int getppid() { return (0); }#if defined(XPG2)int getpw(u, b) char *b; { return(0); }#endifstruct passwd* getpwent() { static struct passwd x; return (&x); }struct passwd* getpwnam(n) char *n; { static struct passwd x; return (&x); }struct passwd* getpwuid(u) unsigned short u; { static struct passwd x; return (&x); }char* gets(s) char *s; { return (s); }unsigned short getuid() { static unsigned short x; return (x); }struct utmp* getutent() { static struct utmp x; return (&x); }struct utmp* getutid(ut) struct utmp *ut; { return (ut); }struct utmp* getutline(ut) struct utmp *ut; { return (ut); }int getw(f) FILE *f; { return (0); }#ifdef SVID_V3struct tm* gmtime(c) time_t *c; { static struct tm x; return (&x); }#elsestruct tm* gmtime(c) long *c; { static struct tm x; return (&x); }#endifint gsignal(s) { return (s); }int hcreate(n) unsigned n; { return (0); }void hdestroy() {}ENTRY* hsearch(i, a) ENTRY i; ACTION a; { return (&i); }double hypot(x, y) double x, y; { return (x); } /*VARARGS2*/int ioctl(f, r, a) { return (f); }int isalnum(c) { return (c); }int isalpha(c) { return (c); }int isascii(c) { return (c); }int isatty(f) { return (1); }int iscntrl(c) { return (c); }int isdigit(c) { return (c); }int isgraph(c) { return (c); }int islower(c) { return (c); }int isprint(c) { return (c); }int ispunct(c) { return (c); }int isspace(c) { return (c); }int isupper(c) { return (c); }int isxdigit(c) { return (c); }double j0(x) double x; { return (x); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -