summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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().
* Change defualt time zone from GMT to UTC. This will not be MFC-ed, andkensmith2004-06-111-1/+6
| | | | was done before 5-STABLE on purpose...
* Shift the FPSR contents by the correct amount so feupdateenv() raisesdas2004-06-111-1/+1
| | | | the correct exceptions from the old environment.
* Insert a missing '~' in feholdexcept(), so that it correctly clearsdas2004-06-111-1/+1
| | | | the exception flags in the mxcsr as well as the x87 FPU.
* Fix a bug where rintf() rounded the wrong way in round-to-nearest modedas2004-06-091-26/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on all inputs of the form x.75, where x is an even integer and log2(x) = 21. A similar problem occurred when rounding upward. The bug involves the following snippet copied from rint(): i>>=1; if((i0&i)!=0) i0 = (i0&(~i))|((0x100000)>>j0); The constant 0x100000 should be 0x200000. Apparently this case was never tested. It turns out that the bit manipulation is completely superfluous anyway, so remove it. (It tries to simulate 90% of the rounding process that the FPU does anyway.) Also, the special case of +-0 is handled twice (in different ways), so remove the second instance. Throw in some related simplifications from bde: - Work around a bug where gcc fails to clip to float precision by declaring two float variables as volatile. Previously, we tricked gcc into generating correct code by declaring some float constants as doubles. - Remove additional superfluous bit manipulation. - Minor reorganization. - Include <sys/types.h> explicitly. Note that some of the equivalent lines in rint() also appear to be unnecessary, but I'll defer to the numerical analysts who wrote it, since I can't test all 2^64 cases. Discussed with: bde
* Include <sys/cdefs.h> earlier to get the various visibility constants.das2004-06-091-2/+1
| | | | Previously, we were relying on <sys/_types.h> to include it implicitly.
* Avoid assignments to cast expressions.stefanf2004-06-081-3/+3
| | | | | Reviewed by: md5 Approved by: das (mentor)
* Signal handlers are supposed to take an int parameter.stefanf2004-06-081-2/+2
| | | | Approved by: das (mentor)
* Remove a couple of casts added for an ancient Sun compiler.stefanf2004-06-081-11/+2
| | | | Approved by: das (mentor)
* The third operand of the conditional operator should have type void too.stefanf2004-06-082-2/+2
| | | | Approved by: das (mentor)
* In fts_build(), if we try to chdir and fail (e.g. due to lack of searchdas2004-06-082-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | permission), try to continue in FTS_DONTCHDIR mode. Of course this won't work for long paths, but we can't descend more than one pathname component beyond the directory anyway if we lack search permission. Here is a transcript demonstrating the change, where oldls is ls(1) linked with the old fts(3): das@VARK:~> mkdir t && touch t/{a,b,c} && chmod u-x t das@VARK:~> oldls t a b c das@VARK:~> oldls -l t das@VARK:~> \ls t a b c das@VARK:~> \ls -l t ls: a: Permission denied ls: b: Permission denied ls: c: Permission denied I had forgotten about this patch until bde reminded me. He reports using it without problems for over a year. PR: 45723
* Rename cantwrite() to prepwrite(). The latter is less confusing,das2004-06-081-4/+1
| | | | | | since the macro isn't really a predicate, and it has side-effects. Also, don't set errno if prepwrite() fails, since this is done in prepwrite() now.
* Rename cantwrite() to prepwrite(). The latter is less confusing,das2004-06-084-5/+6
| | | | since the macro isn't really a predicate, and it has side-effects.
* Set errno to EBADF on attempts to write to a stream that is notdas2004-06-081-2/+5
| | | | | | | | | writable. Affected callers include fwrite(), put?(), and *printf(). The issue of whether this is the right errno for funopened streams is unresolved, but that's an obscure case, and some errno is better than no errno. Discussed with: bde, jkh
* Correct some spelling errors.kientzle2004-06-081-6/+6
|
* Use ".In" to mark up C include file names.yar2004-06-071-2/+4
|
* Each sentence should begin on a new line.yar2004-06-071-10/+16
|
* Extend and improve the mdoc(7) markup of this page.yar2004-06-071-32/+60
| | | | Reviewed by: ru
* Avoid clobbering the red zone when running on the new context's stack intjr2004-06-072-0/+10
| | | | _amd64_restore_context().
OpenPOWER on IntegriCloud