ftp.nice.ch/pub/next/developer/resources/libraries/libcs.s.tar.gz#/libcs

Makefile
 
README
 
abspath.c
[View abspath.c] 
atoh.c
[View atoh.c] 
atoo.c
[View atoo.c] 
atot.c
[View atot.c] 
boolarg.c
[View boolarg.c] 
bsearch.c
[View bsearch.c] 
chrarg.c
[View chrarg.c] 
ci.c
[View ci.c] 
concat.c
[View concat.c] 
del.c
[View del.c] 
dfork.c
[View dfork.c] 
doublearg.c
[View doublearg.c] 
editor.c
[View editor.c] 
errmsg.c
[View errmsg.c] 
fdate.c
[View fdate.c] 
ffilecopy.c
[View ffilecopy.c] 
filecopy.c
[View filecopy.c] 
floatarg.c
[View floatarg.c] 
fold.c
[View fold.c] 
fwantread.c
[View fwantread.c] 
fwantwrite.c
[View fwantwrite.c] 
getbool.c
[View getbool.c] 
getchr.c
[View getchr.c] 
getdouble.c
[View getdouble.c] 
getfloat.c
[View getfloat.c] 
gethex.c
[View gethex.c] 
gethostattr.c
[View gethostattr.c] 
getint.c
[View getint.c] 
getlong.c
[View getlong.c] 
getname.c
[View getname.c] 
getoct.c
[View getoct.c] 
getpwwho.c
[View getpwwho.c] 
getsearch.c
[View getsearch.c] 
getshort.c
[View getshort.c] 
getstab.c
[View getstab.c] 
getstr.c
[View getstr.c] 
hexarg.c
[View hexarg.c] 
include/
 
intarg.c
[View intarg.c] 
longarg.c
[View longarg.c] 
makepath.c
[View makepath.c] 
man3/
 
movefile.c
[View movefile.c] 
nxtarg.c
[View nxtarg.c] 
octarg.c
[View octarg.c] 
openp.c
[View openp.c] 
parsedate.c
[View parsedate.c] 
parsedate.scr
 
parsedate.y
 
path.c
[View path.c] 
pathof.c
[View pathof.c] 
prstab.c
[View prstab.c] 
quit.c
[View quit.c] 
run.c
[View run.c] 
salloc.c
[View salloc.c] 
searcharg.c
[View searcharg.c] 
searchp.c
[View searchp.c] 
setpath.c
[View setpath.c] 
shortarg.c
[View shortarg.c] 
sindex.c
[View sindex.c] 
skipto.c
[View skipto.c] 
srchscore.c
[View srchscore.c] 
stabarg.c
[View stabarg.c] 
stablk.c
[View stablk.c] 
stabsearch.c
[View stabsearch.c] 
stlmatch.c
[View stlmatch.c] 
strarg.c
[View strarg.c] 
vmnlist.c
[View vmnlist.c] 
vprintf.c
[View vprintf.c] 
wantread.c
[View wantread.c] 
wantwrite.c
[View wantwrite.c] 

README

The files in this directory constitute the exportable CMU Computer Science
department additions to the C runtime library.  They are part of the CMU
CS runtime library by default, but may be exported separately as LIBCS.

Descriptions of user-callable routines are as follows:

execute process and wait for exit:
	run		run ala execl
	runv		run ala execv
	runp		run from path ala execlp
	runvp		run from path ala execvp

path utilities:
	abspath		determine absolute pathname from path
	path		break path into file and/or directory components

ascii translation:
	atoh		ascii to hexadecimal
	atoo		ascii to octal
	atot		ascii to time_t

string utilities:
	folddown	fold string to lowercase
	foldup		fold string to uppercase
	salloc		allocate dynamic copy of string
	sindex		find index of substring
	skipover	skip characters in cset
	skipto		skip characters not in cset
	ulstrcmp	case-insensitive version of strcmp
	ulstrncmp	case-insensitive version of strncmp

string table utilities:
	prstab		print string table to stdout
	fprstab		print string table to file
	srchscore	perform approximate string matching
	stablk		string table lookup
	stabsearch	search for best match within string table
	stlmatch	match leftmost part of string

argument parsing:
	nxtarg		strip off arguments from a string
	boolarg		parse boolean argument
	chrarg		parse character argument
	doublearg	parse double argument
	floatarg	parse float argument
	hexarg		parse hexadecimal integer argument
	intarg		parse decimal integer argument
	longarg		parse decimal long integer argument
	octarg		parse octal integer argument
	searcharg	parse "best" string table argument
	shortarg	parse decimal short integer argument
	stabarg		parse string table argument
	strarg		parse string argument

interactive parsing:
	getbool		prompt user a yes/no question
	getchr		prompt user to select a character
	getdouble	prompt user for double
	getfloat	prompt user for float
	gethex		prompt user for hexadecimal integer
	getint		prompt user for decimal integer
	getlong		prompt user for decimal long integer
	getoct		prompt user for octal integer
	getsearch	prompt user for "best" string table entry
	getshort	prompt user for decimal short integer
	getstab		prompt user for string table entry
	getstr		prompt user for string

date and time conversion:
	fdate		return formated date string
	gtime		return time_t from struct tm
	parsedate	parse date string

kernel support:
	vmnlist		quick kernel nlist routine

path searching:
	searchp		search path for file
	fopenp		search path and fopen file
	openp		search path and open file
	fwantread	attempt to fopen file along path for input
	fwantwrite	attempt to fopen file along path for output
	wantread	attempt to open file along path for input
	wantwrite	attempt to open file along path for output

password file matching:
	getpwwho	lookup user using liberal matching
	getpwambig	return ambiguous matches from getpwwho

file moving/copying:
	movefile	change name of file
	ffilecopy	very fast buffered file copy
	filecopy	very fast file copy

random utilities:
	bsearch		binary search ala qsort
	ci		command interface
	del		interrupt handler
	dfork		"double" fork
	editor		invoke preferred editor for user
	errmsg		return error message string
	expand		expand wildcard filename pattern
	fgetpass	read password from file or terminal
	gethostattr	get attributes of current host
	getname		get name from user-id
	putenv		add variable to environment
	quit		exit program with error message
	setpath		"smart" path modification interface

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.