summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* - Update for ncurses 5.6-20080509rafan2008-05-091-1/+1
|
* Don't set the _file member of the FILE when opening a FTP connection.jhb2008-05-081-1/+0
| | | | | | | Nothing in libftpio uses _file, and the only consumer in the tree (sysinstall) doesn't invoke fileno() on the FILE. MFC after: 2 months
* Update the lib/expat tree for the new v2.0.1 expat import. The bsdxml.hcokane2008-05-082-6/+12
| | | | | | | | | header is now in two parts: bsdxml.h and bsdxml_external.h, representing the expat.h and expat_external.h headers. Updated the info on the man page as well. Also, fixed a type-error in a printf in sbin/ifconfig/regdomain.c that would cause a compiler warning. Approved by: sam, phk
* Keep versions on a dependency chain to exclude even remote possiblitykan2008-05-071-1/+1
| | | | of private version ever getting index 2.
* Fix conflicts after heimdal-1.1 import and add build infrastructure. Importdfr2008-05-0755-334/+1932
| | | | all non-style changes made by heimdal to our own libgssapi.
* Remove libc_r's remnant code.davidxu2008-05-061-16/+0
|
* Add a comment stating not to bump the FBSDprivate version.deischen2008-05-061-1/+3
| | | | Don't inherit the public namespace from the private namespace.
* Revert back to accessing FILE internals directly.jhb2008-05-051-11/+19
| | | | (Sorry, forgot to commit this earlier.)
* Retire the __fgetcookie(), __fgetpendout(), and __fsetfileno() accessorsjhb2008-05-053-30/+0
| | | | as we aren't hiding FILE's internals anymore.
* Expose FILE's internals to the world again in all their glory. Restorejhb2008-05-0510-140/+23
| | | | | all the previous inline optimizations as well. FILE is back to using __mbstate_t, struct pthread *, and struct pthread_mutex *.
* Do not read away the target directory entry when encountering deletedkib2008-05-053-8/+9
| | | | | | | | | | | | | files after a seekdir(). The seekdir shall set the position for the next readdir operation. When the _readdir_unlocked() encounters deleted entry, dd_loc is already advanced. Continuing the loop leads to premature read of the target entry. Submitted by: Marc Balmer <mbalmer at openbsd org> Obtained from: OpenBSD MFC after: 2 weeks
* Add MIPS support to libdiskgonzo2008-05-043-1/+52
| | | | Approved by: cognet (mentor)
* Add __fgetcookie(), __fgetpendout() and __fsetfileno() to the privatemarcel2008-05-042-0/+9
| | | | name space.
* Unbreak build: gnu sort has been configured to grope inside structmarcel2008-05-031-0/+7
| | | | | | | __sFILE. It's opaque now, so add a function that returns the pending output bytes. Pointy hat: jhb
* Symbol.map is handled by cpp, so use C-style commentsgonzo2008-05-031-1/+3
| | | | Approved by: cognet (mentor)
* Unbreak build: libftpio gropes inside struct __sFILE. Implementmarcel2008-05-032-19/+25
| | | | | | | | accessor functions for its benefit now thaat FILE is opaque. I'm sure there's a better way. I leave that for people to work on in a src tree that isn't broken. Pointy hat: jhb
* Fix a comment.jasone2008-05-031-1/+1
|
* Bring C runtime bits for FreeBSD/mips from p4 mips2-jnpr branch.gonzo2008-05-034-0/+191
| | | | Approved by: cognet (mentor)
* Next round of stdio changes: Remove all inlining of stdio operations andjhb2008-05-0212-112/+200
| | | | | | | | | | | | | | | | move the definition of the type backing FILE (struct __sFILE) into an internal header. - Remove macros to inline certain operations from stdio.h. Applications will now always call the functions instead. - Move the various foo_unlocked() functions from unlocked.c into foo.c. This lets some of the inlining macros (e.g. __sfeof()) move into foo.c. - Update a few comments. - struct __sFILE can now go back to using mbstate_t, pthread_t, and pthread_mutex_t instead of knowing about their private, backing types. MFC after: 1 month Reviewed by: kan
* Include libc_private.h for the declaration of __isthreaded instead ofjhb2008-05-021-0/+1
| | | | | | relying on namespace pollution in stdio.h. MFC after: 3 days
* Add a separate tree to track arena chunks that contain dirty pages.jasone2008-05-011-157/+133
| | | | | | | This substantially improves worst case allocation performance, since O(lg n) tree search can be used instead of O(n) tree iteration. Use rb_wrap() instead of directly calling rb_*() macros.
* Add rb_wrap(), which creates C function wrappers for most rb_*()jasone2008-05-011-36/+194
| | | | | | | | | | macros. Add rb_foreach_next() and rb_foreach_reverse_prev(), which make it possible to re-synchronize tree iteration after the tree has been modified. Rename rb_tree_new() to rb_new().
* When receiving delegated credentials, initialise our cred's linked list.dfr2008-04-301-1/+5
| | | | | | | Add a bit more sanity checking for GSS-API mechanisms that claim to have delegated creds but don't actually return a cred handle. MFC after: 2 weeks
* Use global implementation of _gss_oid_equal.dfr2008-04-301-9/+1
| | | | MFC after: 2 weeks
* Allow null oids in _gss_oid_equal().dfr2008-04-301-0/+5
| | | | MFC after: 2 weeks
* o Add MIPS to the list of architectures with defined TLS_TCB_ALIGNgonzo2008-04-291-2/+2
| | | | | | o Stick with TLS Variant II for MIPS for the moment. Approved by: imp
* Set QUANTUM_2POW_MIN and SIZEOF_PTR_2POW parameters for MIPSgonzo2008-04-291-0/+5
| | | | Approved by: imp
* _setjmp.o was missing a dependency on "machine".ru2008-04-291-3/+1
|
* Don't forget to clean the "machine" symlink on amd64, otherwise badru2008-04-291-0/+3
| | | | | | | things may happen. Reported by: phk MFC after: 3 days
* Use UMTX_OP_WAIT_UINT_PRIVATE and UMTX_OP_WAKE_PRIVATE to savedavidxu2008-04-299-19/+20
| | | | time in kernel(avoid VM lookup).
* Check for integer overflow before calling sbrk(2), since it uses ajasone2008-04-291-0/+7
| | | | signed increment argument, but the size is an unsigned integer.
* Correct minor typos in SCTP man pages.rwatson2008-04-282-2/+1
| | | | MFC after: 3 days
* Add support files for compiling with soft-float. This has beenmarcel2008-04-273-0/+448
| | | | | copied from ARM and modified to warrant the duplication. Oh, and to make it work for PowerPC :-)
* Increase the default MUTEX_ADAPTIVE_SPINS to 2000, after furtherkris2008-04-261-1/+1
| | | | | | | | testing it turns out 200 was too short to give good adaptive performance. Reviewed by: jeff MFC after: 1 week
* Add mips support to libm, from mips2-jnpr perforce branch.imp2008-04-264-0/+259
|
* Bring in mips threads support from perforce mips2-jnpr branch.imp2008-04-261-0/+5
|
* Add mips support libc from the mips2-jnpr branch of perforce.imp2008-04-2660-0/+3908
|
* Have the man page catch up with the namespace pollution cleanup thatscf2008-04-261-1/+0
| | | | | | | | | | occurred between 2001-2003. Thanks to bde for the history lesson[1] concerning sys/types.h and the many system calls that at one time (pre-2001) were required by POSIX to include it. 1. http://lists.freebsd.org/pipermail/freebsd-arch/2008-April/008126.html MFC after: 3 days
* Stricter check for integer overflow.ru2008-04-241-0/+2
|
* Add support for gpart:marcel2008-04-241-6/+10
| | | | | | o Correct for gpart's 1-based index, versus 0-based index used by legacy slicers. o Parse and understand the xs and xt parameters.
* Avoid various shadowed variables. libthr is now almost WARNS=4 clean exceptdelphij2008-04-234-25/+25
| | | | | | for some const dequalifiers that needs more careful investigation. Ok'ed by: davidxu
* Implement red-black trees without using parent pointers, and store thejasone2008-04-232-116/+947
| | | | | | | | | color bit in the least significant bit of the right child pointer, in order to reduce red-black tree linkage overhead by ~2X as compared to sys/tree.h. Use the new red-black tree implementation in malloc, which drops memory usage by ~0.5 or ~1%, for 32- and 64-bit systems, respectively.
* Correct an off-by-1 for GPART. The literal partition type (i.e.marcel2008-04-231-2/+8
| | | | | | | the actual UUID) is prefixed by '!' to distinguish them from well-known aliases. MFC after: 3 days
* Add four utility functions related to struct grp processing modeled in-partscf2008-04-233-1/+242
| | | | | | | | | | | | | | | | | | | after similar calls related to struct pwd in libutil/pw_util.c: - gr_equal() Perform a deep comparison of two struct grp's. It does a thorough, yet unoptimized comparison of all the members regardless of order. - gr_make() Create a string (see group(5)) from a struct grp. - gr_dup() Duplicate a struct grp. Returns a value that is a single contiguous block of memory. - gr_scan() Create a struct grp from a string (as produced by gr_make()). MFC after: 3 weeks
* Fix a leak in the recent fixes for file descriptors > SHRT_MAX. In thejhb2008-04-221-0/+1
| | | | | | | | case of a file descriptor we can't handle, clear the FILE structure's flags so it can be reused. MFC after: 1 week Reported by: otto @ OpenBSD
* Use native rwlock.davidxu2008-04-221-54/+20
|
* Document that you must include <sys/param.h> before <sys/cpuset.h>.antoine2008-04-202-0/+2
| | | | Approved by: rwatson (mentor)
* Don't forget to free() currency_symbol and asciivalue when multipleru2008-04-191-0/+4
| | | | | | | | conversion specifiers for them are present. Submitted by: Maxim Dounin <mdounin@mdounin.ru> Obtained from: NetBSD (partially) MFC after: 3 days
* Better strfmon(3) conversion specifiers sanity checking.ru2008-04-191-1/+8
| | | | | | | | | | There were no checks for left and right precisions at all, and a check for field width had integer overflow bug. Reported by: Maksymilian Arciemowicz Security: http://securityreason.com/achievement_securityalert/53 Submitted by: Maxim Dounin <mdounin@mdounin.ru> MFC after: 3 days
* Next stage of stdio cleanup: Retire __sFILEX and merge the fields back intojhb2008-04-1726-143/+72
| | | | | | | | | | | | | | | | | | | __sFILE. This was supposed to be done in 6.0. Some notes: - Where possible I restored the various lines to their pre-__sFILEX state. - Retire INITEXTRA() and just initialize the wchar bits (orientation and mbstate) explicitly instead. The various places that used INITEXTRA didn't need the locking fields or _up initialized. (Some places needed _up to exist and not be off the end of a NULL or garbage pointer, but they didn't require it to be initialized to a specific value.) - For now, stdio.h "knows" that pthread_t is a 'struct pthread *' to avoid namespace pollution of including all the pthread types in stdio.h. Once we remove all the inlines and make __sFILE private it can go back to using pthread_t, etc. - This does not remove any of the inlines currently and does not change any of the public ABI of 'FILE'. MFC after: 1 month Reviewed by: peter
OpenPOWER on IntegriCloud