120 lines
942 B
Text
120 lines
942 B
Text
|
/* NB: This list is ordered. i.e. cat needs stuff from asa to work! */
|
||
|
|
||
|
For sh
|
||
|
======
|
||
|
|
||
|
stdio.h
|
||
|
*******
|
||
|
fgets()
|
||
|
|
||
|
stdlib.h
|
||
|
********
|
||
|
exit()
|
||
|
free()
|
||
|
calloc()
|
||
|
|
||
|
unistd.h
|
||
|
********
|
||
|
chdir()
|
||
|
fork()
|
||
|
execvp()
|
||
|
getcwd()
|
||
|
|
||
|
sys/wait.h
|
||
|
**********
|
||
|
waitpid()
|
||
|
|
||
|
signal.h
|
||
|
********
|
||
|
signal()
|
||
|
SIG_DFL
|
||
|
SIG_IGN
|
||
|
|
||
|
For asa
|
||
|
=======
|
||
|
|
||
|
stdio.h
|
||
|
*******
|
||
|
fprintf()
|
||
|
fgetc()
|
||
|
fopen()
|
||
|
fclose()
|
||
|
|
||
|
For cal
|
||
|
=======
|
||
|
|
||
|
stdio.h
|
||
|
*******
|
||
|
fileno()
|
||
|
|
||
|
unistd.h
|
||
|
********
|
||
|
isatty()
|
||
|
|
||
|
For cat
|
||
|
=======
|
||
|
|
||
|
unistd.h
|
||
|
********
|
||
|
write()
|
||
|
|
||
|
For cksum
|
||
|
=========
|
||
|
|
||
|
stdio.h
|
||
|
*******
|
||
|
fseek()
|
||
|
SEEK_SET
|
||
|
|
||
|
For expand
|
||
|
==========
|
||
|
|
||
|
stdlib.h
|
||
|
********
|
||
|
malloc() (if not already implemented for calloc)
|
||
|
|
||
|
For link
|
||
|
========
|
||
|
|
||
|
unistd.h
|
||
|
********
|
||
|
link()
|
||
|
|
||
|
For ln
|
||
|
======
|
||
|
|
||
|
unistd.h
|
||
|
********
|
||
|
access()
|
||
|
unlink()
|
||
|
symlink()
|
||
|
|
||
|
fcntl.h
|
||
|
*******
|
||
|
AT_SYMLINK_FOLLOW
|
||
|
linkat()
|
||
|
AT_FDCWD
|
||
|
|
||
|
sys/stat.h
|
||
|
**********
|
||
|
struct stat
|
||
|
lstat()
|
||
|
S_ISLNK
|
||
|
|
||
|
string.h
|
||
|
********
|
||
|
strcpy()
|
||
|
|
||
|
For pwd
|
||
|
=======
|
||
|
|
||
|
stdlib.h
|
||
|
********
|
||
|
getenv();
|
||
|
|
||
|
For tty
|
||
|
=======
|
||
|
|
||
|
unistd.h
|
||
|
********
|
||
|
ttyname()
|