summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Split the contributed code from libc/stdtime from lib/libc/stdtimeedwin2010-02-2610-3621/+5
| | | | to contrib/tzcode/stdtime.
* Removed redundant -I. from CFLAGS and "yes" from WITHOUT_MAN.ru2010-02-252-4/+4
|
* Fixed dependencies (make checkdpadd).ru2010-02-251-1/+2
|
* Make pause(3) implementation not depended on the legacy sigcompat.ckib2010-02-251-1/+7
| | | | | | | interfaces. Do not block rt signals during and after pause(3) calls. Use private libc namespace to call proper methods. MFC after: 1 week
* While there, trim some trailing whitespace.ed2010-02-211-1/+0
|
* Add proper const keywords to sysctl(3) parameters.ed2010-02-214-25/+15
| | | | | | | | | | | | | The `name' and `newp' arguments can be marked const, because the buffers they refer to are never changed. While there, perform some other cleanups: - Remove K&R from sysctl.c. - Implement sysctlbyname() using sysctlnametomib() to prevent duplication of an undocumented kernel interface. - Fix some whitespace nits. It seems the prototypes are now in sync with NetBSD as well.
* Fix common misspelling of hierarchyuqs2010-02-201-2/+2
| | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
* - More style(9) fixupsgabor2010-02-201-26/+29
| | | | Approved by: delphij (mentor)
* realloc() with a proper amount of memory.ru2010-02-171-1/+1
| | | | MFC after: 3 days
* Mention EISDIR as a possible errno.phk2010-02-171-0/+2
|
* Define TLS_MODEL for PowerPC as well. Since PowerPC uses variant I,marcel2010-02-161-0/+1
| | | | like ia64, leave it empty (default model).
* %U was macroized in mdoc(7), escape.ru2010-02-163-3/+3
|
* Add missing newline in last line of file.uqs2010-02-161-1/+1
| | | | | Uncovered via: fromcvs vs. svn Approved by: ed (co-mentor)
* Unbreak ia64: tls_model("initial-exec") is invalid, because it assumesmarcel2010-02-161-11/+9
| | | | | | the static TLS model, which is fundamentally different from the dynamic TLS model. The consequence was data corruption. Limit the attribute to i386 and amd64.
* The static TLS size as given by tls_static_space includes TLS_TCB_SIZEmarcel2010-02-161-2/+2
| | | | bytes of TCB in variant I.
* Though these libraries are disconnected from the build and don'tru2010-02-152-36/+0
| | | | | | | | | | | currently build, they should be kept. [1] Unbreak their makefiles by removing the support for the long gone DEFAULT_THREAD_LIB knob. (Allows the tools/make_libdeps.sh script to succeed.) According to: davidxu and deischen [1] MFC after: 3 days
* Resort includes to match style(9) a bit more. No functional changewkoszek2010-02-1310-32/+36
| | | | | | | is expected after this commit. Tested by: make buildworld Reviewed by: hps (patch without .h changes)
* s/APIS/APIs - not part of the original submission.trhodes2010-02-111-2/+2
|
* o Add support for COMPAT_IA32.marcel2010-02-111-13/+21
| | | | | | | | | | o Incorporate review comments: - Properly reference and lock the map - Take into account that the VM map can change inbetween requests - Add the fileid and fsid attributes Credits: kib@ Reviewed by: kib@
* i doesn't need to be signed here, make it unsigned.imp2010-02-111-1/+1
|
* Correct two typoes.trhodes2010-02-111-1/+1
| | | | Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
* Remove redundand headers and use more standard ones where necessary.wkoszek2010-02-116-11/+1
| | | | Reviewed by: hps@
* Use more standard way for setting nonblocking flag for a filedescriptor.wkoszek2010-02-111-7/+9
| | | | | | | | | | This makes libusb porting a bit easier. There shouldn't by any negative change in behaviour after this commit. Remove redundant headers. Reviewed by: hps@
* Within libusb 0.1 API, bus number is always faked to 0. Device numbers,wkoszek2010-02-111-0/+3
| | | | | | | | | | | | | | however, are possitive and seem to be reverse sorted in the list. Conform device numbering and bring a result that is consistent with the libusb 0.1 API. It is now possible to distinguish a device based on its (bus, dev) numbers. There shouldn't be any negative change in behavior after this commit. Tested with: scanimage (sane) http://freebsd.czest.pl/~wkoszek/qemu/l.c Reviewed by: hps@
* Back to WARNS=3. The breakage wasn't what I thought it was :(imp2010-02-111-1/+1
|
* Keep Tinderbox happy.mckusick2010-02-111-1/+1
|
* Increased warnings weren't tested on ARM. Bump warnings back down toimp2010-02-111-1/+1
| | | | | 0 until it can be properly tested by those raising the warnings. Remember: make universe is required when changing the WARNS level.
* Fix PRcracauer2010-02-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/143350 Empty string test gone wrong. Testing this requires that you have a locale that has the sign string unset but has int_n_sign_posn set (the default locale falls through to use "()" around negative numbers which is probably another bug). I created that setup by hand and indeed without this fix negative numbers are put out as positive numbers (doesn't fall through to use "-" as default indicator). Unfixed example in nl_NL.ISO8859-1 with lc->negative_sign set to empty string: strfmon(buf, sizeof(buf), "%-8i", -42.0); ==> example2: 'EUR 42,00' 'Eu 42,00' Fixed: example2: 'EUR 42,00-' 'Eu 42,00-' This file and suggested fix are identical in at least freebsd-8. Backport might be appropriate but some expert on locales should probably have a look at us defaulting to negative numbers in parenthesis when LC_* is default. That doesn't look right and is not what other OSes are doing. PR: 143350 Submitted by: Corinna Vinschen Reviewed by: bug reporter submitted, tested by me
* - Deal with some special cases [1]gabor2010-02-091-30/+54
| | | | | | | - style(9) nits Pointed out by: jilles [1] Approved by: delphij (mentor)
* Various fixes like spelling, style and syntax.marcel2010-02-091-21/+28
| | | | Submitted by: ru (thanks!)
* Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process canmarcel2010-02-091-1/+76
| | | | | | | | obtain the memory map of the traced process. PT_VM_TIMESTAMP can be used to check if the memory map changed since the last time to avoid iterating over all the VM entries unnecesarily. MFC after: 1 month
* Mark up "unsigned char".ru2010-02-044-4/+11
|
* Reinstate the ptrace patch to restore the 'gp' register after callingneel2010-02-041-0/+3
| | | | | | | | | | a function. I made a mistake in assuming that the .cprestore directive will cause the assembler to automatically restore 'gp' after the 'jalr'. The .cprestore directive does its magic only after 'jal' and 'bal' instructions - not the 'jalr'. Pointed out by: c.jayachandran@gmail.com
* -White space cleanup (missing spaces in new line)rrs2010-02-031-5/+2
| | | | | | -Remove extra tab. -Took out the duplicate code that cprestore does. All suggested by Neel.
* Placate new binutils, by using 16-bit %ax instead of 32-bit %eax as ankib2010-02-034-22/+34
| | | | | | | | | argument for fnstsw. Explicitely specify sizes for the XMM control and status word and X87 control and status words. Reviewed by: das Tested by: avg MFC after: 2 weeks
* Also add a cross-reference to NetBSD updlastlogx().ed2010-02-031-1/+3
|
* This fixes a bug found and fixed by JC. Basicallyrrs2010-02-031-1/+13
| | | | | | | no save was being done of the ra and gp pointers before we call the __error function. Obtained from: JC (c.jayachandran@gmail.com)
* Bump .Dd, forgotten in r203393gavin2010-02-021-1/+1
| | | | | Approved by: ed (mentor, implicit) MFC after: 1 week
* The multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d.gavin2010-02-021-1/+1
| | | | | | | | | This bug in the man page has gone unnoticed for over 15 years! PR: docs/143461 Submitted by: Jeremy Huddleston jeremyhu apple.com Approved by: ed (mentor, implicit) MFC after: 1 week
* Implement strndup(3) using strnlen(3).ed2010-02-021-3/+1
| | | | | This makes the implementation a bit more consistent with strdup(3), which uses strlen(3).
* Respect passwordtime from login.conf if set.des2010-02-021-2/+9
| | | | | | PR: bin/93473 Submitted by: Björn König <bkoenig@cs.tu-berlin.de> MFC after: 1 week
* Finally, document libgpib.joerg2010-02-012-0/+757
| | | | MFC after: 3 days
* Fix bugs:jasone2010-01-314-1352/+2256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix a race in chunk_dealloc_dss(). * Check for allocation failure before zeroing memory in base_calloc(). Merge enhancements from a divergent version of jemalloc: * Convert thread-specific caching from magazines to an algorithm that is more tunable, and implement incremental GC. * Add support for medium size classes, [4KiB..32KiB], 2KiB apart by default. * Add dirty page tracking for pages within active small/medium object runs. This allows malloc to track precisely which pages are in active use, which makes dirty page purging more effective. * Base maximum dirty page count on proportion of active memory. * Use optional zeroing in arena_chunk_alloc() to avoid needless zeroing of chunks. This is useful in the context of DSS allocation, since a long-lived application may commonly recycle chunks. * Increase the default chunk size from 1MiB to 4MiB. Remove feature: * Remove the dynamic rebalancing code, since thread caching reduces its utility.
* Remove extra semicolon.brucec2010-01-311-1/+1
| | | | Approved by: rrs (mentor)
* Fix typo of ENOTCONN.brucec2010-01-314-3/+5
| | | | | | Add missing RETURN VALUES section in sctp_opt_info(3). Approved by: rrs (mentor)
* The EFI vendor UUID for FreeBSD variables is called EFI_FREEBSD_VARIABLEmarcel2010-01-311-1/+1
| | | | and not EFI_FREEBSD_VENDOR (cf. EFI_GLOBAL_VARIABLE).
* Perform some cleanups to devname(3).ed2010-01-311-13/+10
| | | | | | | | | | | - Make sure the mode argument is either a character or a block device. - Use S_IS*() instead of checking S_IF*-flags by hand. - Don't use kern.devname when the argument is already NODEV. - Always call snprintf with the proper amount of arguments corresponding with the format. - Perform some whitespace fixes. Tabs instead of 4 spaces, missing space for return statement. - Remove unneeded includes.
* Introduce libefi -- a library around EFI runtime services and protocols.marcel2010-01-309-2/+634
| | | | | | | | | | | | | This first commit brings 3 functions for enumerating, retrieving, adding, removing and modifying EFI variables. The immediate use of these include the insertion of a new boot option as part of the installation process. This library uses ioctl(2) requests implemented by io(4) to pass the requests down through the kernel to EFI. These ioctl requests are only implemented on ia64, so libefi is currently only enabled on ia64. The interface is generic and io(4) on mad64/i386 can easily be taught to handle these once EFI support has been added to the kernel there.
* - Fix some style(9) bugsgabor2010-01-291-17/+16
| | | | Pointed out by: bde
* You must include fcntl.h (in practice) to be able to do anything usefulrwatson2010-01-291-0/+1
| | | | | | with shm_open(2), as otherwise the O_ flags are undefined. MFC after: 3 days
OpenPOWER on IntegriCloud