bammi@dsrgsun.ces.cwru.edu (Jwahar R. Bammi) (11/28/88)
#!/bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #!/bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
# UPDATE
# assert.h
# curses.h
# limits.h
# strings.h
# This archive created: Thu Oct 27 21:53:54 1988
# By: Jwahar R. Bammi(Case Western Reserve University)
# Uucp: {decvax,sun,att}!cwjcc!dsrgsun!bammi
# Csnet: bammi@dsrgsun.ces.CWRU.edu
# Arpa: bammi@dsrgsun.ces.CWRU.edu
#
export PATH; PATH=/bin:$PATH
echo shar: extracting "'UPDATE'" '(173 characters)'
if test -f 'UPDATE'
then
echo shar: over-writing existing file "'UPDATE'"
fi
sed 's/^X//' << \SHAR_EOF > 'UPDATE'
XPlease add the files in this shar to /usr/local/gcc-include.
XThis directory should already contain all the include file
Xfor gcc-minix from the gcc-minix V1.30 distribution.
SHAR_EOF
if test 173 -ne "`wc -c 'UPDATE'`"
then
echo shar: error transmitting "'UPDATE'" '(should have been 173 characters)'
fi
echo shar: extracting "'assert.h'" '(722 characters)'
if test -f 'assert.h'
then
echo shar: over-writing existing file "'assert.h'"
fi
sed 's/^X//' << \SHAR_EOF > 'assert.h'
X/* Allow this file to be included multiple times
X with different settings of NDEBUG. */
X#undef assert
X#undef __assert
X
X#ifdef NDEBUG
X#define assert(ignore)
X#else
X
X#define assert(expression) \
X ((expression) ? 0 : __assert (#expression, __FILE__, __LINE__))
X
Xvoid __eprintf (); /* Defined in gnulib */
X
X#ifdef __STDC__
X
X#define __assert(expression, file, line) \
X (__eprintf ("Failed assertion " expression \
X " at line %ld of `" file "'.\n", (long)line), \
X abort ())
X
X#else /* no __STDC__; i.e. -traditional. */
X
X#define __assert(expression, file, line) \
X (__eprintf ("Failed assertion at line %ld of `%s'.\n", (long)line, file), \
X abort ())
X
X#endif /* no __STDC__; i.e. -traditional. */
X
X#endif
SHAR_EOF
if test 722 -ne "`wc -c 'assert.h'`"
then
echo shar: error transmitting "'assert.h'" '(should have been 722 characters)'
fi
echo shar: extracting "'curses.h'" '(5160 characters)'
if test -f 'curses.h'
then
echo shar: over-writing existing file "'curses.h'"
fi
sed 's/^X//' << \SHAR_EOF > 'curses.h'
X/*
X * Copyright 1980 Kenneth C. R. C. Arnold and The Regents of the
X * University of California. Permission is granted to freely
X * distribute curses and its documentation provided that this
X * notice is left intact.
X *
X * @(#)curses.h 5.1 (Berkeley) 6/7/85
X */
X
X# ifndef WINDOW
X
X# include <stdio.h>
X
X# include <sgtty.h>
X
X# define bool char
X# define reg register
X
X# define TRUE (1)
X# define FALSE (0)
X# define ERR (0)
X# define OK (1)
X
X# define _ENDLINE 001
X# define _FULLWIN 002
X# define _SCROLLWIN 004
X# define _FLUSH 010
X# define _FULLLINE 020
X# define _IDLINE 040
X# define _STANDOUT 0200
X# define _NOCHANGE -1
X
X# define _puts(s) tputs(s, 0, _putchar)
X
Xtypedef struct sgttyb SGTTY;
X
X/*
X * Capabilities from termcap
X */
X
Xextern bool AM, BS, CA, DA, DB, EO, HC, HZ, IN, MI, MS, NC, NS, OS, UL,
X XB, XN, XT, XS, XX;
Xextern char *AL, *BC, *BT, *CD, *CE, *CL, *CM, *CR, *CS, *DC, *DL,
X *DM, *DO, *ED, *EI, *K0, *K1, *K2, *K3, *K4, *K5, *K6,
X *K7, *K8, *K9, *HO, *IC, *IM, *IP, *KD, *KE, *KH, *KL,
X *KR, *KS, *KU, *LL, *MA, *ND, *NL, *RC, *SC, *SE, *SF,
X *SO, *SR, *TA, *TE, *TI, *UC, *UE, *UP, *US, *VB, *VS,
X *VE, *AL_PARM, *DL_PARM, *UP_PARM, *DOWN_PARM,
X *LEFT_PARM, *RIGHT_PARM;
Xextern char PC;
X
X/*
X * From the tty modes...
X */
X
Xextern bool GT, NONL, UPPERCASE, normtty, _pfast;
X
Xstruct _win_st {
X short _cury, _curx;
X short _maxy, _maxx;
X short _begy, _begx;
X short _flags;
X short _ch_off;
X bool _clear;
X bool _leave;
X bool _scroll;
X char **_y;
X short *_firstch;
X short *_lastch;
X struct _win_st *_nextp, *_orig;
X};
X
X# define WINDOW struct _win_st
X
Xextern bool My_term, _echoit, _rawmode, _endwin;
X
Xextern char *Def_term, ttytype[];
X
Xextern int LINES, COLS, _tty_ch, _res_flg;
X
Xextern SGTTY _tty;
X
Xextern WINDOW *stdscr, *curscr;
X
X/*
X * Define VOID to stop lint from generating "null effect"
X * comments.
X */
X# ifdef lint
Xint __void__;
X# define VOID(x) (__void__ = (int) (x))
X# else
X# define VOID(x) (x)
X# endif
X
X/*
X * psuedo functions for standard screen
X */
X# define addch(ch) VOID(waddch(stdscr, ch))
X# define getch() VOID(wgetch(stdscr))
X# define addstr(str) VOID(waddstr(stdscr, str))
X# define getstr(str) VOID(wgetstr(stdscr, str))
X# define move(y, x) VOID(wmove(stdscr, y, x))
X# define clear() VOID(wclear(stdscr))
X# define erase() VOID(werase(stdscr))
X# define clrtobot() VOID(wclrtobot(stdscr))
X# define clrtoeol() VOID(wclrtoeol(stdscr))
X# define insertln() VOID(winsertln(stdscr))
X# define deleteln() VOID(wdeleteln(stdscr))
X# define refresh() VOID(wrefresh(stdscr))
X# define inch() VOID(winch(stdscr))
X# define insch(c) VOID(winsch(stdscr,c))
X# define delch() VOID(wdelch(stdscr))
X# define standout() VOID(wstandout(stdscr))
X# define standend() VOID(wstandend(stdscr))
X
X/*
X * mv functions
X */
X#define mvwaddch(win,y,x,ch) VOID(wmove(win,y,x)==ERR?ERR:waddch(win,ch))
X#define mvwgetch(win,y,x) VOID(wmove(win,y,x)==ERR?ERR:wgetch(win))
X#define mvwaddstr(win,y,x,str) VOID(wmove(win,y,x)==ERR?ERR:waddstr(win,str))
X#define mvwgetstr(win,y,x,str) VOID(wmove(win,y,x)==ERR?ERR:wgetstr(win,str))
X#define mvwinch(win,y,x) VOID(wmove(win,y,x) == ERR ? ERR : winch(win))
X#define mvwdelch(win,y,x) VOID(wmove(win,y,x) == ERR ? ERR : wdelch(win))
X#define mvwinsch(win,y,x,c) VOID(wmove(win,y,x) == ERR ? ERR:winsch(win,c))
X#define mvaddch(y,x,ch) mvwaddch(stdscr,y,x,ch)
X#define mvgetch(y,x) mvwgetch(stdscr,y,x)
X#define mvaddstr(y,x,str) mvwaddstr(stdscr,y,x,str)
X#define mvgetstr(y,x,str) mvwgetstr(stdscr,y,x,str)
X#define mvinch(y,x) mvwinch(stdscr,y,x)
X#define mvdelch(y,x) mvwdelch(stdscr,y,x)
X#define mvinsch(y,x,c) mvwinsch(stdscr,y,x,c)
X
X/*
X * psuedo functions
X */
X
X#define clearok(win,bf) (win->_clear = bf)
X#define leaveok(win,bf) (win->_leave = bf)
X#define scrollok(win,bf) (win->_scroll = bf)
X#define flushok(win,bf) (bf ? (win->_flags |= _FLUSH):(win->_flags &= ~_FLUSH))
X#define getyx(win,y,x) y = win->_cury, x = win->_curx
X#define winch(win) (win->_y[win->_cury][win->_curx] & 0177)
X
X#define raw() (_tty.sg_flags|=RAW, _pfast=_rawmode=TRUE, stty(_tty_ch,&_tty))
X#define noraw() (_tty.sg_flags&=~RAW,_rawmode=FALSE,_pfast=!(_tty.sg_flags&CRMOD),stty(_tty_ch,&_tty))
X#define cbreak() (_tty.sg_flags |= CBREAK, _rawmode = TRUE, stty(_tty_ch,&_tty))
X#define nocbreak() (_tty.sg_flags &= ~CBREAK,_rawmode=FALSE,stty(_tty_ch,&_tty))
X#define crmode() cbreak() /* backwards compatability */
X#define nocrmode() nocbreak() /* backwards compatability */
X#define echo() (_tty.sg_flags |= ECHO, _echoit = TRUE, stty(_tty_ch, &_tty))
X#define noecho() (_tty.sg_flags &= ~ECHO, _echoit = FALSE, stty(_tty_ch, &_tty))
X#define nl() (_tty.sg_flags |= CRMOD,_pfast = _rawmode,stty(_tty_ch, &_tty))
X#define nonl() (_tty.sg_flags &= ~CRMOD, _pfast = TRUE, stty(_tty_ch, &_tty))
X#define savetty() ((void) gtty(_tty_ch, &_tty), _res_flg = _tty.sg_flags)
X#define resetty() (_tty.sg_flags = _res_flg, (void) stty(_tty_ch, &_tty))
X
X#define erasechar() (_tty.sg_erase)
X#define killchar() (_tty.sg_kill)
X#define baudrate() (_tty.sg_ospeed)
X
XWINDOW *initscr(), *newwin(), *subwin();
Xchar *longname(), *getcap();
X
X/*
X * Used to be in unctrl.h.
X */
X#define unctrl(c) _unctrl[(c) & 0177]
Xextern char *_unctrl[];
X# endif
SHAR_EOF
if test 5160 -ne "`wc -c 'curses.h'`"
then
echo shar: error transmitting "'curses.h'" '(should have been 5160 characters)'
fi
echo shar: extracting "'limits.h'" '(3433 characters)'
if test -f 'limits.h'
then
echo shar: over-writing existing file "'limits.h'"
fi
sed 's/^X//' << \SHAR_EOF > 'limits.h'
X/*
XFrom: tholm@uvicctr.UUCP (Terrence W. Holm)
XNewsgroups: comp.os.minix
XSubject: limits.h for MINIX-ST
XMessage-ID: <548@uvicctr.UUCP>
XDate: 8 Nov 88 22:41:38 GMT
XReply-To: tholm@uvicctr.UUCP (Terrence W. Holm)
XOrganization: University of Victoria, Victoria B.C. Canada
XLines: 64
X
XEFTH MINIX report #58 - November 1988 - limits.h for MINIX-ST
X
X
XAndy Tanenbaum has posted my limits.h for MINIX-XT.
XRecently, Frans Meulenbroeks checked it against the
XMINIX-ST implementation. The only inconsistency is
Xthe MINIX MAX_ISTACK_BYTES (POSIX ARG_MAX) having
Xa value of 1024.
X
XThe following can be used for MINIX-ST, though I suggest
Xusers increase the value of MAX_ISTACK_BYTES in h/const.h.
X
X*/
X
X/* limits.h */
X
X#define CHAR_BIT 8 /* number of bits in char */
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 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 1024 /* 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' */
X/* fixes for Gnu C */
X#ifdef __GNUC__
X#ifdef __MSHORT__
X /* Gnu CC and 16 bit ints */
X#define WORD_BIT 16 /* number of bits in int */
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#else
X /* Gnu CC and 32 bit ints */
X#define WORD_BIT 32 /* number of bits in int */
X#define INT_MAX LONG_MAX /* max value of int */
X#define INT_MIN LONG_MIN /* min value of int */
X#define UINT_MAX ULONG_MAX /* max value of unsigned int */
X#endif
X#else
X /* not gnu cc */
X#define WORD_BIT 16 /* number of bits in int */
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#endif
SHAR_EOF
if test 3433 -ne "`wc -c 'limits.h'`"
then
echo shar: error transmitting "'limits.h'" '(should have been 3433 characters)'
fi
echo shar: extracting "'strings.h'" '(263 characters)'
if test -f 'strings.h'
then
echo shar: over-writing existing file "'strings.h'"
fi
sed 's/^X//' << \SHAR_EOF > 'strings.h'
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();
SHAR_EOF
if test 263 -ne "`wc -c 'strings.h'`"
then
echo shar: error transmitting "'strings.h'" '(should have been 263 characters)'
fi
# End of shell archive
exit 0
usenet: {decvax,sun}!cwjcc!dsrgsun!bammi jwahar r. bammi
csnet: bammi@dsrgsun.ces.CWRU.edu
arpa: bammi@dsrgsun.ces.CWRU.edu
compuServe: 71515,155