summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* - RIPEMD160 supportume2003-10-121-0/+3
| | | | | | - pass size arg to ah->result (avoid assuming result buffer size) Obtained from: KAME
* Changed EINVAL constant reference from UIO_MAXIOV to IOV_MAX.dds2003-10-111-1/+1
| | | | | The former is a kernel-only visible constant, the latter the POSIX-specified userland constant defined by including limits.h.
* Assorted mdoc(7) fixes:hmp2003-10-093-20/+41
| | | | | | | | | | - fix hard sentence breaks - sprinkle a few .Vt's where neccessary - remove incorrect use of `\-' - proper quoting using .Dq, instead of manual ``...'' Approved by: des@ (mentor) Reviewed by: ru@
* Reverse the order of the first two arguments to _sparc64_enter_uts().deischen2003-10-092-4/+4
| | | | | The first argument is the UTS function, the second argument is the first argument to the UTS function. Who's on first.
* Convert a couple of hardcoded values to constants. Make thr_getcontext()deischen2003-10-094-6/+14
| | | | | return 0 when called the first time, and return 1 when resumed by thr_setcontext().
* Remove unneccessary include of sys/types.h in the SYNOPSIShmp2003-10-096-6/+0
| | | | | | | | | header. Sys/param.h includes sys/types.h internally unless LOCORE is defined. Approved by: des (mentor)
* Add preliminary sparc64 support to libpthread. This does notdeischen2003-10-0912-0/+1018
| | | | | | | | yet work, but hopefully someone familiar with the sparc64 port can pick up the reins. Submitted by: jake With mods by: deischen
* Fix some comments for last commit.davidxu2003-10-082-10/+8
|
* Complete cancellation support for M:N threads, check cancelling flag whendavidxu2003-10-084-138/+314
| | | | | | | thread state is changed from RUNNING to WAIT state and do some cancellation operations for every cancellable state. Reviewed by: deischen
* Use thread lock instead of scheduler lock to eliminate lock contentiondavidxu2003-10-082-36/+42
| | | | | | for all wrapped syscalls under SMP. Reviewed by: deischen
* Add XXX'ed temporary bounce-buffering.phk2003-10-071-6/+37
|
* Correct .Xr's in kiconv.3.bms2003-10-051-3/+3
| | | | Submitted by: osa
* Fix a logic error; use beq to check for a register being NULL, not bne.deischen2003-10-021-1/+1
|
* Correct the library name.ru2003-10-021-1/+1
|
* - Remove error code that can't be returned (and original descriptionkensmith2003-10-021-2/+0
| | | | | | | | was not proper English) PR: docs/57434 Approved: blackend (mentor) Reviewed by: deischen
* Only generate code for _LCK_ASSERT if _LCK_DEBUG is defined.davidxu2003-10-022-2/+12
|
* Cite the published version of "Engineering a Sort Function" instead oftjr2003-09-301-4/+7
| | | | an email address. Spell McIlroy correctly.
* If __sys_write() returns 0, allow that to exit the loop in libc_r'sdeischen2003-09-291-2/+2
| | | | | | wrapped version of write(). Submitted by: dan@langille.org
* When concurrency level is reduced and a kse is exiting, make sure no otherdavidxu2003-09-292-0/+26
| | | | | | threads are still referencing the kse by migrating them to initial kse. Reviewed by: deischen
* Remove unused variable.davidxu2003-09-282-4/+0
|
* Relink libc_r.a, libc_r.so and libc_r_p.so from libthr to libkse.marcel2003-09-273-12/+24
| | | | | | | | | | | On ia64, where there's no libc_r at all, libkse is now the default thread library by virtue of these links. The reasons for this change are: 1. libkse is slated to become the default thread library anyway, 2. active development and maintenance is only present for libkse, 3. GNOME and KDE, both in the process of being supported on ia64, work better with KSE; even on ia64.
* More style fixes to improve diffability with OpenBSD.phk2003-09-271-46/+54
| | | | Pull 'A' evilness for realloc(3) from OpenBSD.
* Disable #define DEBUG in libdisk by default: since libdisk is primarilyrwatson2003-09-271-1/+1
| | | | | | | there to support sysinstall, and enabling DEBUG creates spurious console output that can't be read anyway... This slightly cleans up the visual impression of the system install by not spamming the console during the labeling of the disks.
* Style changes to improve diffability against OpenBSD version.phk2003-09-271-91/+91
|
* Document KERN_PROC_PROC, update KERN_PROC_ALL description.tjr2003-09-271-2/+4
|
* Use the 3-component version of the KERN_PROC_PROC sysctl.tjr2003-09-271-2/+4
|
* - Support for multibyte charsets in LIBICONV.fjoe2003-09-267-1/+816
| | | | | | | | - CD9660_ICONV, NTFS_ICONV and MSDOSFS_ICONV kernel options (with corresponding modules). - kiconv(3) for loadable charset conversion tables support. Submitted by: Ryuichiro Imura <imura@ryu16.org>
* Add __volatile keyword.davidxu2003-09-261-2/+4
|
* s/ia64/alpha/gmarcel2003-09-261-5/+4
|
* Fix fabs(). This commit brought to you by the letter 'l'.peter2003-09-261-1/+1
| | | | | | | | | (fstp stores a mem32 value, fstpl stores a mem64 value) This fixes ghostscript for 'make release' on amd64. Ghostscript for some reason thinks it is a good idea to use -fno-builtin, which means it is vulnerable to bugs in libc that are normally hidden by the builtin gcc functions. Oops.
* pthread API should return error code in return value not in errno.davidxu2003-09-252-4/+4
| | | | Reviewed by: deischen
* If syscall failed, restore old sigaction and return error to thread.davidxu2003-09-252-22/+38
|
* As comments in _mutex_lock_backout state, only current threaddavidxu2003-09-242-12/+8
| | | | | | | | | | | | | | can clear the pointer to mutex, not the thread doing mutex handoff. Because _mutex_lock_backout does not hold scheduler lock while testing THR_FLAGS_IN_SYNCQ and then reading mutex pointer, it is possible mutex owner begin to unlock and handoff the mutex to the current thread, and mutex pointer will be cleared to NULL before current thread reading it, so current thread will end up with deferencing a NULL pointer, Fix the race by making mutex waiters to clear their mutex pointers. While I am here, also save inherited priority in mutex for PTHREAD_PRIO_INERIT mutex in mutex_trylock_common just like what we did in mutex_lock_common.
* Grrr...add the Skinny alias code forgotten in the last commit.marcus2003-09-231-0/+338
|
* Add Cisco Skinny Station protocol support to libalias, natd, and ppp.marcus2003-09-236-1/+30
| | | | | | | | | | | | | | | Skinny is the protocol used by Cisco IP phones to talk to Cisco Call Managers. With this code, one can use a Cisco IP phone behind a FreeBSD NAT gateway. Currently, having the Call Manager behind the NAT gateway is not supported. More information on enabling Skinny support in libalias, natd, and ppp can be found in those applications' manpages. PR: 55843 Reviewed by: ru Approved by: ru MFC after: 30 days
* Free thread name memory if there is.davidxu2003-09-232-0/+8
|
* Save and restore timeout field for signal frame just like what we diddavidxu2003-09-224-2/+8
| | | | | | for interrupted field. Also in _thr_sig_handler, retrieve current signal mask from kernel not from ucp, the later is pre-unioned mask, not current signal mask.
* Fix FPU state restoring bug by jumping to right position.davidxu2003-09-222-4/+4
|
* Print waitset correctly.davidxu2003-09-222-2/+2
|
* Make KSE_STACKSIZE machine dependent by moving it from thr_kern.c tomarcel2003-09-199-6/+14
| | | | | | pthread_md.h. This commit only moves the definition; it does not change it for any of the platforms. This more easily allows 64-bit architectures (in particular) to pick a slightly larger stack size.
* _ia64_break_setcontext() now takes a mcontext_t. While here, definemarcel2003-09-192-20/+6
| | | | | | | | | | | | THR_SETCONTEXT as PANIC(). The THR_SETCONTEXT macro is currently not used, which means that the definition we had could be wrong, overly pessimistic or unknowingly right. I don't like the odds... The new _ia64_break_setcontext() and corresponding kernel fixes make KSE mostly usable. There's still a case where we don't properly restore a context and end up with a NaT consumption fault (typically an indication for not handling NaT collection points correctly), but at least now mutex_d works...
* Stop using the setcontext() syscall to restore an async context.marcel2003-09-192-10/+10
| | | | | Instead use the break instruction with an immediate specially created for us.
* Ignore ECHILD from waitpid(2) (our child may have been reaped by thedes2003-09-191-1/+2
| | | | | | calling process's SIGCHLD handler) PR: bin/45669
* pthread api should return error code in return value, not in errno.davidxu2003-09-182-4/+2
|
* Fix a typo. Also turn on PTHREAD_SCOPE_SYSTEM after fork().davidxu2003-09-162-2/+4
|
* Remove a comment that questioned why the size of the FPUdeischen2003-09-162-20/+2
| | | | | | | | | | | state for amd64 was twice as large as necessary. Peter recently fixed this, so the comment no longer applies. Also, since the size of struct mcontext changed, adjust the threads library version of get&set context to match. FYI, any change layout/size change to any arch's struct mcontext will likely need some minor changes in libpthread.
* From OpenBSD:fenner2003-09-151-1/+1
| | | | | | | | | | | | always widen the imputed netmask if it is narrower than the specified octets. fixes a strange behaviour where inet_net_pton would always return 4 (bits) for multicast addresses no matter how many octets were specified. negotiated with Paul Vixie, original author of this function. PR: standards/53151 Submitted by: Max Laier <max@love2party.net> Optained from: OpenBSD
* Our getaddrinfo() and getnameinfo() are thread-safe butume2003-09-152-2/+10
| | | | | | some limitation. Reported by: Marc G. Fournier <scrappy@hub.org>
* Fix bogus comment and assign sigmask in critical region, usedavidxu2003-09-152-4/+8
| | | | SIG_CANTMASK to remove unmaskable signal masks.
* Fix a bogus comment, sigmask must be maintained correctly,davidxu2003-09-152-2/+2
| | | | it will be inherited in pthread_create.
OpenPOWER on IntegriCloud