#
259065 |
|
07-Dec-2013 |
gjb |
- Copy stable/10 (r259064) to releng/10.0 as part of the 10.0-RELEASE cycle. - Update __FreeBSD_version [1] - Set branch name to -RC1
[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so start releng/10.0 at '100' so the branch is started with a value ending in zero.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
237573 |
|
25-Jun-2012 |
issyl0 |
Add more locale-specific functions to the relevant man pages and Makefiles: - libc/stdtime/strftime.3 - libc/stdtime/strptime.3 - libc/stdlib/strfmon.3
Reviewed by: theraven Approved by: gabor (mentor)
|
#
234370 |
|
17-Apr-2012 |
jasone |
Import jemalloc 9ef7f5dc34ff02f50d401e41c8d9a4a928e7c2aa (dev branch, prior to 3.0.0 release) as contrib/jemalloc, and integrate it into libc. The code being imported by this commit diverged from lib/libc/stdlib/malloc.c in March 2010, which means that a portion of the jemalloc 1.0.0 ChangeLog entries are relevant, as are the entries for all subsequent releases.
|
#
229848 |
|
09-Jan-2012 |
ed |
Add aligned_alloc(3).
The C11 folks reinvented the wheel by introducing an aligned version of malloc(3) called aligned_alloc(3), instead of posix_memalign(3). Instead of returning the allocation by reference, it returns the address, just like malloc(3).
Reviewed by: jasone@
|
#
228322 |
|
07-Dec-2011 |
theraven |
Implement quick_exit() / at_quick_exit() from C++11 / C1x. Also add a __noreturn macro and modify the other exiting functions to use it.
The __noreturn macro, unlike __dead2, must be used BEFORE the function. This is in line with the C and C++ specifications that place _Noreturn (c1x) and [[noreturn]] (C++11) in front of the functions. As with __dead2, this macro falls back to using the GCC attribute.
Unfortunately, clang currently sets the same value for the C version macro in C99 and C1x modes, so these functions are hidden by default. At some point before 10.0, I need to go through the headers and clean up the C1x / C++11 visibility.
Reviewed by: brooks (mentor)
|
#
224201 |
|
18-Jul-2011 |
dim |
Fix building of 32-bit compat libraries on amd64 with clang, and using -g, by reverting r219139. The LLVM PR referenced in that revision was fixed in the mean time, and we imported a clang snapshot soon afterwards, so the temporary workaround of disabling clang's integrated assembler is no longer needed.
In this particular case, using e.g. DEBUG_FLAGS=-g causes clang to output certain directives into assembly that our version of GNU as chokes on.
Reported by: dougb Approved by: re (kib)
|
#
219709 |
|
17-Mar-2011 |
marcel |
Don't add sigwait.c to MISRCS here when sigwait.c lives under ../sys and it's already added to SRCS there.
|
#
219139 |
|
01-Mar-2011 |
dim |
Put in a temporary workaround for ctfmerge hanging on processing kernel.debug (or possibly other files), when WITH_CTF is active.
This is caused by a bug in clang's integrated assembler, causing malloc to sometimes hang during initialization in statically linked executables that use threading, such as the copy of ctfmerge that is built during the bootstrap stage of buildworld. The bug has been submitted upstream:
http://llvm.org/bugs/show_bug.cgi?id=9352
Note that you might have to rebuild and install libc first, to get your kernel build to finish, because the ctfmerge binary built during bootstrap is linked with your base system's copy of libc.a, which might already contain a bad copy of malloc.o.
|
#
212405 |
|
09-Sep-2010 |
davidxu |
Because POSIX does not allow EINTR to be returned from sigwait(), add a wrapper for it in libc and rework the code in libthr, the system call still can return EINTR, we keep this feature.
Discussed on: thread Reviewed by: jilles
|
#
211774 |
|
24-Aug-2010 |
imp |
Powerpc is special here. powerpc and powerpc64 use different ABIs, so their implementations aren't in the same files. Introduce LIBC_ARCH and use that in preference to MACHINE_CPUARCH. Tested by amd64 and powerpc64 builds (thanks nathanw@)
|
#
211725 |
|
23-Aug-2010 |
imp |
MFtbemd:
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
|
#
194703 |
|
23-Jun-2009 |
ed |
Simplify. We can just use .sinclude here.
Submitted by: Christoph Mallon
|
#
183969 |
|
17-Oct-2008 |
netchild |
MTC r183949: Allow to define MALLOC_PRODUCTION with a make variable instead of polluting the global CFLAGS.
Reviewed by: jasone
|
#
181905 |
|
20-Aug-2008 |
ed |
Integrate the new MPSAFE TTY layer to the FreeBSD operating system.
The last half year I've been working on a replacement TTY layer for the FreeBSD kernel. The new TTY layer was designed to improve the following:
- Improved driver model:
The old TTY layer has a driver model that is not abstract enough to make it friendly to use. A good example is the output path, where the device drivers directly access the output buffers. This means that an in-kernel PPP implementation must always convert network buffers into TTY buffers.
If a PPP implementation would be built on top of the new TTY layer (still needs a hooks layer, though), it would allow the PPP implementation to directly hand the data to the TTY driver.
- Improved hotplugging:
With the old TTY layer, it isn't entirely safe to destroy TTY's from the system. This implementation has a two-step destructing design, where the driver first abandons the TTY. After all threads have left the TTY, the TTY layer calls a routine in the driver, which can be used to free resources (unit numbers, etc).
The pts(4) driver also implements this feature, which means posix_openpt() will now return PTY's that are created on the fly.
- Improved performance:
One of the major improvements is the per-TTY mutex, which is expected to improve scalability when compared to the old Giant locking. Another change is the unbuffered copying to userspace, which is both used on TTY device nodes and PTY masters.
Upgrading should be quite straightforward. Unlike previous versions, existing kernel configuration files do not need to be changed, except when they reference device drivers that are listed in UPDATING.
Obtained from: //depot/projects/mpsafetty/... Approved by: philip (ex-mentor) Discussed: on the lists, at BSDCan, at the DevSummit Sponsored by: Snow B.V., the Netherlands dcons(4) fixed by: kan
|
#
171195 |
|
03-Jul-2007 |
scf |
Significantly reduce the memory leak as noted in BUGS section for setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value.
Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT.
Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv().
New regression module for tools/regression/environ to test these functions. It also can be used to test the performance.
Bump __FreeBSD_version to 700050 due to API change.
PR: kern/99826 Approved by: wes Approved by: re (kensmith)
|
#
157236 |
|
28-Mar-2006 |
jasone |
Add malloc_usable_size(3).
Discussed with: arch@
|
#
156707 |
|
14-Mar-2006 |
andre |
Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3) providing proper error checking and other improvements.
Obtained from: OpenBSD Requested by: flz (to port Open[BGP|OSPF]D) MFC after: 3 days
|
#
156613 |
|
12-Mar-2006 |
deischen |
Add each directory's symbol map file to SYM_MAPS.
|
#
154248 |
|
12-Jan-2006 |
jasone |
In preparation for a new malloc implementation:
* Add posix_memalign().
* Move calloc() from calloc.c to malloc.c. Add a calloc() implementation in rtld-elf in order to make the loader happy (even though calloc() isn't used in rtld-elf).
* Add _malloc_prefork() and _malloc_postfork(), and use them instead of directly manipulating __malloc_lock.
Approved by: phk, markm (mentor)
|
#
153707 |
|
24-Dec-2005 |
trhodes |
Add a64l(), l64a(), and l64a_r() XSI extentions. These functions convert between a 32-bit integer and a radix-64 ASCII string. The l64a_r() function is a NetBSD addition.
PR: 51209 (based on submission, but very different) Reviewed by: bde, ru
|
#
129151 |
|
12-May-2004 |
ru |
Link radixsort(3) to sradixsort(3), make the latter appear in the whatis(1) output.
|
#
126189 |
|
24-Feb-2004 |
ache |
Add getopt_long_only() from OpenBSD and other OpenBSD cleanups
PR: 63173 Submitted by: Marius Strobl <marius@alchemy.franken.de>
|
#
121639 |
|
28-Oct-2003 |
peter |
Don peril sensitive (ie: bikeshed sensitive) sunglasses and quietly send strhash(3) off to sleep with the fishes. Nothing in our tree uses it. It has no documentation. It is nonstandard and in spite of the filename strhash.c and strhash.h, it lives in application namespace by providing compulsory global symbols hash_create()/hash_destroy()/hash_search()/ hash_traverse()/hash_purge()/hash_stats() regardless of whether you #include <strhash.h> or not. If it turns out that there is a huge application for this after all, I can repocopy it somewhere safer and we can revive it elsewhere. But please, not in libc!
|
#
113105 |
|
05-Apr-2003 |
tjr |
MFp4: Link strtof.3 and strtold.3 to strtod.3.
|
#
112163 |
|
12-Mar-2003 |
das |
Replace our ancient dtoa/strtod implementation with the gdtoa 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
|
#
109803 |
|
24-Jan-2003 |
mike |
Add an MLINK malloc.conf(5) -> malloc(3).
|
#
108574 |
|
02-Jan-2003 |
jmallett |
Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes to the user being granted the pty.
Submitted by: Ryan Younce <ryany@pobox.com> Reviewed by: security-officer@, standards@, mike@
|
#
107052 |
|
18-Nov-2002 |
ru |
libc_r wasn't so tied to libc for 22 months.
|
#
105250 |
|
16-Oct-2002 |
robert |
- Remove the lsearch() and lfind() functions and their manpage from the compatibility library libcompat. - Add new implementations of lsearch() and lfind() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and add them to the makefile. - Add function prototypes for lsearch() and lfind() to the search.h header.
|
#
105245 |
|
16-Oct-2002 |
robert |
- Remove the old insque() and remque() functions and their manual page from the compatibility library. - Add new implementations of insque() and remque() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and connect them to the build. - Add the prototypes of insque() and remque() to the search.h header.
|
#
104128 |
|
29-Sep-2002 |
eric |
Add getopt_long(3).
Obtained from: NetBSD Sponsored by: Apple
|
#
103165 |
|
10-Sep-2002 |
wollman |
Implement C99's _Exit() interface. Implement a version of qsort that provides a thunk to the comparison function.
Update manual pages.
|
#
87225 |
|
02-Dec-2001 |
peter |
Use the merged strtod.c everywhere. This has been tested on alpha and ia64.
|
#
87027 |
|
28-Nov-2001 |
fenner |
Implement strtoimax() and strtoumax()
|
#
87017 |
|
27-Nov-2001 |
ache |
Add atoll(3) to conform POSIX and C99
|
#
86368 |
|
15-Nov-2001 |
mike |
o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). o Update abs(3), div(3), labs(3), ldiv(3) to reflect standards conformance and add additional references.
Reviewed by: bde, wollman
|
#
83205 |
|
07-Sep-2001 |
phantom |
reconnect strfmon.c to build list
|
#
83194 |
|
07-Sep-2001 |
asmodai |
Add strfmon.3 to the fray. This is a first cut, but enough to help people interested in using it further than before. More text coming to illustrate use and provide more details.
Based on standards' text.
|
#
83137 |
|
06-Sep-2001 |
obrien |
strfmon(3) is not ready to go live.
|
#
83104 |
|
05-Sep-2001 |
phantom |
Add strfmon(3) implementation. It still contains few XXX's because I lost my last version of this work due to HDD crash, but this version cleanly passed all POSIX and SuSv2 tests. I am working on testing scripts which should test this implementation against all locales and surely more fixes will come soon.
Reviewed by: ache, silence at -audit & -developers
|
#
80743 |
|
31-Jul-2001 |
mp |
Only pull in the MD files if they exist. This allows for progressive implementation and compilation when bringing up a new architecture.
|
#
76613 |
|
15-May-2001 |
ru |
Add new, from scratch implementation of hsearch() et al that actually works.
Obtained from: NetBSD MFC after: 1 month
|
#
75864 |
|
23-Apr-2001 |
ache |
Add sranddev.3 to MLINKS
|
#
74870 |
|
27-Mar-2001 |
ru |
MAN[1-9] -> MAN.
|
#
74268 |
|
14-Mar-2001 |
dd |
Make tdelete(3), tfind(3), and twalk(3) links to tsearch(3).
Approved by: nik
|
#
73152 |
|
27-Feb-2001 |
obrien |
Impliment the ISO-C99 strto[u]ll() and rewrite strto[u]q() in terms of it.
|
#
67876 |
|
29-Oct-2000 |
eivind |
Back out previous commit (MLINK malloc.conf.5 -> malloc.3). This did not work correctly with whatis(1).
Issue brought up by: mpp
|
#
67864 |
|
29-Oct-2000 |
eivind |
Add link malloc.conf.5 -> malloc.3
|
#
62321 |
|
01-Jul-2000 |
alfred |
bring in binary search tree code.
Obtained from: NetBSD
|
#
55032 |
|
23-Dec-1999 |
bde |
Fixed missing installation of a link to rand_r.3.
|
#
50476 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
39322 |
|
16-Sep-1998 |
imp |
Fix style problems noted by Bruce: o No copyright on reallocf. o Order makefile list correctly. o indent reallocf properly.
|
#
39191 |
|
14-Sep-1998 |
imp |
Add reallocf to the library. This function is simliar to realloc, but when it returns NULL to indicate failure, it will also free the memory that was passed to it, if that was non-null.
This does not change the semantics of realloc.
A second commit will be done to commit the conversion of those places in the code that can safely use this to avoid memory leaks when confronted with low memory situations.
Beaten-to-death-but-finally-approved-in: -current
|
#
35837 |
|
08-May-1998 |
jb |
This is a hack to workaround source that is coded to use long variables but also assumes that they are 32-bits. This is one place where I don't think it is appropriate to change 'long' to 'int'. I don't see why the code couldn't be fixed so that using natural long variables does the right thing. It's spaggetti code so it'll take some effort. Obviously NetBSD thought so too because they change 'long' to 'int32_t' etc and left it at that. As a temporary measure FreeBSD/Alpha can use the NetBSD code and put this on the list of things to fix.
|
#
33669 |
|
20-Feb-1998 |
jb |
Change MACHINE references to MACHINE_ARCH.
|
#
30624 |
|
21-Oct-1997 |
bde |
Sorted lists.
|
#
30484 |
|
16-Oct-1997 |
bde |
Handle machine-dependent (stdlib) sources more automatically.
This fixes bugs in the manual handling. abs.[cS] was handled too specially and the wrong (.c) variant for each of div.[cS], labs.[cS] and ldiv.[cS] was added to SRCS. This caused the .c variant to be used if `depend' was made and the .S version to be used otherwise.
|
#
30447 |
|
15-Oct-1997 |
bde |
Removed the subdirectory paths from the definitions of MAN[1-9]. They were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
|
#
27152 |
|
01-Jul-1997 |
phk |
malloc_sysv used before initialized, reported in PR4002 by Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Various cleanup from Keith Bostic
Reinstate calloc() as a separate funtion, in its own source/object file. leave the manpage integrated with malloc.3 and friends. Too many things were broken in this respect.
PR: 4002 Reviewed by: phk Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Submitted by: Keith Bostic <bostic@bostic.com>
|
#
26816 |
|
22-Jun-1997 |
phk |
Integrate calloc with the rest of the gang. Various portability and stylistic cleanups. Kill MALLOC_STATS & the 'D' option. Fix the 'V' option. Major overhaul of the man-page. You milage should not vary.
Reviewed by: Keith Bostic <bostic@bostic.com> Submitted by: Keith Bostic <bostic@bostic.com>
|
#
25401 |
|
03-May-1997 |
jb |
Changed all paths to be relative to src/lib instead of src/lib/libc so that all these makefiles can be used to build libc_r too.
Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too.
Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
|
#
24155 |
|
23-Mar-1997 |
ache |
Add srandomdev.3 link
|
#
23832 |
|
13-Mar-1997 |
peter |
Back out a dubious Lite2 change to "optimise" getcwd() to look at $PWD because it's potentially dangerous (think: symlink races). Move realpath() back to it's original location, and remove getcwd_physical() by renaming it back to getcwd() and zapping the original getcwd wrapper.
Noticed by: bde
|
#
23662 |
|
11-Mar-1997 |
peter |
Merge Lite2 changes
|
#
10818 |
|
16-Sep-1995 |
phk |
``phkmalloc'' Performance is comparable to gnumalloc if you have sufficient RAM, and it screams around it if you don't. Compiled with "EXTRA_SANITY" until further notice. see malloc.3 for more details.
|
#
7388 |
|
26-Mar-1995 |
jkh |
Add the strhash family of routines. They provide a number of features that the db/hash functions don't, and they're much simpler to use for low-overhead string hashing.
|
#
1849 |
|
04-Aug-1994 |
wollman |
First crack at making libc work with the new make macros. It compiles on my machine, and a simple static (genassym) and shared (sysctl) executable both work. Still to be done: RPCand YP merge.
|
#
1574 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1573, which included commits to RCS files with non-trunk default branches.
|
#
1573 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Lib Sources
|