Commit Graph

393 Commits

Author SHA1 Message Date
pk 9a16044f94 Allow a `#' to appear on line by itself (without spitting out errors). 1994-08-13 09:03:21 +00:00
jtc 1623a70fdf Updated to reflect the fact that these functions now detect errors
and that only sigemptyset() and sigfillset() have macro implementations.
1994-08-12 05:01:23 +00:00
deraadt 8b4fd14bfb be lenient; let a few other forms of + activate YP 1994-08-02 05:15:25 +00:00
deraadt 02fe919c29 avoid core dump 1994-07-29 18:54:17 +00:00
jtc 699331c73f Add RCS Id's 1994-07-27 14:39:44 +00:00
jtc b0cd982f44 Return NULL and set errno to ENOTDIR if opening a non-directory (POSIX.1,
Section 5.1.2.4).  Rename _seekdir to __seekdir, as former is in the
user's namespace.
1994-07-27 14:37:39 +00:00
jtc ad1d3832de Sync with 4.4 lite 1994-07-27 05:37:08 +00:00
jtc 409e85d379 opendir() & friends from 4.4lite. 1994-07-27 05:26:23 +00:00
jtc e954ff817b opendir() & friends from 4.4lite. 1994-07-27 05:26:13 +00:00
jtc b03f43b105 install getnetgrent() manpage 1994-06-28 04:34:24 +00:00
jtc c9f8f01b96 Moved RCS ID into static variable rcsid 1994-06-26 16:27:34 +00:00
jtc 288ce51d32 Ftok() routine, needed by most programs that use SysV IPC. 1994-06-26 16:24:55 +00:00
jtc 619eb60761 Avoid core dump when using NULL message string. 1994-06-26 16:13:06 +00:00
cgd 747476fd42 fix up includes for new FS code 1994-06-12 22:52:01 +00:00
jtc 59ad910d74 Note that confstr() is POSIX.2 compliant. 1994-06-11 16:44:28 +00:00
jtc fbb595cc94 Replace my version of confstr() with 4.4 lite's, which gets its values
with sysctl().
1994-06-11 16:40:46 +00:00
jtc 5e8c28642a from 44lite 1994-06-11 15:28:19 +00:00
hpeyerl 610896d9a0 (blush). They didn't *ALL* have to be changed. 1994-05-29 00:35:59 +00:00
hpeyerl 1da03a4d37 If we're going to re-activate these guys; we better make sure they
compile.
1994-05-28 23:37:53 +00:00
mycroft 63962a5c5e We have shm again. 1994-05-28 23:16:48 +00:00
jtc 241ecab4d2 Describe POSIX behavior of sleep.
More could be added, especially describing the effects of scheduling and/or
blocking SIGALRM outside of a sleep().  Also, using longjmp() in a signal
handler.  But this will do until someone gets inspired to fill in the
grotty details.
1994-05-28 16:11:27 +00:00
jtc 5ab3d5f30a Changed to be POSIX.1 complian; now sleep can be interrupted, and it returns
the amount of time left "unslept" when it is.
1994-05-28 06:25:04 +00:00
deraadt 7433140cea need sys/param.h 1994-05-24 08:17:37 +00:00
cgd 1dc033755e clean up import 1994-05-23 00:55:25 +00:00
chopps 79ae46e57f no more lsearch.3. 1994-05-21 09:17:49 +00:00
mycroft cf8aad3231 Clean up deleted files. 1994-05-19 06:27:13 +00:00
jtc 44aaa7fd0d cuserid() was moved to libcompat w/4.4 lite. 1994-05-19 06:27:11 +00:00
mycroft 66f3291923 Clean up deleted files. 1994-05-19 06:09:13 +00:00
jtc 69fbb0938f 4.4lite's libcompat provided a lsearch() and lfind() implementation which
has been already integrated into NetBSD, so we don't need/want mine anymore.
1994-05-19 06:09:10 +00:00
mycroft be4f78724b Add {set,get,end}netgrent(). 1994-05-17 13:32:31 +00:00
mycroft 6bb037ec32 From 4.4-Lite. 1994-05-17 13:30:51 +00:00
mycroft 1c98b23af1 New from 4.4-Lite. Needed for some 4.4 FS utilities. 1994-05-17 12:42:30 +00:00
cgd 725ed31e82 copyright foo 1994-05-17 04:13:48 +00:00
cgd b55fd24a8e new assert helper 1994-05-17 00:07:23 +00:00
cgd acdc4b7e70 shm sources won't compile; no more shm.h 1994-05-11 04:45:13 +00:00
jtc 3cb178ff70 merge in our POSIX.2 changes (again) 1994-05-09 16:28:27 +00:00
cgd e23e45bcfc new nlist routines 1994-05-09 03:14:43 +00:00
cgd 8b8a31862e update for present reality. shlib version number bump (last for a bit) 1994-05-07 04:11:08 +00:00
cgd 3580a0da69 domainname stuff 1994-05-07 03:09:19 +00:00
cgd eb985c6d35 clean up conflicts 1994-05-07 03:03:09 +00:00
cgd 060d0e3d1a various sysctl-related libc functions 1994-05-07 02:52:59 +00:00
cgd cd45651c63 devname() routine 1994-05-06 22:48:31 +00:00
jtc e8ed9b3ab8 merge our changes into 4.4lite 1994-05-06 18:44:23 +00:00
cgd ec3c28bf59 add getgrouplist 1994-05-05 23:12:53 +00:00
cgd bbec950385 POSIXification and bostic's official fix for the missing relative path problem 1994-04-17 02:21:02 +00:00
cgd 6e0cf55f61 setproctitle(); no reason to have this code spread into N utils... 1994-04-14 03:13:39 +00:00
cgd d7bb411a87 re-POSIXIFICATION. should have been punted back to bostic... 1994-04-12 04:41:17 +00:00
cgd 1bf99f645f oops, restore bug fix that wasn't fed back to bostic... 1994-04-12 04:35:04 +00:00
cgd 92bb6b9feb minor fixes 1994-04-12 03:21:35 +00:00
mycroft 886ad6373f And strunvis(3), too. 1994-04-09 01:31:24 +00:00
mycroft bb3b5f1606 There's a big difference between NULL and NUL. 1994-04-09 01:29:31 +00:00
mycroft 3f8fdc7ebf Add links for strvis(3) and strvisx(3). 1994-04-09 01:26:25 +00:00
mycroft a8735bf4ab Clean up deleted files. 1994-04-06 23:29:16 +00:00
cgd a2770ef528 M-x shuffle-functions-and-documentation
basically, move things around so documentation is in the correct place,
and bump appropriate functions into the 'compat' section.
1994-04-06 23:28:36 +00:00
cgd a1fcdedb9d oops! 1994-03-30 08:22:07 +00:00
cgd e4e4ac83f6 typo 1994-03-30 06:31:02 +00:00
cgd f67d02e52c gid_t is your friend! 1994-03-30 03:51:32 +00:00
cgd abc6222e32 update based on some work i did for 4.4BSD 1994-03-29 10:50:28 +00:00
cgd e075c679c6 don't ever extern lseek... 1994-03-28 02:34:45 +00:00
cgd eac55eb1b3 slight mod 1994-03-26 02:51:45 +00:00
cgd 7fe62dc1b8 don't forget section number; from Luke Mewburn <lm@rmit.edu.au> 1994-03-19 08:02:51 +00:00
cgd ed556c22a5 update for new flag 1994-03-18 04:14:27 +00:00
cgd 2df62691cf add some new flags for /etc/ttys' status field 1994-03-12 06:38:48 +00:00
deraadt 00f04ee544 __initdb() should only warn about spwd.db errors once, fix from
Cornelis van der Laan <nils@merlin.ims.uni-stuttgart.de>
1994-03-09 10:10:29 +00:00
deraadt 46703c8a4d better, more forgiving solution to previous problem. 1994-03-07 00:58:10 +00:00
deraadt 90250ee80b fix small obscure YP buglet, and properly terminate gr_mem 1994-03-06 09:04:11 +00:00
cgd 6fbe299b0e fix for lib/156: cgetent does access free'd memory,
from Thomas Eberhardt
1994-03-06 07:54:35 +00:00
cgd 25766cfbcb fix unclear man page; better is coming (later) 1994-02-25 03:42:51 +00:00
cgd f70e42e2ee hopefully last one; more corner cases. Thanks to Mark Weaver for
inspiration, for demanding that i put one of these fixes in, and
for double-checking.
1994-02-11 05:55:45 +00:00
cgd e5b8be437f fix -[ugo] and =[ugo] 1994-02-10 23:42:09 +00:00
cgd 29270058b2 clean up, reorganize, etc. 1994-02-10 23:36:59 +00:00
proven 628d7fa69f 0 is not a valid signal, in the current scheme. The header signal.h does
#define sigmask(m)      (1 << ((m)-1))

Also sigismember is supposed to return 1 if the signal is a member of the
mask, and 0 is it isn't.
1994-02-07 04:47:49 +00:00
jtc b9db1b67a7 Fix spelling error in Copyright notice 1994-01-28 20:40:54 +00:00
jtc c56a353509 Fix printf formatting directive %02.2d -> %02d 1994-01-28 20:40:07 +00:00
jtc 5150659b0c More spelling errors 1994-01-28 20:14:54 +00:00
cgd 9d0477578c get rid of bogus comment 1994-01-28 05:43:35 +00:00
cgd f770281201 better way to get the load average 1994-01-28 04:49:23 +00:00
cgd 22d6d0d419 patch from sms@WLV.IIPO.GTEGSC.COM (Steven M. Schultz) to kill mem leak 1994-01-28 01:19:11 +00:00
cgd 919f4adecb note requirement of linking with -lkvm if you use this routine. 1994-01-28 00:19:40 +00:00
cgd 227ad953f9 add two man pages 1994-01-27 23:58:34 +00:00
cgd 73eee0505b stuff moved into libc 1994-01-27 23:51:33 +00:00
cgd b7a2e44720 kill force. 1994-01-25 21:03:26 +00:00
cgd 985686cfed kill the 'prog' arg to getbsize(); it's unneeded. minor rev bump. 1994-01-25 20:06:03 +00:00
jtc e304028c04 Fix off by one bug in pwcashe routine group_from_gid(). 1994-01-19 21:15:46 +00:00
jtc 02ae14d50f Fix obscure bug where the working directory would not be restored to its
proper place (occurs if one of fts_open()'s arguments is a relative path
to a empty directory).
1994-01-14 01:53:57 +00:00
mycroft ab823015e9 Clean up deleted files. 1994-01-12 23:11:41 +00:00
cgd a839e5389d moved to libcompat, where they belong. 1994-01-12 23:11:24 +00:00
jtc 584ac8448e Fix spelling errors. 1994-01-10 23:32:20 +00:00
jtc 38bdf5186b Fix typos & formatting. 1994-01-10 23:09:09 +00:00
jtc aa0356b56a Set errno to EINVAL and return -1 if the argument to sigaddset(), sigdelset(),
or sigismember() is out of range.  POSIX.1 allowed the old behavior, but
detecting the errors is a more reasonable course of action.
1994-01-10 23:02:09 +00:00
deraadt 2d1eff419c glob_t not GLOB_t. pointed out by <lm@rmit.edu.au> 1994-01-06 13:24:09 +00:00
jtc 672f7a6292 Use _PATH_TTY constant instead of "/dev/tty". 1994-01-04 18:27:08 +00:00
cgd f45b975fa5 rename fgetline() 1994-01-04 05:36:22 +00:00
cgd fdacf1c630 DTRT if op is = 1994-01-04 05:05:36 +00:00
jtc b64dadb1ac #include <string.h> to bring function prototypes into scope. 1993-12-28 19:45:46 +00:00
jtc 3f5672d010 Explicitly declare function return types to silence "gcc -Wall". 1993-12-23 23:14:43 +00:00
cgd fc5a16e0c4 add file eaten by crash 1993-12-23 14:00:07 +00:00
jtc d486fccc08 Add explicit "int" return types to silence gcc -Wall. 1993-12-22 18:59:39 +00:00
jtc 892c4f7549 #include <string.h> to bring prototypes into scope. 1993-12-22 18:52:58 +00:00
cgd 6039a60bb3 don't squish newline at end of fgetline()... from bostic 1993-12-22 07:10:58 +00:00
pk 47b4886a7f Return a well-known constant after becoming a daemon. 1993-12-19 08:44:42 +00:00
jtc eeb1800b0e Fix bug #24 by renaming _logname_valid to __logname_valid. 1993-12-18 01:16:18 +00:00
jtc 412e7d5328 More manpage tweaks. 1993-12-15 20:32:47 +00:00
deraadt 6401f7c13a speed up getpwnam/getpwuid for standard cases 1993-12-10 12:46:29 +00:00
pk 49d5ac06cc Added some Sparc sources. 1993-12-08 13:31:01 +00:00
mycroft 565cec3fcc Add a `const' to shut up gcc. 1993-12-06 21:47:38 +00:00
cgd f00e1cfe6a get pc532 moved into ns32k; that's is MACHINE_ARCH 1993-12-05 02:20:58 +00:00
cgd 0ada107897 update for .S and MACHINE_ARCH 1993-12-04 02:33:35 +00:00
cgd 39496a6bca get rid of extra RCS Id in header 1993-12-03 23:02:05 +00:00
jtc c2a2e6a126 Add common definition of errno back to the C library. One notable program
uses its own crt0.c, so it can't pick it up from there.
1993-12-03 19:40:23 +00:00
mycroft ded6c495f2 Remove hack for errlst.o. 1993-12-02 19:48:08 +00:00
mycroft 504c62c073 Add `const's to sys_siglist and sys_signame decls. 1993-12-02 09:50:34 +00:00
mycroft 03b753a0dd Get rid of dated MLINKS for regexp man pages.
Reported by Mark_Weaver@brown.edu.
1993-12-02 07:18:57 +00:00
mycroft e14697d8f2 Add `const's to sys_errlist decl to match 4.4. 1993-12-02 04:45:32 +00:00
jtc 17585e0f6d Manpage formatting tweaks. 1993-12-01 18:49:52 +00:00
cgd 62b6693299 fix typo; from Louis A. Mamakos <louie@TransSys.COM> 1993-12-01 02:26:50 +00:00
jtc ed9ab81fcc Use ".Va" macro when formatting "errno". 1993-11-30 21:52:46 +00:00
jtc fa8cf50620 Renamed _sigintr to __sigintr. _sigintr is in the user's namespace. 1993-11-30 21:21:42 +00:00
jtc d3b6c3481b "errno" was not being formatted with the .Va macro. 1993-11-30 00:50:58 +00:00
jtc 691ded4519 Use "Er" for argument to -width in the lists in the ERROR sections so that
formatting is consistant.
Other misc. tweaks.
1993-11-29 21:40:55 +00:00
jtc f5edebac02 Cuserid() is specified in such a way that it can overwrite the buffer used
by getpwent(), getpwnam() & getpwuid() --- but not the other way around.
This requires that cuserid() have its own static buffer.
1993-11-29 19:39:44 +00:00
jtc 2b67bcc1b6 Make it clear that ctermid's argument is a pointer to an array. 1993-11-29 19:30:32 +00:00
jtc 0e817b67bc install cuserid(3) manpage. 1993-11-29 19:22:31 +00:00
jtc fe57b6e1e6 A manpage for cuserid(3) (hacked up from ctermid(3)). 1993-11-29 19:22:00 +00:00
jtc 9c4ad8fbd4 Misc manpage fixes. 1993-11-25 02:48:32 +00:00
jtc 9bd83209f0 Change C library functions to use strchr() and strrchr() instead of index()
and rindex().  This will allow (strict {ANSI, POSIX, XOPEN}) applications
to redefine index() and rindex() without effecting the library internals.
1993-11-24 19:43:49 +00:00
cgd 553e6a15d4 finish cleanup 1993-11-19 05:25:40 +00:00
mycroft ce351a47d2 Clean up after Brezak. 1993-11-19 03:18:24 +00:00
jtc 653d8ef24c If _CS_PATH is defined in <unistd.h>, the latest bash assumes that confstr()
will be present as well.  Here is a quick implementation based on my online
copy of 1003.2 (D11.2).  I'll confirm that nothing has been changed in the
final standard and write up a manual page soon.
1993-11-17 18:15:32 +00:00
cgd 5e9b346b27 Add the System V message queue and semaphore facilities. Implemented
by Daniel Boulet <danny@BouletFermat.ab.ca>
1993-11-14 12:40:23 +00:00
jtc a054c6582a First pass at getting a clean compile with "gcc -Wall", mostly explictly
declaring function return values, etc.
1993-11-11 19:04:04 +00:00
mycroft a06a8e88ff Clean up deleted files. 1993-11-11 03:33:53 +00:00
jtc bc692825ee Implement the FNM_PERIOD flag. 1993-11-11 03:21:21 +00:00
mycroft 24bc204201 Clean up deleted files. 1993-11-11 01:22:45 +00:00
jtc 3f40c24bb3 Enable Henry Spencer's POSIX.2 compatible regular expression routines.
Disable his earlier V8-style routines.
1993-11-11 01:22:33 +00:00
jtc 14925245d3 Fixed the most major defect in fnmatch(): backslash-escape processing in
bracket expressions.  Still need to implement FNM_PERIOD...
1993-11-09 18:22:05 +00:00
jtc ce4f97eb24 I've been informed that the fts family of functions is being considered
for a _future_ edition of 1003.1.
I recovered the STANDARDS section, and reworded it slightly so it is
clear that we are talking about a future edition instead of 1003.1-88.
1993-11-09 00:29:57 +00:00
cgd 6270d348a1 update to latest version. 1993-11-06 01:10:15 +00:00
cgd f95d2e2869 update to latest version; va_list specification changes. 1993-11-06 00:55:23 +00:00
cgd affc13c674 just berkeley copyright/version # changes. 1993-11-06 00:52:40 +00:00
cgd dcabc1d9b5 nuke comments re: posix, per jtc. this isn't spec'd by posix. 1993-11-06 00:51:28 +00:00
cgd 95c898787c update to latest version; no *significant* changes. 1993-11-06 00:33:23 +00:00
jtc 344059bc2d Remove extra "eval" variables in warn() & warnx() function definitions;
these variables were probably introduced by copying the definitions of
err() & errx() when the functions were first implemented.
1993-11-06 00:27:23 +00:00
jtc 71afdb430b Update source and manual pages to match X/Open 1170 specification.
Updated setpassent() to understand YP (a bug), and changed setpwent()
to simply be a call to setpassent(0) (to remove duplicated code).
1993-10-25 23:36:51 +00:00
jtc 92ba83edfc X/Open 1170 defines the return type of setpwent() to be void -- a trival
change since our setpwent() allways succeeded.
1993-10-25 22:21:36 +00:00
pk 33e72d8f40 In execvp(): `eacces' did not get initialized when path name contains a '/'.
This causes the wrong error to be reported when execve() fails.
1993-10-22 19:13:42 +00:00
jtc 3e8ba8c7b5 Add my lsearch & lfind implementations. 1993-10-22 17:51:51 +00:00
jtc 57c5f16709 #include <search.h> to ensure that the public function declarations match
the implementation.
Use old-style function definitions so functions can be compiled with non-ansi
compilers.
Functions are specified to take void * arguments, so they must be cast to
a struct qelem * before they are used.
1993-10-21 21:08:55 +00:00
jtc f97d1797c8 Use i386 sigsetjmp()/siglongjmp() implementation.
Install sigsetjmp()/siglongjmp() links to setjmp manpage.
Note that sigsetjmp() and siglongjmp() are 1003.1 compliant.
1993-10-19 21:00:46 +00:00
jtc 4072b7fbd0 Grammar and formatting fixes. 1993-10-18 20:04:00 +00:00
jtc a6c78ff19b Make sure all items in SEE ALSO list are comma separated.
Add cross references to isblank().
1993-10-15 00:58:52 +00:00
jtc 981beb6413 Use .Xr for SEE ALSO cross references. 1993-10-15 00:05:44 +00:00
jtc d20a30ce29 Change SYNOPSIS section to use "unsigned" instead of "u_int". 1993-10-14 23:25:28 +00:00
jtc af384ef2d9 Remove "errno" definition.
Errno should be defined in the c start up code, crt0.c (It is in most
ports) otherwise the sys_errlst table will be linked into binaries
where it is not used.
1993-10-13 23:41:02 +00:00
jtc e4da5d66a6 Use __dead instead of volatile. 1993-10-13 18:42:31 +00:00
jtc 91ebf777c7 Moved cuserid() from getlogin.c to its own file, cuserid.c.
getlogin() and cuserid() do very different things, getlogin() is POSIX,
while cuserid() is not (it was removed in the 1990 revision).
1993-10-11 19:45:52 +00:00
mycroft a2d8842cae Clean up deleted files. 1993-10-07 01:37:03 +00:00
cgd eb29ed3995 always create libcrypt, and link with it where necessary. this will
make life with shared libraries happier.  also, get dummy crypt out
of libc.
1993-10-07 01:36:21 +00:00
cgd 0b9f50897e make an arch directory in libc, and move all machine dirs into it 1993-10-07 00:17:24 +00:00
jtc b23776a8de Due to an 8-bit attribute table and 9 bits of attributes, I've had to
remove the _B attribute from the "horizontal tab" position, and change
the isblank function to explicitly test against space and tab.

When I finish merging the 4.4 runes code, this table will have to grow
to 16 bit entries, as several more attributes have been introduced.
I'm making this change so existing libraries will continue working
for the next (little) while.
1993-10-05 17:05:43 +00:00
jtc de34450455 Add #include <utime.h> to SYNOPSIS. 1993-10-05 16:39:28 +00:00
jtc a3dec8ddd3 Changed SYNOPSIS, to use time(), you are supposed to include <time.h>,
not <sys/types.h>.
1993-10-05 16:35:19 +00:00
jtc b12b0398ac Consistantly cross reference the other functions/programs in the vis/unvis
"family".
1993-10-04 22:47:53 +00:00
jtc 0b5def9bc6 Update to reflect the fact that this manpage is used for both getcwd & getwd:
Change main title from GETWD to GETCWD as getcwd is the prefered interface.
  Add getwd to NAME section so it shows up in whatis database.
1993-10-04 22:39:21 +00:00
jtc 17df67cd68 Install isblank() manpage.
Fix title of isblank() manpage (was isspace(), the manpage I started with).
1993-10-04 18:56:51 +00:00
jtc cc91603650 Changed SYNOPSIS, included <sys/types.h> before <grp.h> as it is needed
to define gid_t for getgrgid().
1993-10-04 18:39:24 +00:00
jtc 13a7571fde Changed SYNOPSIS. <sys/types.h> need never be included as <time.h>
defines time_t too.
1993-10-04 18:28:59 +00:00
jtc 9348a457d5 Note that alarm() conforms to 1003.1-90. 1993-10-04 18:25:58 +00:00
jtc 4141da7052 Changed SYNOPSIS. You're supposed to include <time.h>, not <sys/types.h>
before using clock().
1993-10-04 18:02:47 +00:00
jtc bbd73e83d3 Install fts manpage as fts_open, fts_read, fts_children, fts_set and
fts_close too.
1993-10-01 01:11:42 +00:00
jtc 791db40a49 Fts may be great, by we can't claim it's a superset of POSIX.1 since
fts isn't part of POSIX.1 (or POSIX.2 either).
1993-10-01 00:43:45 +00:00
mycroft b4e10df1eb #include <sys/types.h>, for magnum changes. 1993-09-27 02:40:38 +00:00
cgd c2f1ebaf17 add Nd line, and correct the description of the function. 1993-09-21 01:27:07 +00:00
phil 7ce7cb30df pc532 specifics. 1993-09-17 19:22:50 +00:00
jtc 186047edaf Document isblank(). 1993-09-14 19:23:27 +00:00
jtc b82a25338b Implement C version of isblank. 1993-09-14 01:09:13 +00:00
jtc a0c1ff159e Both space and tab are in the blank character class. 1993-09-14 01:08:38 +00:00
jtc 2886fde30d Elements of sys_signame array should be in upper case.
Both kill and sliplogin, which were converted to use this array, are
either specified to use, or have traditionally used, upper case names.
This change shouldn't have bad side-effects, sys_signame is new to netbsd
and nothing in the source tree except kill and sliplogin use it.
1993-09-08 18:43:05 +00:00
mycroft e27da3f557 Separate the toupper() and tolower() functions so the tables *really* don't get
included unless you need them.
1993-09-05 22:29:48 +00:00
brezak 13e51139e4 Add rcsid strings 1993-08-26 15:26:18 +00:00
jtc 9c20f740a3 Declare rcsid strings so they are stored in text segment. 1993-08-26 00:43:03 +00:00
jtc 5e98929cee Declare static function before it is used. 1993-08-25 22:24:50 +00:00
brezak 979015728c Add syscall stubs for SYSV Shared Memory. 1993-08-25 02:50:51 +00:00
jtc 19e4e33b98 Don't block SIGINT, SIGQUIT, SIGHUP, etc. in pclose()...
"Some historical implementations either block or ignore the signals
    SIGINT, SIGQUIT, and SIGHUP while waiting for the child process to
    terminate.  Since this behavior is not described in POSIX.2, such
    implementations are not conforming."
1993-08-23 21:56:31 +00:00
jtc 9d1cf67cd2 Moved toupper and tolower tables from ctype_.c to their own files --- I
received complaints about using shorts in the table (but i need a range
of -1..255), so now the tables will not be used unless either toupper()
or tolower() (and soon, setlocale()) are used.  This can save up to 514
bytes.

In toupper_.c and tolower_.c make sure that our assumption of EOF == -1
holds.

Fixed bug where _toupper_tab_ was initialized pointing to _C_tolower_tab.
1993-08-23 21:04:50 +00:00
cgd 5def7a5fde use "_to*_tab_" rather than "_to*_table_" -- table is defined as the former 1993-08-23 16:25:03 +00:00
jtc c066b5f81e _ctype_, _tolower_tab_, and _toupper_tab_ are now pointers to the tables.
The tables have been renamed to _C_ctype_, _C_tolower_, and _C_toupper_
as they are tables for the C locale.  When switching to a new locale, the
pointers will be set to point to tables specific to the new locale.
1993-08-21 00:46:25 +00:00
jtc ffefbf8e83 If mode is niether 'r' or 'w', set errno to EINVAL as per 1003.2-92. 1993-08-21 00:11:47 +00:00
jtc 7a5661e6ac Fixed typo. Readdir returns a "struct dirent *", not "struct dirent". 1993-08-20 16:46:14 +00:00
mycroft 36d083669a Technically, readdir(3) returns a `struct dirent *', not a `struct direct *',
not that they aren't the same thing.
1993-08-20 10:03:05 +00:00
jtc 17bda641e5 The result of clock() is measured in CLOCKS_PER_SECs, not CLK_TCKs. 1993-08-17 20:37:57 +00:00
jtc 0de7806863 Add STANDARDS section, utime is now 1003.1 compliant. 1993-08-16 15:42:14 +00:00
jtc 8b17e495f7 Merged in RETURN VALUES and ERRORS sections from utimes(2), since
utime(3) is just a wrapper.
1993-08-14 00:05:07 +00:00
jtc 7103ada5b8 If utimbuf pointer is NULL, set access and modification times to the
current time.
1993-08-13 23:58:49 +00:00
brezak d1c89ea35f Correct copyright statements 1993-08-13 12:54:10 +00:00
brezak cbeddce7ff Machine independent version of insque/remque 1993-08-13 02:49:41 +00:00
jtc ad2e83d160 Oops! I used EOF but didn't include <stdio.h>. 1993-08-09 22:06:30 +00:00
jtc 29b5828742 Use C locale specific traslation tables for toupper and tolower.
Direct access to the tables is to be replaced by a pointer to tables for the
current locale.
1993-08-06 23:17:03 +00:00
jtc d2b805f0e2 Added C locale specific translation tables for toupper and tolower. When
locales are fully supported, toupper and tolower will refer to this, or
a locale specific table, through pointers.
1993-08-06 23:14:32 +00:00
jtc fa5f39ea86 Use const qualifier with _ctype_ table. Smart compilers can then store it
in the text segment.  When we implement locales, the isctype macros/functions
will reference this table (or a locale specific table) through a pointer, but
for right now, it continues to reference the _ctype_ table directly.
1993-08-06 22:44:44 +00:00