Peter Wemm
47ae38b543
Rewrite fabs.S to use pure SSE2 operations. I got the clues how to do
...
this from looking at code generated by gcc.
2004-02-08 21:21:45 +00:00
David Schultz
10b1416d2f
Update the documentation for setpgrp(2) to reflect the access control
...
checks that the code actually performs. Judging from the 4.2BSD
release notes, the docs have only been out of date for 20 years.
PR: 29844
2004-02-08 12:38:30 +00:00
Mike Silbersack
a4e8244762
Document the SF_NODISKIO flag, and fix a small typo.
2004-02-08 07:38:35 +00:00
Ruslan Ermilov
50a51e39a9
Unbreak world.
2004-02-07 11:13:47 +00:00
Diomidis Spinellis
a54c3906ad
getnetbyname fixes:
...
Do not choke on malformed network addresses.
Return n_name in static space, not on the function's stack.
MFC after: 1 week
2004-02-07 07:30:02 +00:00
Daniel Eischen
4b4d63bdfe
Add cancellation point to sem_wait() and sem_timedwait() for pshared
...
semaphores. Also add cancellation cleanup handlers to keep semaphores
in a consistent state.
Submitted in part by: davidxu
Reviewed by: davidxu
2004-02-06 15:20:56 +00:00
Daniel Eischen
e3b4bf9411
Prevent memory leak on sem_destroy() by destroying the semaphore's
...
internal mutex and CV.
2004-02-06 15:15:44 +00:00
Daniel Eischen
e7f1524858
Only allow the semaphore to be taken when the value is positive.
...
Don't decrement it twice when it is taken.
Reported by: kris
2004-02-06 13:54:38 +00:00
Daniel Eischen
08a6a888da
Correct check for invalid semaphore on sem_destroy() (s/==/!=/).
...
Reported by: kris
2004-02-05 23:32:45 +00:00
Ruslan Ermilov
47d7e8a96f
Fixed style of DPADD and LDADD assignments as per style.Makefile(5).
2004-02-05 22:44:25 +00:00
Daniel Eischen
3962ef4305
Correct the weak reference for sem_unlink.
2004-02-05 22:36:27 +00:00
David Xu
cb10cbc878
libkse was renamed to libpthread.
2004-02-05 02:55:20 +00:00
Daniel Eischen
903f2e5041
Allow libc's version of sem_trywait() to work for non-pshared mutexes.
2004-02-04 15:37:48 +00:00
Ruslan Ermilov
751378136d
Put libraries in the link order.
...
Reported by: lorder(1) (modified to work with libraries)
2004-02-04 10:23:09 +00:00
Ruslan Ermilov
002886c887
Nothing in libypclnt depends on librpcsvc.
...
Reported by: lorder(1) (modified to work with libraries)
2004-02-04 09:53:29 +00:00
Ruslan Ermilov
1e73d261f5
This module doesn't use libgssapi (and it looks never did).
2004-02-04 09:41:47 +00:00
David Xu
c3af3c8154
Add missing file.
2004-02-04 06:32:45 +00:00
David Xu
826d5028dd
Import initial work of libpthread debugging. This is a debugger independent
...
friend library for libpthread, the library will be used by debugger to
read/write libpthread's internal data structures.
2004-02-04 05:01:15 +00:00
Daniel Eischen
518ae0c8fd
Remove the band-aid (#include <time.h>).
2004-02-03 22:30:01 +00:00
Daniel Eischen
fc9579997c
Add <time.h> -- bandaid to unbreak world in <semaphore.h>.
2004-02-03 15:55:30 +00:00
Daniel Eischen
6bf50f98b1
Provide a userland version of non-pshared semaphores and add cancellation
...
points to sem_wait() and sem_timedwait(). Also make sem_post signal-safe.
2004-02-03 05:50:07 +00:00
Daniel Eischen
5c70dac879
Modify the implementation of libc semaphores so that they can be
...
overridden by the threads library to provide a userland version
of non-pshared semaphores and cancellation points. Also add
a sem_timedwait().
The libc version of semaphores always uses kernel semaphores
regardless of whether pshared is set or not. When threads are
not present, it is difficult to get sem_wait() or sem_timedwait()
to do the right thing (since pthread_cond_timedwait() and
pthread_cond_wait() are stubs in libc and just return immediately).
2004-02-03 05:47:19 +00:00
Mike Makonnen
4e3c587d23
Bump up the maximum number concurrent threads on x86.
2004-02-01 15:33:01 +00:00
David Schultz
01623eaad2
Merge vfscanf.c,v 1.35.
2004-01-31 23:18:53 +00:00
David Schultz
ff81345642
Fix the handling of negative hexadecimal numbers in integer formats.
...
Note that this bug is unrelated to recent work in this area; it seems
to have been present since revision 1.1.
Obtained from: NetBSD
2004-01-31 23:16:09 +00:00
Andrey A. Chernov
41ddc53bca
LC_ALL not always take priority over other LC_*
...
Obtained from: NetBSD
PR: 62047
2004-01-31 19:15:32 +00:00
Daniel Eischen
baadb27d98
Correct the link for the profiling library.
2004-01-31 17:00:04 +00:00
Marcel Moolenaar
a99e07ba17
Now that libpthread is the default threading library, remove the
...
compatibility link from libc_r to libpthread (previously a link
from libc_r to libkse).
2004-01-31 05:05:45 +00:00
Marcel Moolenaar
b60c2339a9
In Write_Disk(), fix the non-error case where we returned to the
...
caller without closing the disk device and freeing allocated
memory. Not closing the disk device prevents GEOM from retasting
after spoiling.
Pointy hat: marcel
2004-01-30 20:52:54 +00:00
Daniel Eischen
bd224d495e
Change libkse back to libpthread and make it the default
...
thread library for i386, amd64, and ia64. For alpha
and sparc64 the library is not changed and remains libkse,
and links are installed so that libpthread -> libc_r.
The gcc -pthread option will be changed in a separate
commit so that it links to -lpthread instead of -lc_r.
Approved by: re@
2004-01-30 12:13:17 +00:00
Mike Makonnen
1baa64733c
I update the rwlock code in libthr to be more standards compliant and
...
what do I get for my troubles? libc breaks offcourse!
Reimplement a hack (in libthr) that allows libc to use
rwlocks without initializing them first. The hack was reimplemented
so that only a private libc version of the rwlock locking functions
initializes an uninitialized rwlock. The application version will
correctly fail.
2004-01-29 12:03:17 +00:00
Mike Makonnen
98a11db62d
When suspending a thread if the timeout was very short or
...
the system call got interrupted and the absolute timeout is
converted to a relative timeout, it may happen that we get a
negative number. In such a case, simply set the timeout to
zero so that if the event that the thread wants to wait for has
happened it can still return successfully, but if it hasn't
happened then the thread doesn't suspend indefinitely. This should
fix certain applications (including mozilla) that seem to hang
indefinitely sometimes.
Noticed and debugged by: Morten Johansen <root@morten-johansen.net>
2004-01-29 09:44:36 +00:00
Andrey A. Chernov
e6e9fb749a
Add reference to environ(7)
2004-01-29 09:27:24 +00:00
Marcel Moolenaar
94635227fd
Fix an uninitialized variable bug that caused write_pmbr() to bogusly
...
return an error value that made Write_Disk() abort. While on the
subject, improve the initialization of the error variable in read_gpt()
and update_gpt() even though nothing was broken there.
2004-01-28 03:38:25 +00:00
Maksim Yevmenkin
18d948adb1
Add NO_BLUETOOTH knob to the build process
...
Requested by: phk
Reviewed by: imp (mentor), ru
2004-01-28 00:42:51 +00:00
Ruslan Ermilov
254ae03ba3
Increment WARNS.
2004-01-28 00:11:42 +00:00
Maksim Yevmenkin
8f63fe015f
The report size is not a local item, so don't clear it when clearing local items.
...
PR: misc/58971
Reviewed by: imp (mentor), mdodd
Obtained from: NetBSD
2004-01-28 00:05:22 +00:00
Ruslan Ermilov
d15ff41778
- Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(),
...
and NgAllocRecvData(), that dynamically allocate buffer for a binary
message, an ascii message, and a data packet, respectively. The size
of the allocated buffer is equal to the socket's receive buffer size
to guarantee that a message or a data packet is not truncated.
- Get rid of the static size buffer in NgSendAsciiMsg().
OK'ed by: archie, julian
2004-01-27 20:25:14 +00:00
Ruslan Ermilov
bbc5b4d9c5
mdoc(7) cleanup.
2004-01-27 19:24:53 +00:00
Ruslan Ermilov
430b8c1b05
Fixed memory leak in NgSendAsciiMsg().
2004-01-27 18:38:22 +00:00
Yoshihiro Takahashi
109479ce29
Fixed pc98 partition type.
2004-01-27 15:25:33 +00:00
Dag-Erling Smørgrav
3a59e89e73
Implement pam_sm_close_session().
...
PR: bin/61657
Submitted by: Joe R. Doupnik <jrd@cc.usu.edu>
2004-01-26 19:28:37 +00:00
Eivind Eklund
93a876df31
Xref kqueue and poll
2004-01-26 15:20:16 +00:00
Eivind Eklund
1633f3b5a2
Xref kqueue
2004-01-26 15:19:54 +00:00
Maksim Yevmenkin
6c7f392438
Cleanup CFLAGS in libsdp(3) Makefile
...
Connect sdpd(8) to the build
Reviewed by: ru, imp (mentor)
2004-01-25 21:33:59 +00:00
Dag-Erling Smørgrav
09e0653941
I don't normally use my middle name, so remove it from attributions in
...
man pages (though not from copyright notices). While I'm here, add email
addresses where appropriate.
2004-01-25 11:39:42 +00:00
Andrey A. Chernov
81ccc5779c
Describe EOVERFLOW case
2004-01-25 06:24:08 +00:00
Hartmut Brandt
0543f20b95
Rename the MIBS makefile variable to BMIBS so that it does not conflict
...
with the environment variable MIBS that is used by net-snmp.
2004-01-24 20:12:30 +00:00
Martin Blapp
09c37f5de6
When writing/reading longs use explicit 32bit temporary values.
...
MFNetBSD rev. 1.15 + rev 1.16
PR: bin/60901
Submitted by: Logan Gabriel <gersh@sonn.com>
Obtained from: NetBSD
2004-01-24 01:23:30 +00:00
David Schultz
7b7e350998
Merge vfprintf.c, v1.61 and 1.62. For compatibility with __hdtoa()
...
and to reduce diffs between vfprintf.c and vfwprintf.c, declare xdigs*
to be char arrays rather than wchar_t arrays.
In collaboration with: tjr
2004-01-23 22:48:16 +00:00