summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move va_end() updes2008-10-211-1/+1
|
* If we don't know the file size, leave the file size unset.kientzle2008-10-213-14/+28
| | | | | | | | | | | | If it's not a regular file, don't return any data, even if the size is unknown. Update the Zip test with a hand-tweaked Zip archive that has a directory (with length-at-end set), a regular file without length-at-end set, and a regular file with length-at-end set and a bad CRC. Update the test code to verify that the file size is unset for the regular file with length-at-end. MFC after: 7 days
* Diff reduction against Varnish, including one important fix: use a shareddes2008-10-201-12/+12
| | | | lock if the file is opened with O_RDONLY.
* Reimplement flopen(3) using fcntl(2) locks instead of flock(2) locks.des2008-10-202-13/+16
|
* pidfile(3) uses flopen(3) - don't make any assumptions about how thedes2008-10-201-9/+8
| | | | latter is implemented.
* There is no point in releasing a lock on a file which we've unlinked anddes2008-10-201-4/+0
| | | | | are about to close, so don't. As a bonus, pidfile_remove(3) will now work with an fcntl(2)-based flopen(3).
* Since in_lt() and in_lts() are not static, assume that they are intended todes2008-10-202-2/+22
| | | | be part of the public API. Accordingly, add prototypes and document them.
* Additional style and whitespace fixes.des2008-10-201-1/+3
|
* Style and whitespacedes2008-10-201-17/+17
|
* Unbreakdes2008-10-201-3/+3
|
* Since setclasscpumask() is not static, assume that it is intended to bedes2008-10-202-5/+10
| | | | part of the public API. Accordingly, add a prototype and document it.
* Style and whitespace.des2008-10-201-15/+19
|
* Parenthesize return values.des2008-10-201-11/+11
|
* include and whitespace cleanup.des2008-10-201-7/+8
|
* - License change to a less restrictive one;delphij2008-10-191-33/+16
| | | | | | | | - ANSIfy; - Convert do {} while loop -> while {} for clarity; - Sync RCS ID with OpenBSD; Obtained from: OpenBSD
* Further simplify the code.delphij2008-10-191-11/+2
| | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de>
* Add test to verify ACL restores on FreeBSD, verify kern/128203 (mtimekientzle2008-10-193-4/+248
| | | | | | | | restore fails if ACL provided), apply patch from kern/128203, and verify fix. PR: kern/128203 Submitted by: Udo Schweigert MFC after: 3 days
* Style: Mark private data 'static', correct an old comment.kientzle2008-10-191-5/+4
| | | | MFC after: 3 days
* Use strlcpy() in !localized case to avoid the -1's.delphij2008-10-171-2/+1
|
* Use strlcpy() when we mean it.delphij2008-10-173-6/+3
|
* Reduce code duplication: use calloc() intead of malloc()delphij2008-10-171-4/+2
| | | | and memset afterward.
* _kvm_malloc allocates memory through calloc() whichdelphij2008-10-172-2/+0
| | | | returns zeroed memory, so don't redo the initialization.
* MTC r183949:netchild2008-10-171-0/+5
| | | | | | | Allow to define MALLOC_PRODUCTION with a make variable instead of polluting the global CFLAGS. Reviewed by: jasone
* Let libstand(3) build on ARM.raj2008-10-142-1/+13
| | | | This is a pre-requisite for loader(8) + U-Boot support library on this arch.
* - Sparsely number enumerations 'pmc_cputype' and 'pmc_event' in order tojkoshy2008-10-091-101/+287
| | | | | | | | | | | reduce ABI disruptions when new cpu types and new PMC events are added in the future. - Support alternate spellings for PMC events. Derive the canonical spelling of an event name from its enumeration name in 'enum pmc_event'. - Provide a way for users to disambiguate between identically named events supported by multiple classes of PMCs in a CPU. - Change libpmc's machine-dependent event specifier parsing code to better support CPUs containing two or more classes of PMC resources.
* Correct a typo.jkoshy2008-10-061-1/+1
|
* - Add cross-references.jkoshy2008-10-041-3/+6
| | | | - Tweak -mdoc use.
* Add cross-references.jkoshy2008-10-041-1/+5
|
* Cross-reference new manual pages.jkoshy2008-10-044-4/+20
|
* - Cross-reference new manual pages.jkoshy2008-10-041-8/+14
| | | | - Spell new PMC class names correctly.
* Add manual pages for performance measurement counters present injkoshy2008-10-045-0/+3171
| | | | Intel Atom(tm), Core(tm) and Core2(tm) CPUs.
* Small cleanups to openpty().ed2008-10-031-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | - Pass O_NOCTTY to posix_openpt(2). This makes the implementation work consistently on implementations that make the PTY the controlling TTY by default. - Call unlockpt() before opening the slave device. POSIX mentions that de slave device should only be opened after grantpt() and unlockpt() have been called. - Replace some redundant code by a label. In theory we could remove a lot of code from openpty() on FreeBSD -CURRENT, because grantpt(), unlockpt() and revoke() are not needed in our implementation. We'd better keep them there. This makes the code still work with older FreeBSD releases and even makes it work on other non-BSD operating systems. I've compiled openpty() on Linux. You only need to remove the revoke() call, because revoke() on Linux always returns -1. Apart from that, it seems to work like it should. Reviewed by: jhb
* - Document event numbers associated with event names.jkoshy2008-10-021-55/+148
| | | | | - Document an event that was missed out earlier. - Sort event names alphabetically.
* - Document event numbers.jkoshy2008-10-021-26/+49
| | | | - Sort event names.
* -mdoc tweaks.jkoshy2008-10-021-35/+35
|
* - Document event numbers.jkoshy2008-10-021-39/+108
| | | | - Correct misspellings of two event names.
* Document event numbers alongside event names.jkoshy2008-10-021-39/+78
| | | | Requested by: Arun Sharma <arun at sharma-home dot net>
* Add unistd.h to the getosreldate(3) manpage.kib2008-09-301-1/+2
| | | | | | Update referenced example to include unistd.h per manpage. Update example to be more style(9)-ish, silence warnings and add FreeBSD id to the source file.
* Verify high-res birthtime support on FreeBSD.kientzle2008-09-301-0/+2
| | | | MFC after: 30 days
* MfP4: restore birth time data to disk + more thorough tests forkientzle2008-09-304-83/+320
| | | | | | time restore to disk. MFC after: 30 days
* MfP4: Store/read birthtime data in pax format.kientzle2008-09-304-0/+160
| | | | | Submitted by: Pedro Giffuni MFC after: 30 days
* MfP4: Support for storing birthtime in archive_entry objects.kientzle2008-09-307-0/+73
| | | | | Submitted by: Pedro Giffuni MFC after: 30 days
* Support for CPU sets is going to appear in 7.1 before 8.0.jhb2008-09-292-2/+2
| | | | MFC after: 3 days
* Fix some ifdef logic in the libc syncicache() bit that I somehow missed in thenwhitehorn2008-09-241-1/+3
| | | | last commit. Now it really can use a runtime-set cacheline size.
* Allow the cacheline size on PowerPC to be set at runtime. This is essential fornwhitehorn2008-09-241-16/+16
| | | | | supporting 64-bit CPUs, which often have 128-byte cache lines instead of the standard 32.
* Document changes in behaviour due to sparse CPU numbering support.jkoshy2008-09-225-18/+29
|
* add new build knobs and jigger some existing controls to improvesam2008-09-211-24/+42
| | | | | | | | control over the result of buildworld and installworld; this especially helps packaging systems such as nanobsd Reviewed by: various (posted to arch) MFC after: 1 month
* <osreldate.h> does not have a forward declration of getosreldate(), sorodrigc2008-09-201-1/+0
| | | | | | remove it from this man page. MFC after: 3 days
* Move uuid_enc_le, uuid_dec_le, uuid_enc_be and uuid_dec_be symbolsemax2008-09-191-0/+3
| | | | | | | into FBSD_1.1 section where they should be. Pointed out by: kib, deischen MFC after: 3 days
* Keep symbols in sorted order.jkoshy2008-09-191-4/+4
|
OpenPOWER on IntegriCloud