summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Slight style police.obrien1998-10-251-3/+13
| | | | Add some content from objformat(1).
* fix unsigned overflowache1998-10-251-5/+7
| | | | PR: 8437
* Fix types.dima1998-10-211-19/+19
|
* Revert last change. mkstemp() wasn't to blame, it's nvi. However,peter1998-10-201-21/+5
| | | | mkstemp() is not behaving as documented.
* Stop mk*temp() from being pathologically stupid in the face of a umask(0);peter1998-10-201-5/+21
| | | | | | | There are other ways to fix this than wrapping _gettemp(), but this was the most convenient. Discovered by: bde
* Since vfork() was changed to fork(), we have to pass errno back from thedes1998-10-201-3/+6
| | | | | | | child to the parent somehow. PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu>
* Implement a hook to allow us to reclaim the memory used by the first stagedfr1998-10-192-2/+14
| | | | of the bootstrap (the bit which loads /boot/loader).
* To clarify last commit, msmith says:obrien1998-10-171-1/+1
| | | | | The reason the Alpha has less room than the i386 is because the bootstrap is given a 256K mapping by the firmware; to add more requires extra work.
* Reduce the sbrk() increment from 64K to 4K. There's not much room on themsmith1998-10-161-2/+2
| | | | Alpha, and wasting potentially 64K-4 bytes of RAM just isn't an option.
* Fix style issues in execl(), and make execle() vfork()-safe.des1998-10-151-13/+23
| | | | | Reviewed by: bde Approved by: jkh
* Conform to POSIX and close any copies of popen() descriptors inherited by amsmith1998-10-151-0/+4
| | | | | | | popen()ed child. PR: misc/7810 Submitted by: Wayne Scott <wscott@ichips.intel.com>
* Fix a couple of potential buffer overrun cases.ken1998-10-141-4/+8
| | | | Submitted by: imp
* Correct braino in previous commit. I get the pointy hat again.des1998-10-141-3/+4
|
* Make execl() vfork()-safe. This should fix potential bugs in rcp,des1998-10-141-8/+20
| | | | | | | telnet and tip, and probably a few other apps. Reviewed by: bde Approved by: jkh
* correct prototype.jkh1998-10-141-2/+2
|
* Add man pages for many of the functions in the CAM library. This coversken1998-10-143-33/+983
| | | | | | | | | | | most of the open/close routines, and the buffer/cdb parsing routines derived from the old scsi(3) library. The cam_cdbparse(3) man page borrows from the old scsi(3) man page, so the copyright and history section reflect that. The many scsi_* functions and other functions that are pulled in from the kernel aren't documented yet, but will be eventually.
* Updated library order and comments about it. This fixes libm notbde1998-10-131-6/+10
| | | | being built before libf2c and libmd not being built before libatm.
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() ordes1998-10-131-3/+3
| | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde
* Add a "dummy light" (actually two dummy lights) to catch people who don'tken1998-10-121-4/+27
| | | | | | | | | have the passthrough device configured in their kernel. This will hopefully reduce the number of people complaining that they can't get {camcontrol, xmcd, tosha, cdrecord, etc.} to work. Reviewed by: gibbs
* Avoid the "Cannot allocate memory" problem that appears on heavilydes1998-10-121-4/+10
| | | | | | | | | loaded systems by retrying the sysctl() with a larger buffer if it fails with ENOMEM. For good measure, allocate 10% more memory than sysctl() claims is necessary. PR: 8275 Reviewed by: David Greenman <dg@freebsd.org>
* Fix a curses bug exposed by the ":numbers" display of systat -iostat.ken1998-10-121-2/+2
| | | | | | | | | | | | | | | | | | This bug showed up when you had more than 3 devices displayed. (thus requiring a second line of display) Here's a quote From the PR: When wrefresh() is called with a subwindow as argument, __set_subwin might be called with reversed arguments if wrefresh() decides to calls quickch(). This may cause use of negative array indexes, with a resulting segfault. Since quickch() manipulates the line structures belonging to curscr, it looks like all subwindows of curscr should be updated. PR: bin/8086 Submitted by: Tor Egge <Tor.Egge@fast.no>
* Eliminate nested comment warning.jdp1998-10-111-1/+1
| | | | Submitted by: lh@aus.org
* Fixed removing of obsolete shared libraries:bde1998-10-111-8/+5
| | | | | | | | | | - the directory was wrong if ${SHLIBDIR} != ${LIBDIR}. It's still wrong if the installation of the obsolete library was done before /aout was appended to LIBDIR. - the version would have become wrong when the default in ../Makefile.inc is changed from 2.0. - the comment mostly described moving of libraries to /usr/lib/compat, but we don't do that.
* Avoid the need for calling functions that malloc after a vfork().peter1998-10-111-2/+10
|
* libopie also depends on libmd. Programs using libopie shouldn't have topeter1998-10-111-1/+4
| | | | know about libopie's internals in order to use it.
* libf2c.so.* depends on libm.so. I'm not sure that this matters in thispeter1998-10-111-0/+3
| | | | case because I expect the f2c front-end should add the -lm automatically.
* libatm uses libmd; add it to the dependency list so that programs usingpeter1998-10-111-1/+4
| | | | libatm are not forced to know the internals of it's implementation.
* Deal with /usr/lib/compat/aout, and that we've been installing thingspeter1998-10-111-12/+13
| | | | | | | in the wrong places for a while. Also, the the libtermlib.so -> libtermcap.so manually for elf, otherwise the hard link follows the symlink and the result looks rather wierd. The *.a files are still hard linked under elf as before.
* Don't build elf libresolv.so*, no elf freebsd binaries have used it ever.peter1998-10-111-3/+10
| | | | | Also, the a.out compat version is supposed to go into /usr/lib/compat/aout. Try and clean up the mess left behind in /usr/lib/compat.
* Don't install an elf libgnumalloc.so* in /usr/lib/compat.. No elf binariespeter1998-10-111-4/+11
| | | | | | have been linked against it. Try and clean up the leftovers. Also, put the a.out libs in /usr/lib/compat/aout since that's where the default a.out ldconfig compat path points to.
* Don't install an elf liby.so[.2] in /usr/lib/compat. We have never hadpeter1998-10-111-4/+13
| | | | any elf binaries linked against it. Try and clean up the mess left over..
* vfork -> fork. The child calls execl() which calls malloc(), sobde1998-10-101-1/+1
| | | | | | | | | vfork() can't be used. We could use alloca() in execl() so that it can be called between vfork() and execve(), but a "portable" popen() shouldn't depend on this. Calling execle() instead of execl() should be fairly safe, since execle() is supposed to be callable from signal handlers and signal handlers can't call malloc(). However, execle() is broken.
* Remove the description of EBADF (that's an implementation detail if Ieivind1998-10-101-11/+6
| | | | | | | | ever saw one), and move the description of NULL behaviour out to a 'NOTES' section, with an extra note that programs should not rely up on it. Kinda-approve-by: bde (by not replying to the mail with the diff)
* Fix some bugs in pthread scheduler:dt1998-10-096-18/+36
| | | | | | | | make pthread_yield() more reliable, threads always (I hope) preempted at least every 0.1 sec, as intended. PR: bin/7744 Submitted by: "Richard Seaman, Jr." <dick@tar.com>
* Now take stdio.h out of files that don't require it.jkh1998-10-099-17/+10
|
* Update docs to match interface change.jkh1998-10-091-4/+4
|
* o move path in libutil.h to paths.hjkh1998-10-093-10/+11
| | | | | o make property_read() take a fd instead to avoid stdio.h mess o update auth to new interface.
* Take the path spec back out.jkh1998-10-091-4/+1
|
* All these have to include stdio.h now.jkh1998-10-094-4/+8
|
* remove stdio.h include; I forgot Bruce's cardinal rule that header filesjkh1998-10-081-2/+1
| | | | | | shouldn't include other ones (which, unfortunately, is also a hellish rule since he broke interfaces like sysctl this way by requiring undocumented header files to be included just in order to be able to use them now - SIGH!).
* Add some rudimentary documentation for my new functions.jkh1998-10-084-2/+182
|
* Correct a build error that got past my build test somehow.jkh1998-10-082-0/+3
|
* Add a simple mechanism for reading property lists from files (whichjkh1998-10-074-2/+300
| | | | | | | I'll convert sysinstall to use shortly) and a simple call which uses this mechanism to implement an /etc/auth.conf file. I'll let Mark Murray handle the format and checkin of the sample auth.conf file. Reviewed by: markm
* Add strcasecmp source file required for dosfs operation.msmith1998-10-071-0/+74
|
* Fix a memory leakjulian1998-10-071-15/+25
| | | | | | | | | | | PR: 7923 Submitted by: Archie Cobbs <archie@whistle.com> The scandir() function returns -1 if it fails. In many cases when this happens, it does not free the memory that it allocated, resulting in a memory leak, or close the directory opened with opendir(). BAD DOG, BAD!
* Enable the DOS filesystem. This allows reading from various DOS filesystemsmsmith1998-10-063-10/+9
| | | | | | | (FAT12/16/32, VFAT). Make a private copy of strcasecmp, as the "real" one uses the system ctype header, which introduces locale poisoning.
* Teach libdisk about alpha boot blocks.dfr1998-10-064-4/+51
|
* 64bit portability fixes.dfr1998-10-051-11/+11
| | | | Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
* Don't build with -g.msmith1998-10-041-2/+2
|
* program written under FreeBSD -> programs written under FreeBSDeivind1998-10-031-2/+2
| | | | Noticed by: Alex Nash <nash@mcs.net>
OpenPOWER on IntegriCloud