summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move the trampolines for dlopen and related functions from crt0.ojdp1998-02-096-128/+122
| | | | | | | | | | | | | | | into libc. This reduces the size of every dynamically linked executable by 248 bytes, and it reduces the size of static executables by a lesser amount. It also eliminates some global namespace pollution. With this change in place, the source for dlfcn.h should probably be moved to "/usr/src/include". I'll save that for another day. Compatibility note: Programs which use dlopen, if compiled on systems with this change, will not run on systems with a libc from prior to this change. Very few programs use dlopen, so I think that is OK.
* Implement dladdr.jdp1998-02-064-13/+169
|
* slight cleanup in handling sockets and file descriptors.julian1998-02-051-3/+13
| | | | Same fix already applied to other types of fds. This one was apparently missed.
* Document the fpgetprec/fpsetprec functions in their man page.jlemon1998-02-044-2/+14
| | | | | | Add cross-references to the elusive fpsetmask() function to various other man pages. Reviewed by: bde
* Cleanup the manpage now that setpwent has a void return type.steve1998-02-011-7/+7
|
* XOpen says the void setpwent(void) is correct. Also call setpassent(0)steve1998-02-011-7/+2
| | | | | | instead of duplicating code, albeit trivial (inspired by NetBSD). PR: 5524
* Kill lfs files that were causing make world to fail.imp1998-01-311-3/+2
|
* PR: 5573danny1998-01-272-2/+4
| | | | | Submitted by: garbanzo@hooked.net Add strncasecmp, strncmp to NAME field.
* Fix a cast from a pointer to a long instead of an int which was enoughjb1998-01-241-2/+2
| | | | to ruin a 64-bit day.
* Don't swap carriage return and new line in quoted mode (after ^V).helbig1998-01-221-2/+2
|
* Eliminate sprintfimp1998-01-211-1/+2
| | | | Obtained from:OpenBSD (theo de raadt)
* Fixed #includes in the synopsis and in an example. <sys/socket.h>bde1998-01-202-3/+3
| | | | | | isn't a prerequisite, since it isn't required for the prototypes and isn't always needed to call the functions (the address family might be a variable).
* Moved most of the (source-level) compatibility hacks for the vfsconfbde1998-01-201-2/+4
| | | | | interface from sys/mount.h to libc/getvfsent.c The new interface is now the default.
* Added cross references to mincore(2) and minherit(2).alex1998-01-201-0/+3
| | | | Obtained from: OpenBSD
* Added #include <sys/types.h> to synopsis.alex1998-01-202-1/+4
| | | | Obtained from: OpenBSD
* Started getting rid of the compatibility cruft for the Lite1 mount()bde1998-01-171-0/+2
| | | | | | | | and the pre-Lite2 vfsconf interfaces. For getvfsent.c, just define _OLD_VFSCONF. This will give the current default macro hacks in <sys/mount.h> when the default is reversed. This is an intermediate step.
* Don't install the tcl implementation headers. The tcl distributionbde1998-01-171-9/+1
| | | | | | | | makefile doesn't install them, and they couldn't be used without lots of undocumented -I's in CFLAGS. tcl.h is still installed in /usr/include/tcl/. Note that rev.1.24 of tcl_bmake/mkMakefile.sh broke all the section 3 tcl man pages by putting it there instead of in /usr/include.
* Updated shlib version to 80.4 in the correct place.bde1998-01-171-2/+2
| | | | | Regenerated libtcl/Makefile. This adds -DHAVE_ST_BLKSIZE=1 to CFLAGS. It was broken by direct editing in rev.1.25.
* Fixed bitrot in the prototype for logwtmp().bde1998-01-161-2/+2
|
* Fixed bugs in the conversion of kvm to to use procfs in rev.1.3. Allbde1998-01-161-9/+14
| | | | | | | | | | | | are in kvm_uread(): - the setting of errno before checking it in the lseek() was lost. - EOF handling was lost. kvm_uread() retried forever on EOF. EOF is not really an error, but report it one as in rev.1.2. - reporting of errno after a read error was lost. Fixed style bugs in rev.1.3 and rev.1.12. Not fixed: errno is not reported after lseek() failures.
* Fixed wrong prototype for history().bde1998-01-161-3/+3
| | | | Don't (mis)use .Fd outside of the synopsis.
* Fixed missing #include in synopsis.bde1998-01-161-0/+2
|
* Fixed wrong prototype for clock_getres().bde1998-01-161-2/+2
|
* Fixed wrong prototypes. Most of the prototypes had missing return types,bde1998-01-161-9/+19
| | | | or missing const's or `short *' instead of `[ug]id_t *' in argument types.
* Fixed missing return type in a prototype.bde1998-01-161-0/+1
|
* Fixed a missing #include in the synopsis.bde1998-01-161-4/+5
| | | | | | | Fixed some wrong prototypes. Fixed a misspelled function name. The owner of this file should add a copyright and an Id.
* Added prototypes for functions that were documented in libalias.3bde1998-01-161-0/+8
| | | | but not prototyped here.
* Non-intrusive changes to support Justin's CAM stuff.jkh1998-01-162-3/+5
|
* PR: 5489danny1998-01-151-5/+5
| | | | | Submitted by: Steve G. Kargl <kargl@troutmask.apl.washington.edu> Repair corrupted text.
* Return the correct errno from getcwd() even if free() or closedir()mckay1998-01-151-0/+4
| | | | | | overwrites it. This actually showed up when running under an old kernel when free() called the madvise() stub which set errno, causing getcwd() to return EOPNOTSUPP instead of ERANGE.
* Add #ifndef __NETBSD_SYSCALLS around calls to issetugid() whichjb1998-01-153-6/+18
| | | | do not exist in NetBSD 1.3.
* Typo fix.alex1998-01-151-2/+12
| | | | | | | Added EOPNOTSUPP and EMLINK to errors section. Added symlink(2) xref. Obtained from: OpenBSD
* Include string.h for memcpy function prototype.jb1998-01-141-0/+1
|
* Remove __libalias_version. Ppp no longer uses it.brian1998-01-141-3/+0
|
* Consistently reference init as .Xr init 8.alex1998-01-131-2/+2
| | | | Obtained from: OpenBSD
* Return type and argument to sleep are unsigned int.alex1998-01-131-2/+3
|
* When printf'ing the result of pointer arithmetic, cast the result tojb1998-01-131-9/+9
| | | | | | | long and use %ld, not %d. We're going to need an abbreviation for this comment 'cause it's going to be used a lot from now on.
* Dump the constant NGROUPS in favor of the POSIX way:alex1998-01-131-9/+6
| | | | | | sysconf(_SC_NGROUPS_MAX). Submitted by: bde
* Use .Fn for sysconf(_SC_CLOCK_TCK) reference.alex1998-01-131-1/+3
| | | | Added $Id$.
* ${TARGET} -> ${.TARGET}eivind1998-01-121-2/+2
| | | | Tiny pointed hat goes to: Our Makefile-meister.
* Formatting fix & improved comment for struct timeval.alex1998-01-111-1/+3
| | | | Obtained from: OpenBSD
* Fixed brk(2) xref.alex1998-01-111-1/+2
| | | | Obtained from: OpenBSD
* Added sys/types.h to synopsis as per POSIX.alex1998-01-111-1/+2
| | | | Obtained from: OpenBSD
* Replace sys/param.h with sys/types.h as per POSIX.alex1998-01-111-1/+9
| | | | | | Document the special case of gidsetlen == 0. Partially obtained from: OpenBSD
* Document that arg max is controllable via sysctl.alex1998-01-111-5/+7
|
* Remove use of <osreldate.h>.eivind1998-01-111-6/+0
| | | | Screwed up by: myself
* Formatting fix.alex1998-01-111-1/+2
| | | | Obtained from: OpenBSD
* Added EMFILE and ENFILE to errors section.alex1998-01-111-0/+5
| | | | Obtained from: OpenBSD
* .Xr sigvec --> sigactionalex1998-01-111-2/+2
| | | | Obtained from: OpenBSD
* Add <sys/types.h> to synopsis.alex1998-01-111-1/+4
| | | | | | | Correct a grammatical error. Add cross-reference to setrlimit(2). Obtained from: OpenBSD
OpenPOWER on IntegriCloud