Index of /Applications/News/C-News/Feb_1993_Release/libfake/
Name | Last Modified | Size | Type |
../ | | - | Directory |
Makefile | 1994-Jan-28 02:04:24 | 0.4K | application/octet-stream |
README | 1991-Jan-17 21:27:58 | 0.9K | application/octet-stream |
dbmclose.c | 1989-Nov-29 22:20:08 | 0.1K | text/plain |
dbz.c | 1990-Apr-13 19:43:39 | 1.4K | text/plain |
fsync.c | 1988-Dec-31 07:43:13 | 0.1K | text/plain |
getopt.3 | 1986-Oct-30 16:18:26 | 2.7K | application/octet-stream |
getopt.c | 1991-Mar-13 19:55:09 | 1.0K | text/plain |
memchr.c | 1989-May-29 00:23:45 | 0.5K | text/plain |
memcmp.c | 1989-May-29 00:23:45 | 0.3K | text/plain |
memcpy.c | 1989-May-29 00:23:46 | 0.4K | text/plain |
memset.c | 1989-May-29 00:23:46 | 0.5K | text/plain |
mkdir.c | 1990-Oct-29 05:22:58 | 0.7K | text/plain |
putenv.c | 1990-Oct-26 13:51:21 | 1.2K | text/plain |
strchr.c | 1989-May-29 00:23:46 | 0.4K | text/plain |
strcspn.c | 1989-May-29 00:23:47 | 0.4K | text/plain |
strerror.c | 1990-Oct-15 04:51:56 | 0.3K | text/plain |
strpbrk.c | 1989-May-29 00:23:47 | 0.4K | text/plain |
strrchr.c | 1989-May-29 00:23:48 | 0.3K | text/plain |
strspn.c | 1989-May-29 00:23:48 | 0.4K | text/plain |
strtok.c | 1989-May-29 00:23:49 | 1.0K | text/plain |
symlink.c | 1990-Nov-20 19:43:25 | 0.1K | text/plain |
This is stuff that your system ought to have but might not. Some of these
are just quick fakes that do the right thing for C News but not in general;
some are freely-redistributable portable implementations of the real thing.
Dbz is a wrapper that imitates dbz's extra functionality using dbm.
Fsync and symlink are C-News-specific fakes.
The mem* and str* and *index functions come from Henry Spencer's public-domain
string-functions implementation. Said implementation is somewhat in need of
an updating to match ANSI C, and there are minor portability glitches, but in
general these should do the right thing for you.
Getopt is Henry Spencer's public-domain implementation of System III getopt.
It differs from the System V one in minor ways.
Mkdir may give problems if called from a setuid program and either your
system does not implement setuid(geteuid()) or the program doesn't bother
to do it. Otherwise it's fine.
Putenv is crude but works.