aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* When determining whether filename is too long for aTim Kientzle2004-11-281-6/+6
| | | | | | | | | | | | regular 'ustar' entry, use narrow-character version, not wide-character version, as the ustar entry always uses the narrow-character filename. Thanks to: Michal Listos Inspired by, but doesn't fix: bin/74385 Notes: svn path=/head/; revision=138165
* Correct the spelling of "archive_write_pax_header"Tim Kientzle2004-11-281-1/+1
| | | | | | | | | | in an error message. Thanks to: Michal Listos Inspired by, but doesn't fix: bin/74385 Notes: svn path=/head/; revision=138163
* When required to negate the absoulte result of a division/remainderPeter Edwards2004-11-271-1/+1
| | | | | | | | | | | | | | | | | operation (by subtracting the absolute result from 0), don't test for overflow. This avoids an arithmetic exception when dividing LONG_MIN by 1: This is the only case that causes overflow, and the resulting value is correct under 2's compliment arithmetic. PR: 72024 Approved by: dwmalone@ Obtained from: NetBSD MFC after: 4 days Notes: svn path=/head/; revision=138139
* Don't include sys/user.h merely for its side-effect of recursivelyDavid Schultz2004-11-277-5/+10
| | | | | | | including other headers. Notes: svn path=/head/; revision=138129
* Fix computation of the 'n' argument to mbrtowc (through XMBRTOWC) to avoidTim J. Robbins2004-11-211-4/+4
| | | | | | | | | | | | | reading past 'stop' in various places when converting multibyte characters. Reading too far caused truncation to not be detected when it should have been, eventually causing regexec() to loop infinitely in with certain combinations of patterns and strings in multibyte locales. PR: 74020 MFC after: 4 weeks Notes: svn path=/head/; revision=137959
* In preparation to remove U areas, don't refer to p_uarea in libkvm.David Schultz2004-11-201-1/+1
| | | | | | | Reviewed by: arch@ Notes: svn path=/head/; revision=137907
* Install the header for libmagic.David E. O'Brien2004-11-191-0/+1
| | | | | | | | PR: 73647 Submitted by: Uranus <uranus@it.muds.net> Notes: svn path=/head/; revision=137887
* Remove ntp_gettime.c which was a wrapper around sysctlbyname(3).Mark Santcroos2004-11-182-54/+1
| | | | | | | | | | This is now a native system call. Reviewed by: imp, phk, njl, peter Approved by: njl Notes: svn path=/head/; revision=137878
* -Add a note that currently two syntax styles for label element declarationChristian S.J. Peron2004-11-181-3/+16
| | | | | | | | | | | | is supported. -Document the new more preferred syntax -Add examples for the new syntax -Add a note that the old syntax will be deprecated in the future. Reviewed by: rwatson Notes: svn path=/head/; revision=137865
* Remove 80386 support from libc.John Baldwin2004-11-162-12/+0
| | | | Notes: svn path=/head/; revision=137788
* Document more fields of struct stat.Yaroslav Tykhiy2004-11-151-0/+32
| | | | | | | | Note to mdoc(7) police: The document date has already been touched today. Notes: svn path=/head/; revision=137737
* Use .Vt "struct stat" consistently.Yaroslav Tykhiy2004-11-151-1/+1
| | | | Notes: svn path=/head/; revision=137736
* Nitpicking on grammar.Yaroslav Tykhiy2004-11-151-1/+1
| | | | Notes: svn path=/head/; revision=137735
* Improve mdoc(7) markup of the page: add several missing macros,Yaroslav Tykhiy2004-11-151-10/+10
| | | | | | | use .Va instead of .Li for struct stat fields. Notes: svn path=/head/; revision=137734
* Document the S_IS*(mode) macros used to test for file types.Yaroslav Tykhiy2004-11-151-1/+27
| | | | | | | Bump the document date accordingly. Notes: svn path=/head/; revision=137733
* Since I'm not using the public API for writingTim Kientzle2004-11-151-6/+8
| | | | | | | | | | the the pax attributes, I shouldn't try using the public API for finishing out the attribute entry, either. This also removes some old dubious state manipulations. Notes: svn path=/head/; revision=137711
* Pax extended headers were always failingTim Kientzle2004-11-151-1/+1
| | | | | | | | | | | | because the code was using the external API (archive_write_data) and assuming internal error-return conventions. Use the internal API for writing data. Thanks to: Joe Marcus Clarke Notes: svn path=/head/; revision=137710
* Remove stub libxpg4. All functionality was merged into libc a long time ago.Tim J. Robbins2004-11-133-19/+1
| | | | Notes: svn path=/head/; revision=137682
* Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.Bjoern A. Zeeb2004-11-138-8/+21
| | | | | | | | | | | | | | If turned on no NIS support and related programs will be built. Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il> PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=137675
* Remove un-needed call to close(2). The fd that close is beingChristian S.J. Peron2004-11-131-1/+0
| | | | | | | | | called on is invalid and has no use. Reviewed by: smkelly Notes: svn path=/head/; revision=137662
* Document the fact that kvm_getenvv(3) requires procfs to be mountedChristian S.J. Peron2004-11-131-0/+7
| | | | | | | | | on /proc in order to operate correctly. Reviewed by: simon@, wes@ Notes: svn path=/head/; revision=137661
* Help Tinderbox and remove libautofsMark Murray2004-11-101-1/+1
| | | | Notes: svn path=/head/; revision=137554
* sranddev() is not magic pixie dust. While it gives a good randomWarner Losh2004-11-101-2/+4
| | | | | | | | | | | seed, the random number generator rand(3) still sucks and is unlikely sufficient for crypto use. Correct what appears to be a cut and paste error from the srandomdev() man page. Submitted by: Ben Mesander Notes: svn path=/head/; revision=137535
* Add 0xbf (191) as new Solaris partition identifier.Poul-Henning Kamp2004-11-101-0/+1
| | | | | | | Submitted by: Lawrence.Lee@sun.com Notes: svn path=/head/; revision=137512
* Use the RET macro.Olivier Houchard2004-11-0917-52/+52
| | | | | | | | For setjmp() and longjmp(), put the signal mask where it's supposed to be, instead of in the space reserved for fp regs. Notes: svn path=/head/; revision=137464
* Add a week alias __siglongjmp => siglongjmp.Olivier Houchard2004-11-091-0/+1
| | | | Notes: svn path=/head/; revision=137461
* MFKernel: Implement ffs with clz on Xscale.Olivier Houchard2004-11-071-0/+6
| | | | Notes: svn path=/head/; revision=137343
* Ooops. ssize_t != int. <sigh>Tim Kientzle2004-11-064-4/+4
| | | | | | | Thanks to: Oliver Lehmann and Peter Wemm Notes: svn path=/head/; revision=137296
* i386_set_ldt() is not available when running 32 bit binaries on amd64Peter Wemm2004-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. Notes: svn path=/head/; revision=137295
* Cosmetic tweaks to reduce diffs to the i386 counterpart.Peter Wemm2004-11-062-4/+6
| | | | Notes: svn path=/head/; revision=137294
* Use the recently exposed fs/gs set functions when compiling libthr toPeter Wemm2004-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. Notes: svn path=/head/; revision=137292
* When building the custom i386 libraries for use on amd64 kernels, wePeter Wemm2004-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. Notes: svn path=/head/; revision=137290
* Don't define SOFTFLOAT directly in source files, it's now done in the Makefile.Olivier Houchard2004-11-052-2/+1
| | | | Notes: svn path=/head/; revision=137287
* Fix signalcontext and makecontext.Olivier Houchard2004-11-053-14/+17
| | | | Notes: svn path=/head/; revision=137286
* Remove getcontext.S, it is not needed.Olivier Houchard2004-11-052-64/+1
| | | | Notes: svn path=/head/; revision=137285
* Import a Makefile for arm.Olivier Houchard2004-11-051-0/+8
| | | | Notes: svn path=/head/; revision=137284
* Partial support of KSE for arm.Olivier Houchard2004-11-058-118/+132
| | | | Notes: svn path=/head/; revision=137283
* Makefile tweaks:Tim Kientzle2004-11-051-2/+3
| | | | | | | | | * Update Version * Add a missing MLINK * Fix 'distfile' target so it works from a clean checkout Notes: svn path=/head/; revision=137240
* Remove the unused archive_string_sprintf() utility function.Tim Kientzle2004-11-052-18/+0
| | | | Notes: svn path=/head/; revision=137238
* Revert 1.24: Brain glitch. <sigh>Tim Kientzle2004-11-051-1/+1
| | | | Notes: svn path=/head/; revision=137237
* Clean up the error handling in theTim Kientzle2004-11-059-133/+213
| | | | | | | | | write path. In particular, this should solve some problems people have seen with bsdtar not exiting on various write errors. Notes: svn path=/head/; revision=137236
* archive.h gets built in ${.OBJDIR}Tim Kientzle2004-11-051-1/+1
| | | | Notes: svn path=/head/; revision=137235
* Update a comment.Tim Kientzle2004-11-051-0/+1
| | | | Notes: svn path=/head/; revision=137234
* Protect against local flooder of /var/run/log. Do not loop forever inGleb Smirnoff2004-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 Notes: svn path=/head/; revision=137233
* Add glibc-style strftime(3) padding specifiers, namely, -(no padding),Xin LI2004-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 Notes: svn path=/head/; revision=137190
* Fixed "make clean".Ruslan Ermilov2004-11-041-0/+1
| | | | Notes: svn path=/head/; revision=137187
* Save cancelflags in signal frame, this fixes a problem thatDavid Xu2004-11-014-0/+6
| | | | | | | | | | a thread in pthread_cond_wait handled a signal can no longer be canceled. Reviewed by: deischen Notes: svn path=/head/; revision=137105
* Make pthread_mutex_trylock(3) return EBUSY on failure, as all softwareBrian Feldman2004-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@ Notes: svn path=/head/; revision=137095
* Don't barf when we encounter an UUID for GPT partitions. Instead, addMarcel Moolenaar2004-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 Notes: svn path=/head/; revision=137092
* Fix brk(3). The stack was unbalanced when we jumped to cerror. Oops!Peter Wemm2004-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> Notes: svn path=/head/; revision=136994