Index of /Applications/News/C-News/Feb_1993_Release/libfake
Name Last modified Size Description
Parent Directory -
Makefile 1994-01-28 02:04 433
getopt.c 1991-03-13 19:55 1.0K
symlink.c 1990-11-20 19:43 128
mkdir.c 1990-10-29 05:22 791
putenv.c 1990-10-26 13:51 1.3K
strerror.c 1990-10-15 04:51 363
dbz.c 1990-04-13 19:43 1.5K
dbmclose.c 1989-11-29 22:20 13
strtok.c 1989-05-29 00:23 1.1K
strspn.c 1989-05-29 00:23 436
strrchr.c 1989-05-29 00:23 395
strpbrk.c 1989-05-29 00:23 402
strcspn.c 1989-05-29 00:23 420
strchr.c 1989-05-29 00:23 408
memset.c 1989-05-29 00:23 506
memcpy.c 1989-05-29 00:23 430
memcmp.c 1989-05-29 00:23 339
memchr.c 1989-05-29 00:23 577
fsync.c 1988-12-31 07:43 105
getopt.3 1986-10-30 16:18 2.7K
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.