Commit Graph

531 Commits

Author SHA1 Message Date
mycroft
f3c504c364 Clean up deleted files. 1993-11-09 04:10:07 +00:00
cgd
083bf15097 repeat after me: "I hate rcs ids" 1993-11-09 04:09:08 +00:00
cgd
8ed76a6ac4 oops; forgot this bit 1993-11-09 04:08:59 +00:00
cgd
2f65b6139d repeat after me: "I hate rcs ids" 1993-11-09 04:06:43 +00:00
cgd
4acf14c6be rcs id's and don't include "compat.h" 1993-11-09 04:05:35 +00:00
cgd
b4beac8f5f update to new version from berkeley. doesn't compile yet, nor
does it have rcsid's.  this is for diffs.  new doc layout thang.
1993-11-09 03:36:33 +00:00
mycroft
c70688046b Clean up deleted files. 1993-11-09 03:35:11 +00:00
cgd
019bbd1316 update to new version from berkeley. doesn't compile yet, nor
does it have rcsid's.  this is for diffs.
1993-11-09 03:34:01 +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
59a1661ae9 replace single quotes with double quotes where necessary 1993-11-07 11:14:53 +00:00
cgd
3028939baf script to bump shlib_version files, etc. doesn't get installed, no man page. 1993-11-07 09:00:33 +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
cgd
f5a0af0d6e link libtermlib's shared library to libtermcap's 1993-11-05 05:01:56 +00:00
pk
12094d064d Can get rid of local symbols with "ld -x -r" again.
Made LDSO #ifdef DEBUG.
1993-11-04 10:51:39 +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
jtc
5e7056a72c Fix formatting of SEE ALSO section. 1993-10-29 22:57:17 +00:00
jtc
3e27155a88 This type of error checking/reporting is required for many functions,
and is desirable for most of the rest.
1993-10-29 22:24:02 +00:00
jtc
4899342fb1 Holds value of ERANGE and EDOM for assembly routine's error reporting. 1993-10-29 22:22:31 +00:00
jtc
4a01193d1f exp & log functions. 1993-10-29 18:11:00 +00:00
jtc
54601ddeac Don't assume the rounding control bits are 00, make sure that both bits
are set (or reset) as appropriate.
1993-10-29 18:06:16 +00:00
jtc
6ca09b6171 Fix manual page typos. 1993-10-29 17:10:08 +00:00
jtc
ec0553e82c More work on i387 specific math library 1993-10-28 19:02:53 +00:00
jtc
1edfcdc790 Additional work on a i387 specific math library. 1993-10-28 00:14:13 +00:00
mycroft
af06d69559 Clean up deleted files. 1993-10-26 23:20:31 +00:00
jtc
5742893287 Start of i387 specific math library functions. 1993-10-26 23:19:34 +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
65fc5961b5 `ld -x -r crt0.o' defines __DYNAMIC as data. This we cannot use.
Disabled until I sort it out.
1993-10-24 01:34:24 +00:00
pk
bd67a6f934 Enabled __DYNAMIC. 1993-10-23 00:47:15 +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
9a3e07c4c1 Use BYTE_ORDER == LITTLE_ENDIAN instead of -Dnational to select byte order
of floating point numbers.

The assumption that a processor's floats use the same order as its integers
is probably unwarranted, but it is better than requiring non-national CPUs
to #define national, as that drags in national-specific code too.
(According to a comment in the code, the national FPU does not do infinity)
1993-10-21 00:41:56 +00:00
jtc
6240619b9d Add comma between gamma and lgamma in NAME section. 1993-10-21 00:23:23 +00:00
jtc
7b51b77358 Removed duplicate names from the NAME section. 1993-10-21 00:22:10 +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
211d527be4 fix to pow so that pow(x,y) for x == 0 or x == infinity works. 1993-10-19 01:31:09 +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
pk
c677f4482a Haven't tested these for NetBSD, but they work in SunOS. 1993-10-16 22:02:58 +00:00
pk
4406f07dc2 Startup code supporting shared libraries.
NOTE: #ifdefs sparcs should be removed
1993-10-16 21:58:39 +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
4048c19048 Define errno. 1993-10-13 23:45:22 +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
mycroft
ababab0671 Forgot to initialize `cp' in setsyserr(). 1993-10-13 15:49:55 +00:00
cgd
2918003a45 make make after depend finally work. have to do more work, but that's
OK...
1993-10-13 05:28:03 +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
jtc
a3b3dd2348 Install cbrt link to sqrt manpage. 1993-10-11 19:20:24 +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
mycroft
5074eed1b2 Clean up deleted files. 1993-10-09 23:31:37 +00:00
cgd
b23795cc2b the two real include files are now in /usr/src/include 1993-10-09 23:31:27 +00:00
cgd
82360f892e correct directory name in man page 1993-10-09 00:59:10 +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
cgd
8fc014c815 frob things a bit so depend works. 1993-10-08 05:44:32 +00:00
cgd
8a4e4890b1 move include generation and rpc source files intp lib/librpcsvc 1993-10-08 05:26:25 +00:00
mycroft
6a93cfbcbc Clean up deleted files. 1993-10-08 03:47:32 +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
cab8e2bdba "There will be NO librpc tomorrow!" 1993-10-07 07:39:23 +00:00
mycroft
4d4f745b47 Clean up deleted files. 1993-10-07 07:33:02 +00:00
cgd
63d7b6778b move the rpc code into libc 1993-10-07 07:29:33 +00:00
cgd
d86859f644 print the warning exactly once per function per program invocation. 1993-10-07 01:43:14 +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
pk
a3d6ce6845 PIC: don't bother. 1993-10-05 21:55:45 +00:00
pk
c8569cefb7 Not worth the trouble to turn this into Position Independent Code. 1993-10-05 21:54:30 +00:00
pk
5258e5ce3d No PIC, you probably don't want the overhead in these functions. 1993-10-05 21:52:07 +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
1658725165 Fix grammar of HISTORY section. 1993-10-05 16:46:09 +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
acd1aa18bc Remove trailing comma from SEE ALSO list. 1993-10-05 16:33:47 +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
4c0b8d21f0 Removed trailing in SEE ALSO list 1993-10-04 18:07:15 +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
f85b59f046 Change math.3 to math(3) in SEE ALSO section. 1993-10-04 18:04:34 +00:00