summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Ooops. ssize_t != int. <sigh>kientzle2004-11-064-4/+4
| | | | Thanks to: Oliver Lehmann and Peter Wemm
* i386_set_ldt() is not available when running 32 bit binaries on amd64peter2004-11-064-0/+26
| | | | | kernels. Use the recently exposed direct-set routines instead. This is only activated for when we compile i386 support libraries on amd64.
* Cosmetic tweaks to reduce diffs to the i386 counterpart.peter2004-11-062-4/+6
|
* Use the recently exposed fs/gs set functions when compiling libthr topeter2004-11-061-0/+12
| | | | | | | run as a 32 bit support library for an amd64 kernel. 32 bit consumers of libthr have zero chance of running on an amd64 kernel since we don't implement the i386_set_ldt() family of functions. Note that this commit doesn't make it actually work, it just removes one more obstacle.
* When building the custom i386 libraries for use on amd64 kernels, wepeter2004-11-066-0/+170
| | | | | | | | | can't use the i386_set_ldt() family of routines, because they are not implemented. Instead, use the recently exposed direct access sysarch routines for setting what %fs and %gs point to. Use this for the i386 TLS _set_tp() routine, but only when compiling to run as a 32 bit support binary for amd64 kernels.
* Don't define SOFTFLOAT directly in source files, it's now done in the Makefile.cognet2004-11-052-2/+1
|
* Fix signalcontext and makecontext.cognet2004-11-053-14/+17
|
* Remove getcontext.S, it is not needed.cognet2004-11-052-64/+1
|
* Import a Makefile for arm.cognet2004-11-051-0/+8
|
* Partial support of KSE for arm.cognet2004-11-058-118/+132
|
* Makefile tweaks:kientzle2004-11-051-2/+3
| | | | | | * Update Version * Add a missing MLINK * Fix 'distfile' target so it works from a clean checkout
* Remove the unused archive_string_sprintf() utility function.kientzle2004-11-052-18/+0
|
* Revert 1.24: Brain glitch. <sigh>kientzle2004-11-051-1/+1
|
* Clean up the error handling in thekientzle2004-11-059-133/+213
| | | | | | write path. In particular, this should solve some problems people have seen with bsdtar not exiting on various write errors.
* archive.h gets built in ${.OBJDIR}kientzle2004-11-051-1/+1
|
* Update a comment.kientzle2004-11-051-0/+1
|
* Protect against local flooder of /var/run/log. Do not loop forever inglebius2004-11-041-13/+41
| | | | | | | | | | | | | syslog(3) if we are a priveleged program (sshd, su, etc.). - Make syslogd open an additional socket /var/run/logpriv, with 0600 permissions. - In libc, try to use this socket. - Do not loop forever if we are using this socket (partial backout of 1.31) Reviewed by: dwmalone, Andrea Campi <andrea webcom it> Approved by: julian (mentor) MFC after: 1 month
* Add glibc-style strftime(3) padding specifiers, namely, -(no padding),delphij2004-11-042-21/+79
| | | | | | | | | | | | _(use space as padding), and 0(zero padding). These GNU extensions are widely used ones that is worthy for us to have. Discussed with: stefanf, roam, -current Approved by: murray Prodded by: ports/72722, ports/72723 MFC After: 1 month
* Fixed "make clean".ru2004-11-041-0/+1
|
* Save cancelflags in signal frame, this fixes a problem thatdavidxu2004-11-014-0/+6
| | | | | | | a thread in pthread_cond_wait handled a signal can no longer be canceled. Reviewed by: deischen
* Make pthread_mutex_trylock(3) return EBUSY on failure, as all softwaregreen2004-10-312-16/+2
| | | | | | | | | packages expect and seems to be most correct according to the slightly- ambiguous standards. MFC after: 1 month Corroborated by: POSIX <http://tinyurl.com/4uvub> Reviewed by: silence on threads@
* Don't barf when we encounter an UUID for GPT partitions. Instead, addmarcel2004-10-312-2/+3
| | | | | | | | | the GPT partition on i386 and adm64 as type=gpt, subtype=0 and with the sname set to the UUID. This prevents sysinstall from bombing out. This also makes sure the GPT partition shows up in sysinstall so as to avoid accidental "clobberage". PR: bin/72896
* 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
|
OpenPOWER on IntegriCloud