summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* _thread_printf() is only used for debugging or in cases where something'sMike Makonnen2003-06-091-2/+2
| | | | | | | | screwed beyond all help, so it can just skip the pthreads wrapper for write(2) and call directly into it. Notes: svn path=/head/; revision=116103
* Sanity check fd before using it as an array index.Alexander Leidinger2003-06-091-1/+2
| | | | | | | | Noticed by: ted@NLnetLabs.nl (Ted Lindgreen) Approved by: ru Notes: svn path=/head/; revision=116092
* Remove stale reference to the deprecated USER_LDT option. The associatedJohn Baldwin2003-06-091-4/+0
| | | | | | | | | | code is always compiled into the kernel now. Submitted by: Hubert Tournier <hubert@frbsd.org> PR: docs/53068 Notes: svn path=/head/; revision=116091
* Commit rudimentary libufs manual pages, except for that forJuli Mallett2003-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. Notes: svn path=/head/; revision=116087
* Remove ufs_disk_ctor and ufs_disk_dtor, they never came to fruition. I doJuli Mallett2003-06-092-43/+0
| | | | | | | | not know of any software using them, and there is no "published API" for libufs, as it were. Notes: svn path=/head/; revision=116086
* Reduce diffs with code in Perforce:Juli Mallett2003-06-095-34/+34
| | | | | | | Parenthesise return values. Notes: svn path=/head/; revision=116084
* Correct a typo.Ceri Davies2003-06-081-1/+1
| | | | | | | MFC After: 2 days Notes: svn path=/head/; revision=116064
* After selecting a thread to handle a signal and takingDaniel Eischen2003-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. Notes: svn path=/head/; revision=116061
* Insert threads at the end of the free thread list so thatDaniel Eischen2003-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. Notes: svn path=/head/; revision=116060
* Provide a reference to __sys_write. The implementation uses this whenDaniel Eischen2003-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 Notes: svn path=/head/; revision=116059
* The .Fn functionPhilippe Charnier2003-06-0813-35/+70
| | | | Notes: svn path=/head/; revision=116030
* The .Fn functionPhilippe Charnier2003-06-082-34/+67
| | | | Notes: svn path=/head/; revision=116028
* The .Fn functionPhilippe Charnier2003-06-081-2/+5
| | | | Notes: svn path=/head/; revision=116027
* Add section number with .Xr. .Xr -> .Vt changes.Philippe Charnier2003-06-081-4/+4
| | | | Notes: svn path=/head/; revision=116026
* The .Fn functionPhilippe Charnier2003-06-082-6/+12
| | | | Notes: svn path=/head/; revision=116025
* .Xr p1003_1b moved to .St -p1003.1b-93Philippe Charnier2003-06-082-6/+6
| | | | Notes: svn path=/head/; revision=116023
* .Xr -> .Lb for librairy. There is no manual page corresponding to .Xr.Philippe Charnier2003-06-081-1/+1
| | | | Notes: svn path=/head/; revision=116022
* Add or correct section number in .Xr. Use .Vt or .FnPhilippe Charnier2003-06-088-13/+13
| | | | | | | instead of .Xr when needed Notes: svn path=/head/; revision=116021
* The .Fn functionPhilippe Charnier2003-06-081-4/+6
| | | | Notes: svn path=/head/; revision=116020
* Don't force -L/usr/lib. This is incorrect because we should not beWarner Losh2003-06-082-2/+2
| | | | | | | | | | looking at the host environment for anything. This breaks building -CURRENT on 4.x as well. Submitted by: kan@ Notes: svn path=/head/; revision=116004
* Sanity check the list obtained from the kern.disks sysctl so that Disk_Names()Scott Long2003-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. Notes: svn path=/head/; revision=115981
* UseJun Kuriyama2003-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 Notes: svn path=/head/; revision=115898
* Recognize the magic NODEV value.Poul-Henning Kamp2003-06-051-3/+3
| | | | | | | Format other unknown devices consistently in hex. Notes: svn path=/head/; revision=115881
* Rename local variables to not mask global names of same name. ThisMark Murray2003-06-053-28/+29
| | | | | | | fixes lots of lint(1) warnings. Notes: svn path=/head/; revision=115872
* Make this compile without warnings on 64-bit architectures:Marcel Moolenaar2003-06-041-6/+7
| | | | | | | | Don't cast thread_self() to int. Cast to uintptr_t. Pull in the predefined printf format from <inttypes.h> Notes: svn path=/head/; revision=115855
* Make this compile without warnings on 64-bit architectures:Marcel Moolenaar2003-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. Notes: svn path=/head/; revision=115854
* Drop stale MAINTAINER bit.Mark Murray2003-06-041-2/+0
| | | | Notes: svn path=/head/; revision=115839
* Only init _thread_sigact once, needn't init it again after a fork().David Xu2003-06-042-62/+62
| | | | | | | Obtained from: deischen Notes: svn path=/head/; revision=115828
* Despite whether threaded mode is turned on, always save thread'sDavid Xu2003-06-042-8/+12
| | | | | | | signal mask. Notes: svn path=/head/; revision=115827
* Removed garbage:Bruce Evans2003-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. Notes: svn path=/head/; revision=115826
* Make C applications statically compiled with libthr work. Previously,Mike Makonnen2003-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. Notes: svn path=/head/; revision=115820
* If the library is not able to create a thread because resourcesMike Makonnen2003-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. Notes: svn path=/head/; revision=115819
* Document the new explicit listing API for extended attributes; noteRobert Watson2003-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 Notes: svn path=/head/; revision=115802
* KMF_DONE is now in /sys/sys/kse.h, no longer need to define it here.David Xu2003-06-044-14/+0
| | | | Notes: svn path=/head/; revision=115798
* Document that kldload(2) can also return EEXIST.Hiten Pandya2003-06-031-0/+4
| | | | | | | Approved by: des (mentor) Notes: svn path=/head/; revision=115771
* Teach recent changes in the umtx structure in the kernel to the libthrMike Makonnen2003-06-031-1/+1
| | | | | | | | | initialiazer. Found by: tinderbox Notes: svn path=/head/; revision=115768
* Free memory of internal low level lock when mutex and condition variableDavid Xu2003-06-034-0/+18
| | | | | | | | | are destroyed. Submitted by: tegge Notes: svn path=/head/; revision=115761
* Cosmetic; record offsets used within jmpbufPeter Wemm2003-06-023-30/+30
| | | | Notes: svn path=/head/; revision=115745
* Update for amd64 after repocopy from i386/Peter Wemm2003-06-021-2/+1
| | | | Notes: svn path=/head/; revision=115742
* Port libc_r to amd64, and turn it back on for amd64. It passes all ofPeter Wemm2003-06-022-1/+20
| | | | | | | the same src/lib/libc_r/test/* tests that the other platforms pass. Notes: svn path=/head/; revision=115740
* Fix sigsetjmp(). It helps if we do not try to save the old signal maskPeter Wemm2003-06-021-0/+1
| | | | | | | to a random memory location. Perl works a lot better with this. Notes: svn path=/head/; revision=115738
* Tidy the code up a fraction. Re-release with a 2-clause BSD licenseMark Murray2003-06-021-19/+33
| | | | | | | | | with the kind permission of the author/copyright holder. Thanks to: phk Notes: svn path=/head/; revision=115733
* Add a new hash type. This "NT-hash" is compatible with the passwordMark Murray2003-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 Notes: svn path=/head/; revision=115720
* Unwind the _giant_mutex from pthread_detach(). When detaching a joiner threadMike Makonnen2003-06-021-8/+8
| | | | | | | | it's important the correct lock order is observed: lock first the joined and then the joiner. Notes: svn path=/head/; revision=115693
* Consolidate static_init() and static_init_private into one function.Mike Makonnen2003-06-021-17/+11
| | | | | | | The behaviour of this function is controlled by the argument: private. Notes: svn path=/head/; revision=115692
* .S comments must be C comments, not ASM ones.David E. O'Brien2003-06-021-1/+1
| | | | Notes: svn path=/head/; revision=115666
* Use C99 compatible ASM statements.David E. O'Brien2003-06-022-3/+3
| | | | Notes: svn path=/head/; revision=115665
* Revert accidental change: don't change the thread library for testing toRobert Watson2003-06-021-1/+1
| | | | | | | | | libthr. Oops, sorry about that. Submitted by: "Simon L. Nielsen" <simon@nitro.dk> Notes: svn path=/head/; revision=115658
* o Fix a cut-n-paste bug. We were clobbering rp with gp...Marcel Moolenaar2003-06-021-2/+2
| | | | | | | | | o Make sure the arguments to ctx_wrapper() are loaded from the backing store by forcing an underflow. Do this by making all registers in the register frame local. Notes: svn path=/head/; revision=115657
* A new API function PacketAliasRedirectDynamic() can be usedRuslan Ermilov2003-06-013-1/+36
| | | | | | | | to mark a fully specified static link as dynamic; i.e. make it a one-time link. Notes: svn path=/head/; revision=115650