Commit Graph

510 Commits

Author SHA1 Message Date
jtc 38a3e9d21d Update to Henry's Nov 11 release -- no code changes, only the addition of
a copyright file.  I'm checking it in now, rather than waiting for the
next "real" release, since the rest of the files do not have their own
copyright notices.
1993-11-16 00:04:20 +00:00
cgd 96f49a9e5c *sigh* after consultation with pk, un-bump the major number, and bump
the minor one instead.  basically, only new functions were added,
and ld.so will (soon) print a warning at program startup if the 'best' minor
number that can be found is less than what's expected.
1993-11-14 17:19:19 +00:00
pk 2773bc8731 Removed `INSTALL_PIC_ARCHIVE' as installing these is going to be the default. 1993-11-14 16:48:54 +00:00
cgd 7d4a028027 bump major for sysV ipc additions 1993-11-14 15:06:24 +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
cgd d8cd41a62a bump major number for new regext stuff; incompatible interface 1993-11-12 01:38:29 +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
jtc 5e1b956859 Forgot to change dtoa() to __dtoa() when I updated the code from netlib. 1993-11-11 02:08:55 +00:00
jtc 6931099e77 Update to Henry's Nov 2, 1993 alpha3.2 release. 1993-11-11 02:02:57 +00:00
jtc 505033cddd Bump shared library version because regular expresion routines have been
replaced.
1993-11-11 01:34:08 +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 9f78fc2f07 Enable Henry Spencer's POSIX.2 compatible regular expression routines.
Disable is earlier V8-style routines.
1993-11-11 01:16:50 +00:00
jtc b90ff8310a Henry Spencer's POSIX.2 compatibile regular expression matching routines. 1993-11-10 23:34:55 +00:00
jtc 7600aa4d0a Upgraded to Jun 21, 1993 version from research.att.com:
With 32-bit ints, the former could give too small a block for the return
  value when, e.g., mode = 2 or 4 and ndigits = 24 (16 for 16-bit ints).
  tweak to work with 32-bit ints and 64-bit long
1993-11-10 01:58:57 +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 daea3d2f86 add shlib_version file, with version 0.0 1993-11-08 03:48:53 +00:00
cgd 1966e528e6 fix flag name 'bug.' reported by Lennart Augustsson <augustss@cs.chalmers.se> 1993-11-08 03:31:24 +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
cgd 2be44f5352 copy SYS.h and DEFS.h, too. 1993-11-05 22:44:00 +00:00
cgd f0c5bd92a1 add strncmp to the list of things that gets copied to libkern. 1993-11-05 22:43:47 +00:00
jtc 86f54a1e24 Corrected and simplified floating point formatting.
Now conforms to ANSI C --- passes the fairly rigorous TCL "format.test".
1993-11-04 02:26:10 +00:00
jtc 5be26afce6 Trailing zeros should be printed with all floating point formats
except %g && %G --- ANSI X3.159-1989, Sect 7.9.6.1.
1993-11-03 19:32:01 +00:00
cgd dfa98edf21 fixes from Garrett A. Wollman <wollman@emba.uvm.edu>:
note that EACCES is returned if program file is on an FS mounted
MNT_NOEXEC.  also fix missing close-paren.
1993-10-26 01:49:04 +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 1f10b5021b Added 1170's a64l() & l64a() functions. 1993-10-22 17:26:43 +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 4418616857 Move the old berkeley sccs id into the header comment like it is done
for other source files.
1993-10-21 02:19:25 +00:00
jtc 6be8b83abc Gcc helper functions should still use the ENTRY() macro so they will be
show up in profiled code.  (The gcc helper functions in the other ports
do this allready).
1993-10-21 02:03:37 +00:00
jtc 34d1aad0c1 Use PIC_PLT macro with the function calls (as was done with setjmp()). 1993-10-21 01:59:44 +00:00
jtc 79591d04bc So many files in arch/i386 have been changed I might as well run my
remove unecessary trailing whitespace script.
1993-10-21 01:48:14 +00:00
jtc 823c36577c Change instances of LIBC_RCS back to LIBC_SCCS. If we are going to change
th LIBC_RCS, the entire source tree should be updated at once.
Remove && !defined(lint) from conditionals around rcs id's.  No one is
ever going to pass a *.s file through lint.
1993-10-21 01:39:55 +00:00
jtc 97ad548bc0 Replaced instructions with immediate operands with compatible alternatives
saving a few bytes while the cycle count remains the same --- could
actually be faster, depending on the cache, prefetch queue, etc.
1993-10-20 18:50:15 +00:00
cgd 32661c1f77 update to v1.72 of new DB code 1993-10-20 07:25:53 +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 6802033480 sigsetjmp() for the i386. 1993-10-19 20:44:00 +00:00
deraadt 7be47c8451 #if defined(hp300) || defined(sparc) || defined(amiga)
The knowledge about floating point format should really be pulled in
from somewhere better.
1993-10-19 08:34:29 +00:00
deraadt 78942d40e6 First cut; not sure if it's right. Very like it is, because it's
the same as the m68k versions..
1993-10-19 08:17:20 +00:00
cgd b950dbff54 fixes from Thomas Eberhardt <thomas@mathematik.uni-Bremen.de> to:
(1) don't clobber the MLINKS variable in rpc
	(2) install the rand48 man page in stdlib
1993-10-19 00:36:16 +00:00
cgd c8c15b1c4c don't compiler strerror.c source here, and clean up. 1993-10-18 20:24:34 +00:00
jtc 4072b7fbd0 Grammar and formatting fixes. 1993-10-18 20:04:00 +00:00
pk 54c62acf22 Let libc_pic.a be installed. 1993-10-17 01:10:37 +00:00
pk 37395ea2bb Added subdir `dl'. 1993-10-17 00:46:25 +00:00
pk 22b1f4b825 User interface to dynamic linker functions.
Note: under construction.
1993-10-17 00:45:45 +00:00
jtc 722c46e238 Rename _findenv() to __findenv(), as _findenv is in the user's namespace. 1993-10-15 01:26:42 +00:00
jtc 39ff8227a8 Makefile.inc, basically a place to put KMSRC definition 1993-10-15 01:24:47 +00:00
jtc c95309148f Copy machine dependant files (KMSRCS) to libkern. 1993-10-15 01:23:49 +00:00
jtc 77bf1ee93b Added copy-to-libkern and rm-from-libkern targets. 1993-10-15 01:06:47 +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 7675ee015a Change ``MAN3 = ...'' to ``MAN3 += ...'', so other manpages are built. 1993-10-15 00:39:23 +00:00
jtc 981beb6413 Use .Xr for SEE ALSO cross references. 1993-10-15 00:05:44 +00:00
jtc 721f0be3c4 Removed trailing comma from SEE ALSO section. 1993-10-14 23:30:41 +00:00
jtc d20a30ce29 Change SYNOPSIS section to use "unsigned" instead of "u_int". 1993-10-14 23:25:28 +00:00
jtc d2b1e8e4d3 Rename intenral _rand_foo variables to __rand_foo, as _rand_foo is in the
user's namespace.
1993-10-14 00:34:17 +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 aa13ae606a Change _dorand48 to __dorand48, as _dorand48 is in the user's namespace. 1993-10-13 21:55:04 +00:00
jtc 98ada58186 Split cfree() out of calloc.c.
If a user compiling in a strict ANSI or strict POSIX environment uses his
own function named cfree (which is legal, since cfree is not in a restricted
namespace) and calloc, the link will fail due to the cfree in calloc.c.
1993-10-13 21:44:23 +00:00
jtc e4da5d66a6 Use __dead instead of volatile. 1993-10-13 18:42:31 +00:00
jtc 716e19806c Document (well, really just mention) external variable optopt.
Add trailing semicolons to the extern variables in the SYNOPSIS section
like all of the other manpages with extern variables.
1993-10-13 17:23:39 +00:00
jtc c5ff256532 POSIX.2 requires special behavior if the first character of the optstring
argument is a colon.
Updated the manpage to reflect the above change, and expanded the example to
the one used by the POSIX.2 rationale, as it more clearly explains how
the new behavior is to be used.
The manpage should be rewritten --- it is much more confusing than it
should be.
1993-10-12 21:52:45 +00:00
cgd 41ec5a7f5c adding sysarch() man page 1993-10-12 02:16:33 +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 cc73d66b19 Clean up deleted files. 1993-10-10 00:32:42 +00:00
mycroft 2f0fca8e20 Clean up deleted files. 1993-10-10 00:18:02 +00:00
jtc 845bf7e773 Helper function _strerror is in the user's namespace, renamed it to
__strerror().
1993-10-09 00:11:01 +00:00
jtc f2c1ee25de Added rand48 manual page. 1993-10-09 00:08:02 +00:00
jtc aed559e85d Make it possible to use machine dependant versions of div and ldiv functions.
Use the new i386 versions of div and ldiv.
1993-10-09 00:03:32 +00:00
jtc 479a1c33c9 Provide i386 versions of div and ldiv -- they are simpler than the C versions,
since the idiv instruction does the right thing wrt truncating towards zero.
1993-10-08 23:57:13 +00:00
jtc e09d2f42db Use "testb %cl,%cl" instead of "cmpb $0,%cl".
This saves three cycles per character, and reduces the size of the
function by eight bytes (the loop is unrolled eight times).
Thanks to davidg for pointing this out.
1993-10-08 01:25:51 +00:00
jtc 42cce25b89 Use machine dependant version of labs.[cs] if one is present.
If not one of the enumerated list of machines, use the C language
versions of abs, labs, and atof.
1993-10-08 00:08:12 +00:00
jtc b3f9f8f6f4 Provide an assembly language version of labs().
Since ints and longs are both 32 bits on a i386, we could alias abs()
and labs() together as mycroft did with memmove()/memcpy(), but I'm
waiting on an interpretation ruling to see if it is legal.
1993-10-08 00:01:04 +00:00
brezak 933a7b3ad8 Rand48 routines from martin@ntkupc1.tuwien.ac.at (Martin Birgmeier) 1993-10-07 19:53:35 +00:00
mycroft b50f401d64 Clean up deleted files. 1993-10-07 19:28:50 +00:00
jtc 473c152a0a Moved strerror.[c3] from libc/stdio to libc/string.
Since perror is not permitted to change strerror()'s static buffer, I have
changed both functions to pass their own buffers to the new library-internal
function _strerror() that actually does the error message string look up.
Split strerror manpage into strerror and perror manpages.
1993-10-07 19:27:50 +00:00
cgd 63d7b6778b move the rpc code into libc 1993-10-07 07:29:33 +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 3cdce553b8 Fix typo from last change. 1993-10-05 23:28:09 +00:00
cgd 757cce049d make the first param const char *, so it compiles... 1993-10-05 21:06:04 +00:00
jtc c6edc05829 Assembly language version of the swab function.
This version is only slightly faster than the code generated by gcc on
my i486, but it is almost twice as small.  My i386 timing chart indicates
that this should be significantly faster than the gcc code on a i386.

Surprisingly, none of the code in the source tree actually use this routine.
But I optimized this routine for some image processing programs I wrote, and
I see no reason why everyone else shouldn't share the (admittedly) modest
benifits.
1993-10-05 18:35:10 +00:00
jtc 20ae84f65b Add swab.c or swab.s, as appropriate, to each machines source list instead
of always using swab.c
1993-10-05 18:30:18 +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 edbd9128da Changed SYNOPSIS, #include <string.h> before using strerror(). 1993-10-05 16:56:45 +00:00
jtc 801bd1aa6a Changed Synopsis, Buffer is of type "void *", not "char *".
The <unistd.h> header was allready correct.
1993-10-05 16:44:33 +00:00
jtc 778779a2cf Changed SYNOPSIS. Moved function "prototype" for waitpid above #include
of <sys/reso
1993-10-05 16:42:40 +00:00
jtc de34450455 Add #include <utime.h> to SYNOPSIS. 1993-10-05 16:39:28 +00:00
jtc 2faea8001e Changed SYNOPSIS, include <sys/types.h> too. 1993-10-05 16:38:01 +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 75e26868bb fread and fwrite both return size_t, not int. 1993-10-04 18:50:23 +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 11b6c26d07 Changed SYNOPSIS, include <sys/types.h> before <unistd.h>. 1993-10-04 18:36:57 +00:00
jtc 5475952064 Changed SYNOPSIS, include <sys/types.h> before <unistd.h> 1993-10-04 18:34:15 +00:00
jtc 84aafdfd51 Changed SYNOPSIS, include <sys/types.h>.
Still need to change code and manpage such that gidset array is gid_t.
1993-10-04 18:33:05 +00:00
jtc 881b030573 Changed SYNOPSIS, #include <unistd.h> too. 1993-10-04 18:31:22 +00:00
jtc f8c0bb78a8 Changed SYNOPSIS, <sys/types.h> should be included _before_ <unistd.h>,
not after.
1993-10-04 18:30:23 +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 238aebd684 Note that fileno() conforms to 1003.1-90. 1993-10-04 18:23:09 +00:00
jtc 54654f9e43 Changed SYNOPSIS to #include <sys/types.h> before <unistd.h>, as it should
(must, in a strictly conforming implementation) to define pid_t.
1993-10-04 18:16:06 +00:00
jtc 5d8fd2ace7 Note that creat() conforms to 1003.1-90. 1993-10-04 18:13:02 +00:00
jtc d2de74baea Remove "volatile" from function declaration in SYNOPSIS. We may want to
replace it with __dead, but volatile is clearly wrong.
1993-10-04 18:09:24 +00:00
jtc 0108bea0bb SEE ALSO items not comma separated. 1993-10-04 18:06:34 +00:00
jtc 21f074709e Change <stdlib> to <stdlib.h> in SYNOPSIS. 1993-10-04 18:05:47 +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 e7b64d20b2 Add #include <sys/types.h> to SYNOPSIS section, as it is needed too. 1993-10-04 18:01:12 +00:00
jtc fcd7123054 Add #include <sys/types.h> to SYNOPSIS, as it needs to be included too. 1993-10-04 18:00:10 +00:00
jtc ae00f50a7c Remove BUGS section, as atof() is now implemented in terms of strtod(). 1993-10-04 17:57:42 +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
pk 0c44ab58a7 Support for making PIC versions of the system call stubs. 1993-09-29 01:27:10 +00:00
pk d9a465e8af PIC generation when -DPIC flag is on. 1993-09-28 21:04:38 +00:00
pk 308358ebde Macro's for generating PIC code in assembler stubs. 1993-09-28 21:04:01 +00:00
mycroft 68f5f047ab Reenable building of Torek's quad library. 1993-09-28 03:05:28 +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
brezak 1ee5779f11 Clear direction flag. Too many folks were losing... 1993-09-19 19:16:27 +00:00
brezak 6b9e025ea9 Add sysarch() syscall. 1993-09-19 18:51:55 +00:00
cgd f2244fe7d4 ifdef notdef the inclusion of the quad support, since it doesn't compile
and charles didn't properly commit it to a branch.  LIBC SHOULD COMPILE
AT ALL TIMES!
1993-09-18 01:03:58 +00:00
phil 7ce7cb30df pc532 specifics. 1993-09-17 19:22:50 +00:00
mycroft 6a18f54f9b Clean up deleted files. 1993-09-17 19:12:49 +00:00
phil 88d13621dd Making this match other architectures. 1993-09-17 19:12:41 +00:00
mycroft 73ecaec9c3 Clean up deleted files. 1993-09-17 19:08:10 +00:00
phil 9472bfc2bd Initial pc532 libc tree. I expect this to change quite a bit. 1993-09-17 18:43:46 +00:00
cgd 72b27fe90c get rid of extraneous include of machine/endian.h now that it's
included by sys/types.h
1993-09-17 01:49:27 +00:00
cgd 65aeeefb0a version 1.71 of new db code 1993-09-17 01:06:18 +00:00
mycroft 2f7cd59af8 Compile quad stuff. 1993-09-16 06:06:41 +00:00
mycroft 49e0bc5446 Torek's quad stuff from 4.4. 1993-09-16 06:05:46 +00:00
jtc 2eb08c94c4 POSIX.2 has changed getopt to return -1 instead of EOF (to decouple getopt()
from standard i/o).  This change is more pedantic than functional as EOF
is defined to be -1.
1993-09-14 22:37:24 +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
cgd 45e27c8018 upgrade new DB code to version 1.7 1993-09-09 02:41:04 +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
jtc 4dde406083 Shave a cycle or two. Fix comment. 1993-09-07 16:50:29 +00:00
jtc d5dd740e34 Added code to compare by words. 1993-09-07 16:49:57 +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
deraadt 9d6ec4eec9 sparc code from Chris Torek 1993-09-05 22:14:55 +00:00
deraadt 0ae2e16067 include ${MACHINE}/Makefile.inc if it exists 1993-09-05 22:12:35 +00:00
jtc 53229bead2 Provide C language versions of the netorder functions.
These may be "good enough" for big-endian systems that do not have assembly
language versions of their own.  A compiler should be able to do a fairly
good job optimising them, it probably won't be smart enough to omit the
stack frame, but then again, these functions won't be called unless the
macro versions are undef'd.
On the other hand, they are only intended for bootstrap purposes on little-
endian systems.  They should be replaced with assembly language versions as
soon as possible.
1993-08-31 19:00:11 +00:00
brezak 13e51139e4 Add rcsid strings 1993-08-26 15:26:18 +00:00
mycroft ed55107bda Add `.text' before the .asciz strings for RCS identifiers. 1993-08-26 02:11:52 +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
jtc 647b2510cd Add cast to silence compiler warning. 1993-08-25 22:22:30 +00:00
brezak 979015728c Add syscall stubs for SYSV Shared Memory. 1993-08-25 02:50:51 +00:00
jtc 35aa0934e7 Note that code originated in locore.s.
Don't bother clearing %eax in bcopy(), it doesn't return anything so
why clear a return value that never gets used?
Don't bother clearing direction flag.  Any code that doesn't set/clear
it explicitly before a string instruction deserves to loose.
1993-08-24 16:59:00 +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 ec73f57f05 cast away compiler warning message. 1993-08-20 23:40:43 +00:00
jtc 67f034415c Upgraded to be 1003.2-92 compliant. The only functional change is
that -1 is returned when the fork fails.  Updated implementation to
use int rather than deprecated "union wait".  Updated documentation
to describe error / return values.
1993-08-20 23:00:45 +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 cbc115a0d5 Added the additional ``%'' format specifiers and the ``E'' and ``O''
format modifiers that are needed for a 1003.2 compliant date(1).  The
modifiers don't actually do anything at present and are not documented.
It's too confusing to the user to describe localization features when
they aren't implemented yet.  It is safe to do this, as the modifiers
fall back to the default behavior if the locale doesn't support alternate
eras or numeric formats.

But, in anticipation of _some_ locale support, all month and day names and
abbrevs, certain time formats, am/pm, etc. are now accessed through variables.
1993-08-19 16:39:47 +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 200ad8d9bd Don't include "DEFS.h" more than once.
Added .asciz rcsid's to all files.
1993-08-16 17:06:27 +00:00
jtc 0de7806863 Add STANDARDS section, utime is now 1003.1 compliant. 1993-08-16 15:42:14 +00:00
mycroft ca08320ae9 We shouldn't be diddling POBJS and CLEANFILES. bsd.lib.mk already does the
Right Thing.
1993-08-16 04:16:33 +00:00
mycroft 6fdbcf4e88 For some reason, substitution on variables doesn't seem to work in a target
list.  I don't think I want to know why.
1993-08-16 03:32:58 +00:00
mycroft 990ccb9207 Separate rules for .o and .po files. The previous method just caused too
many problems.
1993-08-16 02:44:19 +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 eb3ed86c00 Clean up manpage; cross-reference utime(3). 1993-08-14 00:00:56 +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
mycroft 3358fdf953 New file; contains value of HUGE_VAL. 1993-08-09 04:47:11 +00:00
cgd f08e3f34a5 merge in changes from netbsd-0-9-ALPHA2 1993-08-07 07:42:13 +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 a4bacdfbad setlocale(category, "") is supposed to set locale to the default.
The "C" locale in our case, since we have no other locale support.
1993-08-06 22:56:18 +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
jtc a35ec39674 Provide function versions of isascii() and toascii(). 1993-08-06 21:46:42 +00:00
mycroft c4c9267c74 Add sys_signame[]. 1993-08-06 20:56:34 +00:00
mycroft 9417ee8681 Add getbsize() from Berkeley, somewhat modified. 1993-08-06 17:03:54 +00:00
jtc 2166786f23 update manpage to -mandoc macros 1993-08-05 21:31:41 +00:00
mycroft 36af9568db I'm really mad now. Not only did this `new' version have exactly the same
bugs as the `old' one, but it was almost identical!
1993-08-03 22:48:35 +00:00
mycroft 584cb286d8 Add RCS identifier. 1993-08-03 21:55:48 +00:00
mycroft 52efca41cd Nuke remaining patchkit headers. 1993-08-02 18:17:24 +00:00
mycroft aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft 55b7fa6d0b Add RCS identifiers. 1993-08-01 07:54:52 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
mycroft 0e9c8e4524 Add RCS identifiers. 1993-07-30 08:34:38 +00:00
mycroft f23f94cb77 Add even more RCS frobs. 1993-07-30 08:21:41 +00:00
mycroft 2e9407c8eb Remove patchkit lossage, and RCS frob, and make tolower() and toupper() a
little faster.
1993-07-30 08:07:44 +00:00
mycroft adb8dc2533 Add RCS frob. 1993-07-30 07:59:55 +00:00
mycroft e7ae1531d5 Latest versions from uunet. 1993-07-30 07:57:48 +00:00
mycroft 6001d6e5c9 system.c 1993-07-30 03:29:07 +00:00
mycroft bdbbba0b73 Use execve() rather than execl(). This is faster and doesn't use malloc()
(and thus avoids an annoying problem which only seems to manifest itself
in KCL).
1993-07-29 22:09:42 +00:00
glass ca073b5fd0 adding man pages for termios support functions 1993-07-25 23:05:00 +00:00
glass 20e82d4699 Finally deprecate the old timezone() interface in favor of an XSH5
timezone/daytime pair; as proposed by J.T. in September, 1996.
Fixes PR standards/11807 by Nick Hudson.
1993-07-25 23:04:59 +00:00
deraadt 80795f5a8e new header files are more ansi-like 1993-07-24 18:29:16 +00:00
deraadt 9e0367ab04 fixed a yp-related bug found by Paul Kranenburg <pk@cs.few.eur.nl>:
endpwent was free'ing passwd line.
1993-07-24 18:28:32 +00:00
jtc 932d674def Fix spelling error. 1993-07-20 20:54:41 +00:00
cgd 928342ac2c (1) compare against UCHAR_MAX, don't use isascii().
(2) strvis() didn't work on 0-length input strings
(3) strvisx() didn't work at all
1993-07-15 17:54:43 +00:00
mycroft b7c7310653 Make declarations match prototypes. 1993-07-12 02:09:31 +00:00
mycroft 119df3af46 Make this work on more than just a 386. 1993-07-12 01:23:14 +00:00
cgd aacbd3b3e3 don't include an extra atof.c... 1993-07-09 10:09:31 +00:00
cgd 49693da854 update for better FP routines, from AT&T & elsewhere 1993-07-09 09:40:07 +00:00
mycroft 965a95338b Clean up deleted files. 1993-07-09 09:40:01 +00:00
cgd 4cbf5e04e2 update for better FP routines, from AT&T & elsewhere 1993-07-09 09:39:13 +00:00
jtc 527e6a5736 Add i386 assembly versions of bcmp & memcmp 1993-06-17 23:00:41 +00:00
jtc b51b2fdb46 enable memset & memchr. 1993-06-17 16:14:32 +00:00
jtc 36b9af8bc1 bzero: make sure we are longword aligned before we "stosl"
memchr: new
memset: new
strcat: shave a cycle or two.
1993-06-17 16:12:49 +00:00
mycroft 6d772d56b3 Stupid cpp! 1993-06-17 13:04:04 +00:00
mycroft dbf2e6e2b8 Remove some spaces so GAS 2 won't barf (but I think I will)... 1993-06-17 12:05:29 +00:00
jtc 3743b2f50b fix align directive, so we don't jmp to a bunch of nops before we get to the good stuyff 1993-06-17 01:50:12 +00:00
jtc 7fb7e975c7 Make assert macro ansi complient. 1993-06-16 23:18:35 +00:00
jtc bceb67fa8d According to Ansi C, signal is supposed to return SIG_ERR on error,
not BADSIG.  I know they are the same thing, but this allows me to
remove the otherwised unused, bogus macro BADSIG from signal.h
1993-06-16 22:12:16 +00:00
mycroft 409bc91101 Move asm.h from /usr/include/sys to /usr/include/machine. 1993-06-16 21:42:43 +00:00
mycroft ac1dfafeae Clean up this bullshit. 1993-06-16 21:31:12 +00:00
jtc b0824ed69e include xdr_float & xdr_double with all the other rpc/xdr code in libc.a 1993-06-16 21:30:20 +00:00
mycroft b2a958ff6d Use TWOENTRY(). 1993-06-16 21:04:44 +00:00
mycroft cddba95abb Use ENTRY() macro (for profiling). 1993-06-16 19:11:37 +00:00
mycroft 138b0ef3ae #include <sys/asm.h>, and don't lose if we compile memcpy() with profiling. 1993-06-16 19:00:52 +00:00
mycroft 9490d905c4 Clean up deleted files. 1993-06-16 18:39:49 +00:00
mycroft 686b9e0da1 Actually, just make memcpy() an alias for memmove(). 1993-06-16 18:38:38 +00:00
mycroft 33c9c47425 Oops. Forgot to update the Makefile. 1993-06-16 18:33:25 +00:00
mycroft 42bfa88f6a Add memcpy.s and memmove.s, based on bcopy.s. 1993-06-16 18:26:40 +00:00
mycroft a7554b65a7 Use ENTRY macro. 1993-06-16 18:23:21 +00:00
jtc dacb3d324d Update fnmatch() to be more posix complient (from bostic). 1993-06-16 17:16:11 +00:00
jtc caf6ead8ab performance bugs discovered by mycroft 1993-06-16 16:31:00 +00:00
jtc 9bdb2fb9ea Added i386 assembly language versions of ffs, strcat, strcpy, and strlen.
Updated comments of index, rindex, strchr, strcmp, strncmp, and strrchr.
1993-06-16 16:03:56 +00:00
jtc 5d2d1a3364 Added i386 assembly language versions of ffs, strcat, strcpy, and strlen. 1993-06-16 16:02:26 +00:00
jtc 800e6b4bac Added fast strcmp() and strncmp() routines. 1993-06-15 23:25:30 +00:00
jtc 2658bf6d50 Added fast strcmp() and strncmp() routines. 1993-06-15 23:25:12 +00:00
cgd 9f0aa214be update db code to v1.6 from vangogh, and put it in "db" rather than "DB" 1993-06-14 23:52:39 +00:00
mycroft c1cecd30d8 Clean up deleted files. 1993-06-14 23:51:49 +00:00
cgd 70a04c5a30 update db code to v1.6 from vangogh, and put it in "db" rather than "DB" 1993-06-14 23:51:26 +00:00
mycroft 6609149bb3 Clean up deleted files. 1993-06-14 21:16:14 +00:00