summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* * The mode for implicitly-created dirs is now 0777 modified by thekientzle2004-06-271-4/+6
| | | | | | | umask in effect when the archive is closed * Correct a typo that broke implicit dir creation for non-directories. Thanks to: Garret A Wollman for pointing out my umask oversight
* Unify mkdirpath (used to automatically create missing parent dirs) andkientzle2004-06-271-215/+126
| | | | | | | | | | | read_extract_dir (which creates directories in the archive). This brings a number of advantages: * FINALLY fix the problems creating dirs ending in "/." <sigh> * Missing parent dirs now get created securely, just like explicit dirs. (Created 0700 initially, then edited to 0755 at end of extraction.) * Eliminate some duplicate code and some weird special cases. While I'm cleaning, inline the regular-file creation code as well.
* Read gtar-style sparse archives.kientzle2004-06-277-61/+157
| | | | | | | This change also pointed out one API deficiency: the archive_read_data_into_XXX functions were originally defined to return the total bytes read. This is, of course, ambiguous when dealing with non-contiguous files. Change it to just return a status value.
* Revert the last change. There are more 64bit platforms than amd64, andkan2004-06-251-1/+1
| | | | they break due to diferent alignment restrictions.
* Remove the use of cast as lvalue.kan2004-06-251-1/+1
|
* Remove the use of cast as lvalue. GCC 3.4 isses a deprecation warningkan2004-06-251-1/+1
| | | | for this now.
* s/SS_CANTSENDMORE/SBS_CANTSENDMORE/rik2004-06-241-1/+1
|
* s/ARCH/ARCH_SUBDIR/g -- This reduces the chance of possible conflictsmarcel2004-06-241-3/+3
| | | | | | with the user's environment. Wondered why his cross-builds kept failing: marcel
* Fix a test of bit-flag "P_SA" by adding parenthesis around the expression.gad2004-06-231-1/+1
| | | | Submitted by: Cyrille Lefevre
* Replace a call to strncpy() with a call to strlcpy()gad2004-06-231-4/+2
| | | | Submitted by: Cyrille Lefevre
* Prefix the names of members of _RuneLocale and its sub-structurestjr2004-06-236-87/+90
| | | | | | with ``__'' to avoid polluting the namespace. This doesn't change the documented rune interface at all, but breaks applications that accessed _RuneLocale directly.
* Be specific about which socket properties are inherited from the originalbms2004-06-231-10/+13
| | | | | | socket upon accept(2). PR: docs/54995, kern/45733
* Spelling fixes.mpp2004-06-212-3/+3
|
* Spelling fixes.mpp2004-06-211-1/+1
|
* Spelling fixes.mpp2004-06-211-1/+1
|
* Spelling fixes.mpp2004-06-212-3/+3
|
* Spelling fixes.mpp2004-06-216-7/+7
|
* PR: docs/67884mpp2004-06-211-1/+1
| | | | Submitted by: Chirstopger Nehren <apeiron@comcast.net>
* Completely remove s_ilogb.S as the assembler implementation gives very littlestefanf2004-06-202-84/+1
| | | | | | speed improvement to none at all over the MI version. Submitted by: bde
* Uncomment some functions that we now support.das2004-06-201-3/+3
|
* Cross-reference round(3) and trunc(3) as appropriate.das2004-06-203-3/+8
|
* Connect scalbln(), trunc(), and the associated documentation to the build.das2004-06-201-4/+6
|
* Declare scalbln(), scalblnf(), trunc(), and truncf().das2004-06-201-0/+4
|
* Implement trunc() and truncf().das2004-06-203-0/+188
|
* Add trivial implementations of scalbln() and scalblnf().das2004-06-202-4/+59
| | | | | | | | | These routines are specified in C99 for the sake of architectures where an int isn't big enough to represent the full range of floating-point exponents. However, even the 128-bit long double format has an exponent smaller than 15 bits, so for all practical purposes, scalbln() and scalblnf() are aliases for scalbn() and scalbnf(), respectively.
* Fill in the some new fields 'struct kinfo_proc', namely ki_childstime,gad2004-06-191-5/+29
| | | | | | | | | | | | | ki_childutime, and ki_emul. Also uses the timeradd() macro to correct the calculation of ki_childtime. That will correct the value returned when ki_childtime.tv_usec > 1,000,000. This also implements a new KERN_PROC_GID option for kvm_getprocs(). It also implements the KERN_PROC_RGID and KERN_PROC_SESSION options which were added to sys/kern/kern_proc.c revision 1.203. PR: bin/65803 (a very tiny piece of the PR) Submitted by: Cyrille Lefevre
* Document ilogb()'s return values in terms of the FP_ILOGB* macros.stefanf2004-06-191-2/+5
|
* Return the same result as the MI version for 0.0, INFINITY and NaN.stefanf2004-06-191-1/+31
| | | | Reviewed by: standards@
* Our MI implementation of ilogb() returns -INT_MAX for the argument 0.0 ratherstefanf2004-06-191-2/+3
| | | | | | | than INT_MIN, so adjust FP_ILOGB0 to reflect this. Use <machine/_limits.h> for INT_MAX's value while there. Reviewed by: standards@
* Ignore file flag bits that we don't support. In particular, thiskientzle2004-06-191-0/+2
| | | | | | | corrects a segfault seen when archiving files from NTFS (which sets bits in st_flags that are not documented in <sys/stat.h>.) Thanks to: Doug Rabson
* Memory's free, but all the world ain't a VAX anymore. Bring math.3das2004-06-191-364/+206
| | | | | | | | | | | | kicking and screaming into the 1980's. This change converts most of the markup from man(7) to mdoc(7) format, and I believe it removes or updates everything that was flat out wrong. However, much work is still needed to sanitize the markup, improve coverage, and reduce overlap with other manpages. Some of the sections would better belong in a philosophy_of_w_kahan.3 manpage, but they are informative and remain at least as reminders of topics to cover. Reviewed by: doc@, trhodes@
* CLOCK_PROF and CLOCK_VIRTUAL are implemented now.kbyanc2004-06-171-7/+1
|
* Second half of the dev_t cleanup.phk2004-06-171-1/+1
| | | | | | | | | | | The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc.
* Add reference to mac_get_link() in man page, which was omitted whenrwatson2004-06-172-1/+10
| | | | mac_get_link() and mac_set_link() were added.
* Always restore permissions for regular files, even if thekientzle2004-06-171-1/+3
| | | | | | | | | file already exists on disk. Pointed out by: www/resin3 port (whose distfile contains the same file twice with different permissions and relies on the permissions associated with the second instance) Thanks again to: Kris Kennaway
* Rename variable name from `name' to `hostname'.ume2004-06-161-7/+7
| | | | | | | | | | This is a corresponding change to bin/67994. I'll soon commit bin/67994 into 4-STABLE. Actually, 5-CURRENT's getaddrinfo() doesn't have the problem mentiond in bin/67994. However, it is good to be in sync variable name with 4-STABLE and KAME. PR: bin/67994 Submitted by: JINMEI Tatuya <jinmei@ocean.jinmei.org>
* This library has to change whenever the kernel process structure changes.julian2004-06-161-1/+1
|
* Avoid to touch red zone, in libpthread, ucontext may be saved by kernel'sdavidxu2004-06-151-1/+1
| | | | | | | get_mcontext, and libpthread will use signalcontext to deliver signal in userland, it looks same as kernel's send_sig does. Reviewed by: deischen, tjr
* Be a little more careful about creating directories:kientzle2004-06-151-7/+23
| | | | | | | | * Restore directories with 0700 permissions initially, then use the fixup pass to correct the permissions * Trim trailing "/" and "/." in mkdirpath() Suggested by: Garrett Wollman
* The maximum value of iovcnt is IOV_MAX, not 16.kbyanc2004-06-151-1/+2
|
* Use %zu to print values with type size_t.stefanf2004-06-141-3/+3
|
* Document the location of the header file which declares the functionbms2004-06-141-1/+2
| | | | | | prototypes documented in this manual page. PR: bin/4459
* Date bump.bms2004-06-141-1/+1
| | | | Requested by: krion
* Document some return values.bms2004-06-141-1/+20
| | | | | PR: bin/22198 Submitted by: Nick Johnson (with cleanups)
* Merge changes from the tzcode2004a import. Wherever possible I tried to bringstefanf2004-06-145-151/+374
| | | | | | us closer to the vendor branch. Requested by: wollman
* Use .Dv instead of .Li for all the RLIMIT_* constants.das2004-06-141-11/+11
| | | | Requested by: ru
* Document RLIMIT_AS. While here, correct an insertion sort error.das2004-06-131-5/+8
|
* Remove a stale reference to %Ef and %EF from a comment.stefanf2004-06-131-2/+2
|
* Check pending signals, if there is signal will be unblocked bydavidxu2004-06-128-44/+50
| | | | | | | | | | | | | | | | | | sigsuspend, thread shouldn't wait, in old code, it may be ignored. When a signal handler is invoked in sigsuspend, thread gets two different signal masks, one is in thread structure, sigprocmask() can retrieve it, another is in ucontext which is a third parameter of signal handler, the former is the result of sigsuspend mask ORed with sigaction's sa_mask and current signal, the later is the mask in thread structure before sigsuspend is called. After signal handler is called, the mask in ucontext should be copied into thread structure, and becomes CURRENT signal mask, then sigsuspend returns to user code. Reviewed by: deischen Tested by: Sean McNeil <sean@mcneil.com>
* The references to scalbn and scalbnf should be scalb and scalbf.das2004-06-121-2/+5
| | | | | | (The former are actually useful, and ieee_test(3) only documents functions that aren't.) Add a sentence describing the domain of scalb() and scalbf().
OpenPOWER on IntegriCloud