summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* .S comments must be C comments, not ASM ones.obrien2003-06-021-1/+1
|
* Use C99 compatible ASM statements.obrien2003-06-022-3/+3
|
* Revert accidental change: don't change the thread library for testing torwatson2003-06-021-1/+1
| | | | | | libthr. Oops, sorry about that. Submitted by: "Simon L. Nielsen" <simon@nitro.dk>
* o Fix a cut-n-paste bug. We were clobbering rp with gp...marcel2003-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.
* A new API function PacketAliasRedirectDynamic() can be usedru2003-06-013-1/+36
| | | | | to mark a fully specified static link as dynamic; i.e. make it a one-time link.
* Include string.h for memset().rwatson2003-06-012-1/+2
|
* Make the PacketAliasSetAddress() function call optional. If itru2003-06-012-11/+18
| | | | | | is not called, and no static rules match an outgoing packet, the latter retains its source IP address. This is in support of the "static NAT only" mode.
* Match style of source and headers.jmallett2003-06-011-1/+1
| | | | Submitted by: bde
* Assorted mdoc(7) fixes.ru2003-06-015-74/+91
|
* Assorted mdoc(7) fixes.ru2003-06-016-180/+190
|
* Add GBK encodingache2003-06-013-2/+121
| | | | | PR: 51504 Submitted by: Statue <statue@freebsd.sinica.edu.tw>
* Add the part of the last commit which cvs appearantly didn't likephk2003-06-012-17/+4
| | | | the first time.
* Add openpam_readline(3).des2003-06-011-0/+2
|
* Retire pam_wheel(8) (which has been disconnected for quite a while) anddes2003-06-016-657/+0
| | | | pam_ftp(8).
* Clarify the code a bit.phk2003-06-011-1/+2
| | | | Submitted by: Nadav Eiron <nadav@TheEirons.org>
* Make prototype match code with regard to constness of args to thejmallett2003-06-011-1/+1
| | | | function pointer passed in.
* Build libthr by default on ia64.marcel2003-06-011-0/+6
|
* Don't build pam_std_option().des2003-05-311-2/+1
|
* Fix grammar bogons.schweikh2003-05-311-1/+1
| | | | MFC after: 3 days
* Rough implement of makecontext() needed to support libthr.marcel2003-05-312-1/+122
| | | | | | | | | | | | | | o Up to 8 arguments are allowed. This is the number of arguments passed in registers. Subsequent registers are passed on the stack. Trying to deal with this is not easy in C and likely forces us to use assembly code. Let's avoid that for now. There's no indication that more than 8 arguments is a strong requirement (Linux also has an 8 argument limit). o We expect that the stack base is 16-byte aligned and the stack size is a multiple of 16-byte. We bomb out if this is not the case. We probably want to be less strict by enforcing it ourselves. For now it's better to not hide gross alignment bogons by silently correcting it.
* Hook libthr to the build. It's currently built only for i386 andmtm2003-05-311-2/+5
| | | | a NOLIBTHR knob will prevent it from being built.
* Update copyright dates.des2003-05-315-5/+5
|
* Remove pam_std_option() and related functions. Add #defines for commondes2003-05-311-24/+6
| | | | options.
* Remove all instances of pam_std_option()des2003-05-315-167/+58
|
* Introduce pam_guest(8) which will replace pam_ftp(8).des2003-05-314-1/+220
|
* I botched one of my committs in the last round. Fix it.mtm2003-05-312-12/+11
|
* Fixed another bug in the threaded close() call; clear theru2003-05-311-0/+4
| | | | | | | | | stale stdio descriptors flags. PR: bin/51535 Submitted by: Enache Adrian <enache@rdslink.ro> Reviewed by: deischen Approved by: re (scottl)
* If an application closes one of its stdio descriptors (0..2),ru2003-05-311-2/+4
| | | | | | | | | | | | | | | | | an excessive close() on one of these descriptors would cause a memory for this descriptor to be allocated in the internal descriptor table. When this descriptor gets used again, e.g. through the call to open() or socket(), the descriptor would be erroneously left in the blocking mode, and the whole application would get stuck on a blocking operation, e.g., in accept(2). Prevent this bug from happening by disallowing close() against non-active descriptors (return -1 and set errno to EBADF in this case). Reviewed by: deischen Approved by: re (scottl)
* Save THR_FLAGS_IN_TDLIST in signal frame, otherwise if a thread receiveddavidxu2003-05-302-2/+4
| | | | | | | a signal will can not be removed from thread list after it exited. Reviewed by: deischen Approved by: re (jhb)
* Fix a sizeof error in __bt_put: when writing they key and data sizestmm2003-05-301-3/+5
| | | | | | | | | | to a buffer in the big key/data case, memmove() was used on pointers to size_ts, but only sizeof(u_int32_t) bytes where copied. This broke on big_endian architectures where sizeof(size_t) > sizeof(u_int32_t). This bug broke portupgrade (by way of ruby_bdb1) on sparc64. Approved by: re (rwatson)
* Add an stub for _rtld_thread_init. This is a part I missed inkan2003-05-301-0/+7
| | | | | | my last commit. Approved by: re (scottl)
* Attempt to eliminate PLT relocations from rwlock aquire/releasekan2003-05-3025-42/+822
| | | | | | | | | | | path, making them suitable for direct use by the dynamic loader. Register libpthread-specific locking API with rtld on startup. This still has some rough edges with signals which should be addresses later. Approved by: re (scottl)
* Call the __sys_sigprocmask(the system call) when sigprocmask()deischen2003-05-302-2/+8
| | | | | | | | | is called and the application is not threaded. This works around a problem when an application that hasn't yet become threaded tries to jump out of a signal handler. Reported by: mbr Approved by: re@ (rwatson)
* Don't return -1 and abort if msg.msg_controllen is 0. Formbr2003-05-291-2/+1
| | | | | | | | some strange reason recvmsg() never sets errno to EAGAIN on a non-blocking socket and just returns 0. Reviewed by: jhb Approved by: re
* Make the mutex static initializers look more like the one formtm2003-05-291-25/+19
| | | | | | | | | condition variables. Cosmetic. Explicitly compare against PTHREAD_MUTEX_INITIALIZER. We shouldn't encourage calls to the mutex functions with null pointers to mutexes. Approved by: re/jhb
* Use a static lock to ake sure pthread_cond_* functions calledmtm2003-05-291-2/+20
| | | | | | | | | | | | from multiple threads don't initialze the same condition variable more than once. Explicitly compare cond pointers with PTHREAD_COND_INITIALIZER instead of NULL. Just because it happens to be defined as NULL is no reason to encourage the idea that people can call those functions with NULL pointers to a condition variable. Approved by: re/jhb
* Missing unlock.mtm2003-05-291-0/+2
| | | | Approved by: re/jhb
OpenPOWER on IntegriCloud