summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* And I managed to make a regression here too.phk2003-03-151-5/+5
| | | | I have too many source trees :-(
* Run a revision of the devstat interface:phk2003-03-153-123/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kernel: Change statistics to use the *uptime() timescale (ie: relative to boottime) rather than the UTC aligned timescale. This makes the device statistics code oblivious to clock steps. Change timestamps to bintime format, they are cheaper. Remove the "busy_count", and replace it with two counter fields: "start_count" and "end_count", which are updated in the down and up paths respectively. This removes the locking constraint on devstat. Add a timestamp argument to devstat_start_transaction(), this will normally be a timestamp set by the *_bio() function in bp->bio_t0. Use this field to calculate duration of I/O operations. Add two timestamp arguments to devstat_end_transaction(), one is the current time, a NULL pointer means "take timestamp yourself", the other is the timestamp of when this transaction started (see above). Change calculation of busy_time to operate on "the salami principle": Only when we are idle, which we can determine by the start+end counts being identical, do we update the "busy_from" field in the down path. In the up path we accumulate the timeslice in busy_time and update busy_from. Change the byte_* and num_* fields into two arrays: bytes[] and operations[]. Userland: Change the misleading "busy_time" name to be called "snap_time" and make the time long double since that is what most users need anyway, fill it using clock_gettime(CLOCK_MONOTONIC) to put it on the same timescale as the kernel fields. Change devstat_compute_etime() to operate on struct bintime. Remove the version 2 legacy interface: the change to bintime makes compatibility far too expensive. Fix a bug in systat's "vm" page where boot relative busy times would be bogus. Bump __FreeBSD_version to 500107 Review & Collaboration by: ken
* The gdtoa import apparently hasn't caused anything or anyone todas2003-03-151-2429/+0
| | | | | explode, so nix the old strtod() / dtoa(). This change is part of the gdtoa patches reviewed on standards@.
* Backout last commit.davidxu2003-03-152-2/+2
| | | | Requested by: jhb
* MFp4: Pentium/Athlon-optimised implementation of wcslen().tjr2003-03-142-1/+69
|
* Merge vfprintf.c revision 1.52.tjr2003-03-141-2/+2
|
* Kludge around a bug that results from printf() assuming thatdas2003-03-141-1/+1
| | | | | | | | | dtoa() is buggy. The bug would cause incorrect output to be generated when format strings such as '%5.0f' were used with nonzero numbers whose magnitude is less than 1. Reported by: df(1) by way of periodic(8) Reviewed by: mike
* Unexpand RCS tag.tjr2003-03-141-1/+1
|
* In src/lib/libz/gzio.c the function gzprintf does not check if thejmz2003-03-141-7/+6
| | | | | | | | | | amount of bytes (supposed to be) written by vsnprintf exceeds the size of the buffer. PR: bin/48844 Submitted by: Peter A Jonsson <pj@ludd.luth.se> Obtained from: OpenBSD MFC after: 1 month
* Fix a bug in rwlock. When a rwlock was locked by reader threads, adavidxu2003-03-142-2/+2
| | | | writter thread can block reader threads to get read lock.
* Catch up to p_tracep -> p_tracevp rename to unbreak world.jhb2003-03-131-1/+1
| | | | Pointy hat to: jhb
* Clean up the way gdtoa sources are found.obrien2003-03-132-8/+7
| | | | OK'ed by: das
* Document return type of wordfree() (void). Reduce the space betweentjr2003-03-131-3/+4
| | | | | struct member names and the corresponding comments so the lines don't wrap on 80-column terminals.
* MFp4: Implementations of the wcstof() and wcstold() functions.tjr2003-03-134-10/+195
|
* MFp4: Catch up to recent __dtoa() interface changes and removal of cvt()'stjr2003-03-131-11/+10
| | | | last argument.
* Document strtof() and strtold(). Update vendor license.das2003-03-121-32/+75
| | | | Reviewed by: bde (briefly), mike (mentor), obrien
* Replace our ancient dtoa/strtod implementation with the gdtoadas2003-03-1220-10/+286
| | | | | | | | | | | | | | | | | | package, a more recent, generalized set of routines. Among the changes: - Declare strtof() and strtold() in stdlib.h. - Add glue to libc to support these routines for all kinds of ``long double''. - Update printf() to reflect the fact that dtoa works slightly differently now. As soon as I see that nothing has blown up, I will kill src/lib/libc/stdlib/strtod.c. Soon printf() will be able to use the new routines to output long doubles without loss of precision, but numerous bugs in the existing code must be addressed first. Reviewed by: bde (briefly), mike (mentor), obrien
* Ditch a static global and the mutex that protected it. Achieve themtm2003-03-121-27/+18
| | | | | | | | desired strptime(3) reentrancy by adding an extra argument to _strptime() instead. Approved by: markm (mentor) MFC: 4 weeks
* Document the fact that hdestory calls free on the keys added withdwmalone2003-03-121-5/+25
| | | | | | | hsearch(.., ENTER). Make the example reflect this. PR: 49951 Submitted by: Peter Jeremy <peterjeremy@optushome.com.au>
* Update sendfile.2 to include a TUNING section that documents theseanc2003-03-121-0/+38
| | | | | | | various tunables that are applicable to sendfile(2). Update tuning.7 to mention a reference to sendfile.2. Approved by: keramida
* MFp4: Reduce code size by 26 bytes by only aligning the jump targets thattjr2003-03-121-10/+1
| | | | are at the top of loops.
* MFp4: Make `spanp' const.tjr2003-03-121-3/+4
|
* MFp4: Pentium/Athlon-optimised implementation of wmemchr().tjr2003-03-122-1/+115
|
* Don't parse the proxy URL unless we're actually going to use it. No realdes2003-03-112-8/+16
| | | | functional difference, but debugging output will be less confusing.
* MFp4: Pentium-optimised implementation of wcscmp(). Performs significantlytjr2003-03-102-1/+80
| | | | better than the code generated by gcc in many cases.
* This module is not WARNS-clean, due to brokenness in OpenSSL headers.des2003-03-101-0/+1
|
* Somewhat better wording.des2003-03-101-8/+6
|
* Silence warning caused by OPIE brokenness.des2003-03-101-2/+3
|
* style.Makefile(5) policeobrien2003-03-0928-221/+223
| | | | | | (I've tried to keep to the spirit of the original formatting) Reviewed by: des
* style.Makefile(5) police.obrien2003-03-091-31/+30
| | | | Reviewed by: des
* MFp4: Add the standard "the {fgetws,fputws} function will fail if" texttjr2003-03-092-0/+6
| | | | to the Errors section.
* KerberosIV deorbit sequence continues: Look for K5 instead of KIVmarkm2003-03-081-2/+3
|
* KerberosIV de-orbit burn continues. Remove the KerberosIV PAM module.markm2003-03-087-454/+0
|
* Comment-only assistance to lint to kill warnings.markm2003-03-081-0/+4
|
* Clean up some signed/unsigned issues in the XDR code.nectar2003-03-073-12/+18
| | | | Obtained from: OpenBSD
* Fix cut'n'paste errorphantom2003-03-052-2/+2
| | | | Noticed by: julian
* Remove NS and ISO stuff.peter2003-03-057-737/+3
|
* Fix threaded applications on ia64 that are linked dynamicly. We didmarcel2003-03-052-3/+6
| | | | | | | | | | | | | | | | | not save (restore) the global pointer (GP) in the jmpbuf in setjmp (longjmp) because it's not needed in general. GP is considered a scratch register at callsites and hence is always restored after a call (when it's possible that the call resolves to a symbol in a different loadmodule; otherwise GP does not have to be saved and restored at all), including calls to setjmp/longjmp. There's just one problem with this now that we use setjmp/longjmp for context switching: A new context must have GP defined properly for the thread's entry point. This means that we need to put GP in the jmpbuf and consequently that we have to restore is in longjmp. This automaticly requires us to save it as well. When setjmp/longjmp isn't used for context switching, this can be reverted again.
* Don't cast an int to a pointer type without (possibly) widening themarcel2003-03-051-1/+1
| | | | | | | | | | | integral type to the size of a pointer type when it's known that the cast is valid. On ia64 such casts are generally bad news and has led us (=peter :-) to make such casts fatal. By casting to intptr_t before casting to a pointer type, this now compiles cleanly in LP64 architectures. Note that the final cast has been changed to void* (instead of siginfo_t*) to make it explicit that we're not trying to pass a siginfo_t pointer but rather trying to pass an int when the prototype says it should be a pointer.
* ABI breaker: Move the J_SIGMASK field in the jmpbuf beforemarcel2003-03-051-2/+2
| | | | | | | | | | | the J_SIG0 field. While here, rename J_SIG0 to J_SIGSET and remove J_SIG1. The main reason for this change is that the 128-bit sigset_t is now aligned on a 16-byte boundary, which allows us to use 16-byte atomic loads and stores on CPUs that support it. The removal of J_SIG1 is done to avoid confusion: it is never accessed and should not be. Renaming J_SIG0 to J_SIGSET is the icing on the cake that's better done now than later.
* Re-document unimplemented capabilities that were removed in the lastdas2003-03-051-0/+57
| | | | | | | | revision of this file, but note that they are not supported in the base system. Requested by: ache Reviewed by: ache, mike (mentor)
* MFlibc_r: add and document pthread_attr_get_np() function.phantom2003-03-036-0/+232
|
* Add and document support for a FETCH_BIND_ADDRESS environment variabledes2003-03-033-4/+37
| | | | | | specifying a local address to bind sockets to. Caveat: lightly tested. PR: bin/37572
* mdoc(7) police: Nits.ru2003-03-032-4/+4
|
* - Document the fact that we now use pam_passwdqc(8) to checkdas2003-03-031-58/+16
| | | | | | | | | | | | password quality, not login.conf(5). - Move warnexpire and warnpasswd from the ``Accounting Limits'' section to ``Authentication'', and nix everything else in the former section. The accounting knobs are not available in the base system, and the subset of them available in ports should be documented in the ports' manpages. PR: 47960 Reviewed by: mike (mentor), doc
* Restore vendor ID.obrien2003-03-031-2/+2
|
* Use __FBSDID.obrien2003-03-0335-44/+85
|
* Fix a machine check abort caused by the EFI loader trying to open amarcel2003-03-032-2/+4
| | | | | | | | | | | | | | | | | | file in the NFS file system when the underlying device is not a network device. A Sparc64 specific hack for this exact problem was already present (nfs.c:1.9, tftp.c:1.10), but the problem is not specific to Sparc64. The hack has been promoted to a non-i386 test because on non-i386 architectures it's either impossible to have non-network devices coexist in the same loader with the NFS FS, or network and non-network device coexist and NFS filesystems can only be used on top of network devices. I believe i386 pxeboot is where this does not hold. The root cause of this problem is in open.c where each file system is tried until no more file systems exist or a file system returns success. There's no notion of a list of valid file systems given the underlying device and the non-existence of a file can cause the invalid combination to be tried.
* mdoc(7) police: Nits.ru2003-03-021-7/+7
|
* Use a character device and ioctl() for communication between libncptjr2003-02-283-35/+40
| | | | | and the kernel instead of adding more syscalls at runtime. As a bonus, you can now restrict access to the kernel NCP interface with chmod.
OpenPOWER on IntegriCloud