summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use C99 compatible ASM statements.obrien2003-06-101-1/+1
| | | | | (untested, but existing state breaks http://triangle.rtp.freebsd.org/~des/tinderbox-CURRENT-amd64-amd64.brief)
* Add an EXAMPLES section.trhodes2003-06-101-0/+22
| | | | | PR: 43899 Reviewed by: des, ru
* Various cleanups of careless mistakes/omissions.jmallett2003-06-104-11/+11
| | | | | PR: 53149 Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
* Left out the critical part of my "public domain" template, a notice sayingjmallett2003-06-106-0/+12
| | | | | | that this file is (these files are) in the public domain. PR: 53149
* Remove transition period hackache2003-06-101-32/+3
|
* _thread_printf() is only used for debugging or in cases where something'smtm2003-06-091-2/+2
| | | | | screwed beyond all help, so it can just skip the pthreads wrapper for write(2) and call directly into it.
* Sanity check fd before using it as an array index.netchild2003-06-091-1/+2
| | | | | Noticed by: ted@NLnetLabs.nl (Ted Lindgreen) Approved by: ru
* Remove stale reference to the deprecated USER_LDT option. The associatedjhb2003-06-091-4/+0
| | | | | | | code is always compiled into the kernel now. Submitted by: Hubert Tournier <hubert@frbsd.org> PR: docs/53068
* Commit rudimentary libufs manual pages, except for that forjmallett2003-06-097-0/+560
| | | | | | | | | | | getino(3)/putino(3), inode.c has been reworked in Perforce to the point where a manual page may not be accurate. Certainly putino(3) has not even been merged back yet. These will need a lot of improvement for most applications, but they document the API enough to get someone on their feet, most likely. The best documentation still exists in the form of libufs(3) consumers in the base system.
* Remove ufs_disk_ctor and ufs_disk_dtor, they never came to fruition. I dojmallett2003-06-092-43/+0
| | | | | not know of any software using them, and there is no "published API" for libufs, as it were.
* Reduce diffs with code in Perforce:jmallett2003-06-095-34/+34
| | | | Parenthesise return values.
* Correct a typo.ceri2003-06-081-1/+1
| | | | MFC After: 2 days
* After selecting a thread to handle a signal and takingdeischen2003-06-082-6/+16
| | | | | | | | its scheduling lock, make sure that the thread still has the signal unmasked. Make a debug statement conditional on debugging being enabled.
* Insert threads at the end of the free thread list so thatdeischen2003-06-082-2/+2
| | | | | | | the chance of getting the same thread id when allocating a new thread is reduced. This won't work if the application creates a new thread for every time a thread exits, but we're still within the allowances of POSIX.
* Provide a reference to __sys_write. The implementation uses this whendeischen2003-06-082-0/+6
| | | | | | | | debugging is enabled so the symbol needs to be resolved before rtld locking is enabled. I may not really know what I'm talking about, but it works. Submitted by: kan
* The .Fn functioncharnier2003-06-0813-35/+70
|
* The .Fn functioncharnier2003-06-082-34/+67
|
* The .Fn functioncharnier2003-06-081-2/+5
|
* Add section number with .Xr. .Xr -> .Vt changes.charnier2003-06-081-4/+4
|
* The .Fn functioncharnier2003-06-082-6/+12
|
* .Xr p1003_1b moved to .St -p1003.1b-93charnier2003-06-082-6/+6
|
* .Xr -> .Lb for librairy. There is no manual page corresponding to .Xr.charnier2003-06-081-1/+1
|
* Add or correct section number in .Xr. Use .Vt or .Fncharnier2003-06-088-13/+13
| | | | instead of .Xr when needed
* The .Fn functioncharnier2003-06-081-4/+6
|
* Don't force -L/usr/lib. This is incorrect because we should not beimp2003-06-082-2/+2
| | | | | | | looking at the host environment for anything. This breaks building -CURRENT on 4.x as well. Submitted by: kan@
* Sanity check the list obtained from the kern.disks sysctl so that Disk_Names()scottl2003-06-071-1/+4
| | | | | doesn't get fooled into returning a bogus list. This should fix sysinstall from segfaulting when no disk devices are present.
* Usekuriyama2003-06-068-8/+8
| | | | | | | | | cat ${.ALLSRC} > ${.TARGET} rather than ln -sf ${.ALLSRC} ${.TARGET} not to depends on absolute-path of symbolic links. Commented by: marcel, obrien, bde
* Recognize the magic NODEV value.phk2003-06-051-3/+3
| | | | Format other unknown devices consistently in hex.
* Rename local variables to not mask global names of same name. Thismarkm2003-06-053-28/+29
| | | | fixes lots of lint(1) warnings.
* Make this compile without warnings on 64-bit architectures:marcel2003-06-041-6/+7
| | | | | Don't cast thread_self() to int. Cast to uintptr_t. Pull in the predefined printf format from <inttypes.h>
* Make this compile without warnings on 64-bit architectures:marcel2003-06-041-1/+1
| | | | | In recurse(), cast the pointer difference to int to match the format. The difference is expected to fit in an int.
* Drop stale MAINTAINER bit.markm2003-06-041-2/+0
|
* Only init _thread_sigact once, needn't init it again after a fork().davidxu2003-06-042-62/+62
| | | | Obtained from: deischen
* Despite whether threaded mode is turned on, always save thread'sdavidxu2003-06-042-8/+12
| | | | signal mask.
* Removed garbage:bde2003-06-041-3/+1
| | | | | | | - -elf in CFLAGS had no effect except to reduce portability. - -elf in LDFLAGS had even less effect, since LDFLAGS is not used. - -Wall in CFLAGS had no effect except to reduce portability and break overriding of WARNS, since the setting of WARNS implies -Wall.
* Make C applications statically compiled with libthr work. Previously,mtm2003-06-041-0/+6
| | | | | | an application compiled -static with libthr would dump core in malloc(3) because the stub thread initialization routine in libc would be used instead of the libthr supplied one.
* If the library is not able to create a thread because resourcesmtm2003-06-041-0/+4
| | | | | | don't allow it at the moment, the correct thing to do is try again. Otherwise, libthr would fail this test because it doesn't allow an unlimited number of concurrent threads per application.
* Document the new explicit listing API for extended attributes; noterwatson2003-06-041-6/+32
| | | | | | | | | that the old API (passing "" as the attribute name to the _get_ interface) is now deprecated (and was probably a bad idea). Pointed out by: Dominic Giampaolo <dbg@apple.com> Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* KMF_DONE is now in /sys/sys/kse.h, no longer need to define it here.davidxu2003-06-044-14/+0
|
* Document that kldload(2) can also return EEXIST.hmp2003-06-031-0/+4
| | | | Approved by: des (mentor)
* Teach recent changes in the umtx structure in the kernel to the libthrmtm2003-06-031-1/+1
| | | | | | initialiazer. Found by: tinderbox
* Free memory of internal low level lock when mutex and condition variabledavidxu2003-06-034-0/+18
| | | | | | are destroyed. Submitted by: tegge
* Cosmetic; record offsets used within jmpbufpeter2003-06-023-30/+30
|
* Update for amd64 after repocopy from i386/peter2003-06-021-2/+1
|
* Port libc_r to amd64, and turn it back on for amd64. It passes all ofpeter2003-06-022-1/+20
| | | | the same src/lib/libc_r/test/* tests that the other platforms pass.
* Fix sigsetjmp(). It helps if we do not try to save the old signal maskpeter2003-06-021-0/+1
| | | | to a random memory location. Perl works a lot better with this.
* Tidy the code up a fraction. Re-release with a 2-clause BSD licensemarkm2003-06-021-19/+33
| | | | | | with the kind permission of the author/copyright holder. Thanks to: phk
* Add a new hash type. This "NT-hash" is compatible with the passwordmarkm2003-06-025-11/+123
| | | | | | | hashing scheme used in Microsoft's NT machines. IT IS NOT SECURE! DON'T USE IT! This is for the use of competent sysadmins only! Submitted by: Michael Bretterklieber
* Unwind the _giant_mutex from pthread_detach(). When detaching a joiner threadmtm2003-06-021-8/+8
| | | | | it's important the correct lock order is observed: lock first the joined and then the joiner.
* Consolidate static_init() and static_init_private into one function.mtm2003-06-021-17/+11
| | | | The behaviour of this function is controlled by the argument: private.
OpenPOWER on IntegriCloud