summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix brk(3). The stack was unbalanced when we jumped to cerror. Oops!peter2004-10-271-0/+1
| | | | | | This causes nasty things like SEGV or a cpu spin when we return. Submitted by: "James R. Van Artsalen" <james@jrv.org>
* Add necessary whitespace to correct cross references.ceri2004-10-271-2/+2
| | | | | PR: docs/73193 Submitted by: Jilles Tjoelker <jilles at stack.nl>
* Allow tar format to read and accept an empty (or non-existent)kientzle2004-10-271-3/+9
| | | | | | | | | | file. In particular, this allows bsdtar to append (-r) to an empty file. Thanks to: Ryan Sommers While I'm here, straighten out a misleading comment about GNU-compatible sparse file handling.
* Reword the last change a bit, add mdoc(7) markup.yar2004-10-252-2/+6
| | | | Discussed with: bde
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* For variables that are only checked with defined(), don't provideru2004-10-2427-32/+32
| | | | any fake value.
* -O2 compile isn't quite ready for WARNS=2 yet.ru2004-10-241-1/+1
|
* Check unhandled signals before thread marks itself as DEAD,davidxu2004-10-232-2/+28
| | | | | this reduces chances of signal losting problem found by Peter Holm <peter@holm.cc>
* 1. Move thread list flags into new separate member, and atomicallydavidxu2004-10-2310-48/+90
| | | | | | | | | | | put DEAD thread on GC list, this closes a race between pthread_join and thr_cleanup. 2. Introduce a mutex to protect tcb initialization, tls allocation and deallocation code in rtld seems no lock protection or it is broken, under stress testing, memory is corrupted. Reviewed by: deischen patch partly provided by: deischen
* Modify libugidfw(3) to use MBI_* permission flags from mac_bsdextended.hrwatson2004-10-211-13/+12
| | | | | | | instead of using the V* permission flags from vnode.h. Remove include of vnode.h. Requested by: phk
* Decrease reference count if we won't use the thread, this avoids memorydavidxu2004-10-212-0/+8
| | | | leak under some cases.
* libsmb is now WARNS 2 clean on 64-bit platforms.obrien2004-10-191-0/+1
|
* style.Makefile(5)obrien2004-10-191-5/+4
|
* uniq(1) is not an install tool, and using it was causingru2004-10-181-2/+2
| | | | | | "uniq: not found" during the installworld. Spotted by: Roman Neuhauser
* Sync with sys/i386/include/endian.h: use the single instruction 'bswap'.obrien2004-10-182-0/+8
|
* Replaced afterinstall: with FILES.ru2004-10-182-12/+4
|
* Since sendfile(2) works on regular files only,yar2004-10-181-1/+1
| | | | | | | which have no negative offsets, "negative" and "invalid" are equivalent WRT the offset argument. Suggested by: bde
* Revert 1.18: It broke Athlon64 builds, whichkientzle2004-10-181-1/+2
| | | | | | | | | probably means it also requires a .so version bump. Defer it until I finish some related work on cleaning up error returns throughout the library. Thanks to: Conrad J. Sabatier
* Use STDERR_FILENO instead of 2, as POSIX intended.kientzle2004-10-181-1/+1
| | | | Thanks to: Alfred Perlstein
* Remove setrunelocale()ache2004-10-181-23/+0
|
* Correctly report write errors from the lowest-levelkientzle2004-10-173-6/+21
| | | | output routines back to the compression layer.
* Refine the error-checking and reporting in thekientzle2004-10-171-6/+11
| | | | | "compress" format decompression code. In particular, distinguish between EOF and fatal data errors.
* Correct the return type of archive_write_datakientzle2004-10-171-1/+1
| | | | | | to match the documentation. MFC after: 30 days
* Don't rely on stdio here.kientzle2004-10-171-11/+20
|
* Document EMSGSIZE return from recvmsg due to insufficient free filesalfred2004-10-171-1/+10
| | | | when transfering rights (file descriptors.)
* Remove the obsolete <rune.h> interface.tjr2004-10-1711-846/+11
|
* Remove support for the obsolete UTF2 encoding.tjr2004-10-179-317/+3
|
* Bump the libc major version number to 6.tjr2004-10-171-1/+1
|
* Document that the length modifier l is ignored for floating pointstefanf2004-10-161-1/+3
| | | | conversion specifiers (a, A, e, E, f, F, g and G).
* Explain it is a negative offset that EINVAL may indicate.yar2004-10-162-4/+4
| | | | | | | Now readers won't get an impression that pointing to beyond the current end of file will result in EINVAL. MFC after: 1 week
* Improve mdoc(7) markup.yar2004-10-161-3/+9
|
* Give details on what will happen if the `offset' argumentyar2004-10-161-2/+6
| | | | | | | | | to sendfile(2) falls beyond the end of file. Touch .Dd. PR: bin/72649 (in the audit trail) MFC after: 1 week
* Enable building with LIBC_SCCS defined.obrien2004-10-1610-13/+10
| | | | Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it>
* Try to bring some sanity to the SCM ID's.obrien2004-10-1644-71/+67
| | | | | | + spell LIBC_SCCS consistently + enable builds with LIBC_SCCS defined to not syntax error + minor SCM reformatting to try to have some consistency
* Remove extra closing parenthesis added in revision 1.4.stefanf2004-10-141-1/+1
| | | | Noticed by: Andrea Campi
* 1. Now that it's a thread's state is changed from within the kernel, wheremtm2004-10-132-4/+10
| | | | | | | | | | | | | | no userland locks are heald, the dead thread lock can no longer protect access to it. Therefore, instead of using an if (!dead)...else clause after walking the active threads list test the thread pointer before deciding not to walk the dead threads list. If the thread pointer is null it means it was not found in the active threads list and the dead threads list should be checked. 2. Do not free the stack of a thread that is not marked dead. This is the 2nd and final part of eliminating the race to free a thread's stack. MFC after: 3 days
* Correctly document the return value of strerror() and strerror_r() andkeramida2004-10-121-11/+10
| | | | | | | | the contents of the returned buffer for unknown error codes. PR: docs/72578 Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 3 days
* Build as a shared lib again.obrien2004-10-111-4/+0
| | | | Discussed with: kientzle
* Belatedly catch up with the dev_t/cdev changes from a few months back.peter2004-10-111-1/+11
| | | | | | | Extract the struct cdev pointer and the tty device from inside rather than incorrectly casting the 'struct cdev *' pointer to a 'dev_t' int. Not that this was particularly important since it was only used for reading vmcore files.
* More updates for math(3):das2004-10-111-30/+40
| | | | | | | | | | - Make some minor rearrangements in the introduction. - Mention the problem with argument reduction on i386. - Add recently-implemented functions to the table. - Un-document the error bounds that only apply to the old 4BSD math library, and fill in the correct values where I know them. No attempt has been made to document bounds lower than 1 ulp, although smaller bounds are usually achievable in round-to-nearest mode.
* Add and document ilogbl(), a long double version of ilogb().stefanf2004-10-114-4/+65
|
* Use the FP_ILOG macros from <math.h> rather than hardcoded return values.stefanf2004-10-092-6/+13
| | | | | | Also be prepared for FP_ILOGBNAN != INT_MAX. Reviewed by: md5
* o Backout rev. 1.16, see 1.3 commit log for more info.maxim2004-10-091-6/+4
| | | | | | | | | | | Requested by: bde o Remove unneeded sys/types.h and netinet/in.h from the synopsis and the example. o We do have struct in_addr in arpa/inet.h, so no need for netinet/in.h. o Mention where AF_* constants defined are. Educated by: bde
* Delete a .Fn that had no argument andkeramida2004-10-091-1/+1
| | | | | | properly terminate a .Bl with a matching .El MFC after: 3 days
* if system scope thread didn't set timeout, don't call clock_gettime syscalldavidxu2004-10-082-16/+18
| | | | | | before and after sleeping. Reviewed by: deischen
* When send()ing to syslogd return ENOBUFS keep trying until success.glebius2004-10-081-8/+18
| | | | | | | | | | This fixes a case, when DoSed syslogd completely loses messages. PR: bin/72366 Discussed with: dwmalone, millert@OpenBSD.org Approved by: julian (mentor) Obtained from: OpenBSD (rev. 1.17, 1.21 by millert) MFC after: 3 months
* Make less wrong for desciptions of signal handlingjulian2004-10-081-41/+53
| | | | MFC in: 1 week
* Remove a reference to a non-existent syscall: _thr_exit(). Themtm2004-10-081-4/+1
| | | | actual name is thr_exit(). How this ever worked is beyond me.
* Use PTHREAD_SCOPE_SYSTEM to decide what should be done.davidxu2004-10-072-6/+4
|
* Follow kernel change, restore signal mask correctly by using a commanddavidxu2004-10-072-42/+34
| | | | of kse_thr_interrupt.
OpenPOWER on IntegriCloud