ast@cs.vu.nl (Andy Tanenbaum) (09/28/88)
: This is a shar archive. Extract with sh, not csh.
: This archive ends with exit, so do not worry about trailing junk.
: --------------------------- cut here --------------------------
PATH=/bin:/usr/bin:/usr/ucb
echo Extracting 'LISTING'
sed 's/^X//' > 'LISTING' << '+ END-OF-FILE ''LISTING'
Xtotal 9
X-rw-r--r-- 1 ast 351 Sep 26 22:22 fcntl.h.new
X-rw-r--r-- 1 ast 2132 Sep 26 22:22 limits.h.new
X-rw-r--r-- 1 ast 81 Sep 26 22:22 memory.h.new
X-rw-r--r-- 1 ast 263 Sep 26 22:22 string.h.new
X-rw-r--r-- 1 ast 352 Sep 26 22:22 unistd.h.new
X-rw-r--r-- 1 ast 74 Sep 26 22:22 utime.h.new
X-rw-r--r-- 1 ast 217 Sep 26 22:22 utmp.h.new
+ END-OF-FILE LISTING
chmod 'u=rw,g=r,o=r' 'LISTING'
set `wc -c 'LISTING'`
count=$1
case $count in
410) :;;
*) echo 'Bad character count in ''LISTING' >&2
echo 'Count should be 410' >&2
esac
echo Extracting 'fcntl.h.new'
sed 's/^X//' > 'fcntl.h.new' << '+ END-OF-FILE ''fcntl.h.new'
X/* For fcntl(3) */
X
X#define F_DUPFD 0
X#define F_GETFD 1 /* reserved for future use */
X#define F_SETFD 2 /* reserved for future use */
X#define F_GETFL 3 /* reserved for future use */
X#define F_SETFL 4 /* reserved for future use */
X
X/* For open(2) */
X
X#define O_RDONLY 0
X#define O_WRONLY 1
X#define O_RDWR 2
+ END-OF-FILE fcntl.h.new
chmod 'u=rw,g=r,o=r' 'fcntl.h.new'
set `wc -c 'fcntl.h.new'`
count=$1
case $count in
351) :;;
*) echo 'Bad character count in ''fcntl.h.new' >&2
echo 'Count should be 351' >&2
esac
echo Extracting 'limits.h.new'
sed 's/^X//' > 'limits.h.new' << '+ END-OF-FILE ''limits.h.new'
X/* limits.h */
X
X#define CHAR_BIT 8 /* number of bits in char */
X#define WORD_BIT 16 /* number of bits in int */
X#define CHAR_MAX 127 /* max value of char */
X#define CHAR_MIN -128 /* min value of char */
X#define SCHAR_MAX 127 /* max value of signed char */
X#define SCHAR_MIN -128 /* min value of signed char */
X#define UCHAR_MAX 255 /* max value of unsigned char */
X#define SHRT_MAX 32767 /* max value of short */
X#define SHRT_MIN -32768 /* min value of short */
X#define USHRT_MAX 65535 /* max value of unsigned short */
X#define INT_MAX 32767 /* max value of int */
X#define INT_MIN -32768 /* min value of int */
X#define UINT_MAX 65535 /* max value of unsigned int */
X#define LONG_MAX 2147483647 /* max value of long */
X#define LONG_MIN -2147483648 /* min value of long */
X#define ULONG_MAX 4294967295 /* max value of unsigned long */
X
X#define NAME_MAX 14 /* characters in a file name */
X#define PATH_MAX 127 /* number chars in path name */
X /* SHOULD BE >= 255 */
X#define FCHR_MAX 67108864 /* max file size */
X#define LINK_MAX 127 /* max links to a file */
X#define LOCK_MAX 0 /* max number of file locks */
X /* SHOULD BE >= 32 */
X#define OPEN_MAX 20 /* max number open files */
X#define SYS_OPEN 64 /* max open files per system */
X#define STD_BLK 1024 /* bytes per block */
X#define PIPE_MAX 7168 /* max size of write to pipe */
X#define PIPE_BUF PIPE_MAX /* size of atomic write to pipe */
X
X#define PID_MAX 30000 /* max process id */
X#define PROC_MAX 16 /* max number of processes */
X#define CHILD_MAX (PROC_MAX-1) /* number of process children */
X#define NGROUPS_MAX 0 /* no multiple group ids */
X#define UID_MAX 255 /* max user or group id */
X /* SHOULD BE >= 32000 */
X#define ARG_MAX 2048 /* execve() arg & environ space */
X /* SHOULD BE >= 4096 */
X
X#define CLK_TCK 60 /* clock ticks per second */
X#define MAX_CHAR 256 /* characters for terminal i/p */
X#define PASS_MAX 8 /* max number chars in password */
X#define SYS_NMLN 9 /* length of uname() strings */
X /* including '\0' */
+ END-OF-FILE limits.h.new
chmod 'u=rw,g=r,o=r' 'limits.h.new'
set `wc -c 'limits.h.new'`
count=$1
case $count in
2132) :;;
*) echo 'Bad character count in ''limits.h.new' >&2
echo 'Count should be 2132' >&2
esac
echo Extracting 'memory.h.new'
sed 's/^X//' > 'memory.h.new' << '+ END-OF-FILE ''memory.h.new'
Xchar *memcpy();
Xchar *memccpy();
Xchar *memchr();
Xchar *memset();
Xint memcmp();
+ END-OF-FILE memory.h.new
chmod 'u=rw,g=r,o=r' 'memory.h.new'
set `wc -c 'memory.h.new'`
count=$1
case $count in
81) :;;
*) echo 'Bad character count in ''memory.h.new' >&2
echo 'Count should be 81' >&2
esac
echo Extracting 'string.h.new'
sed 's/^X//' > 'string.h.new' << '+ END-OF-FILE ''string.h.new'
X/* string.h (a.k.a. strings.h) */
X
Xint strlen();
Xint strcmp(), strncmp();
Xint strspn(), strcspn();
X
Xchar *strcpy(), *strncpy();
Xchar *strcat(), *strncat();
Xchar *index(), *rindex();
Xchar *strchr(), *strrchr();
Xchar *strpbrk();
Xchar *strtok();
Xchar *strstr();
+ END-OF-FILE string.h.new
chmod 'u=rw,g=r,o=r' 'string.h.new'
set `wc -c 'string.h.new'`
count=$1
case $count in
263) :;;
*) echo 'Bad character count in ''string.h.new' >&2
echo 'Count should be 263' >&2
esac
echo Extracting 'unistd.h.new'
sed 's/^X//' > 'unistd.h.new' << '+ END-OF-FILE ''unistd.h.new'
X/* For access(2) */
X
X#define R_OK 4
X#define W_OK 2
X#define X_OK 1
X#define F_OK 0
X
X/* For lockf() */
X
X#define F_ULOCK 0
X#define F_LOCK 1
X#define F_TLOCK 2
X#define F_TEST 3
X
X/* For lseek(2) */
X
X#define SEEK_SET 0
X#define SEEK_CUR 1
X#define SEEK_END 2
X
X#define IN_PATH "/etc/include"
+ END-OF-FILE unistd.h.new
chmod 'u=rw,g=r,o=r' 'unistd.h.new'
set `wc -c 'unistd.h.new'`
count=$1
case $count in
352) :;;
*) echo 'Bad character count in ''unistd.h.new' >&2
echo 'Count should be 352' >&2
esac
echo Extracting 'utime.h.new'
sed 's/^X//' > 'utime.h.new' << '+ END-OF-FILE ''utime.h.new'
X/* For utime(2) */
X
Xstruct utimbuf {
X time_t actime;
X time_t modtime;
X};
+ END-OF-FILE utime.h.new
chmod 'u=rw,g=r,o=r' 'utime.h.new'
set `wc -c 'utime.h.new'`
count=$1
case $count in
74) :;;
*) echo 'Bad character count in ''utime.h.new' >&2
echo 'Count should be 74' >&2
esac
echo Extracting 'utmp.h.new'
sed 's/^X//' > 'utmp.h.new' << '+ END-OF-FILE ''utmp.h.new'
X/* utmp.h - Used by login(1), init, and who(1) */
X
X#define WTMP "/usr/adm/wtmp"
X
Xstruct utmp
X{
X char ut_line[8]; /* terminal name */
X char ut_name[8]; /* user name */
X long ut_time; /* login/out time */
X};
+ END-OF-FILE utmp.h.new
chmod 'u=rw,g=r,o=r' 'utmp.h.new'
set `wc -c 'utmp.h.new'`
count=$1
case $count in
217) :;;
*) echo 'Bad character count in ''utmp.h.new' >&2
echo 'Count should be 217' >&2
esac
exit 0