summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2009-04-08nuke extern from func decls. ok millert@Martynas Venckus
2009-01-21_PATH_DRUM is no more.Miod Vallat
2009-01-13Add wcstof(3) and wcstold(3).Mark Kettenis
ok miod@
2009-01-13Add wcstoimax(3) and wcstoumax(3).Mark Kettenis
ok miod@
2008-12-11add __infinityf declaration. (only affects vax). pointed out by miod@Martynas Venckus
2008-12-09expose extended-precision definitions. ok millert@Martynas Venckus
2008-12-09Commit requested by marco:Otto Moerbeek
Add nonblock support for xdrrecs ok millert blambert & otto; from NetBSD. libc bump to follow soon.
2008-12-09fix inet_ntop(3) prototype; ok millert@ libc to be bumbed very soonOtto Moerbeek
2008-12-04Don't have anything after #endif.Ray Lai
Caught by pcc. OK martynas
2008-10-27rename libsa to libsndioAlexandre Ratchov
requested by many, "just go for it" deraadt@
2008-10-26no cookie for ratchov, committed things without running make build.Marc Espie
2008-09-09sigh, gamma got lostMartynas Venckus
2008-09-07- replace dtoa w/ David's gdtoa, version 2008-03-15Martynas Venckus
- provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
2008-09-06Rename SHA256/384/512 API to avoid namespace collisions withDamien Miller
forthcoming OpenSSL update. Function names lose their underscore (SHA256_Init => SHA256Init) and the various SHA256_CTX, SHA512_CTX are merged into a single SHA2_CTX that is used for all these hashes. ok millert@ manpage bits jmc@ "please commit" deraadt@
2008-08-22Don't install libbfd and libopcodes and the associated headers.Mark Kettenis
They really are just a way to share common code between gdb and binutils (which in the GNU world are seperate packages). The developers (and I'm one of them) make absolutely no effert to maintain a stable API/ABI. If ports people really need libbfd or libopcodes, they should just package a suitable version. ok weingart@, deraadt@
2008-07-24unXXX prototypes: exp2, remquo, nan, exp2f, remquof, nanfMartynas Venckus
2008-07-24- add NAN definition (except on VAX)Martynas Venckus
- add C99 real-floating macros fpclassify isfinite isinf isnan isnormal signbit - add C99 macros isgreater isgreaterequal isless islessequal islessgreater isunordered - add function prototypes, __fpclassify __fpclassifyf __fpclassifyl __isfinite __isfinitef __isfinitel __isinf __isinfl __isnan __isnanl __isnormal __isnormalf __isnormall __signbit __signbitf __signbitl ok millert@
2008-07-22- added HUGE_VALF, HUGE_VALL, INFINITY, FP_INFINITE, FP_NAN,Martynas Venckus
FP_NORMAL, FP_SUBNORMAL, FP_ZERO, FP_ILOGB0, FP_ILOGBNAN definitions, per C99 - classify functions into sections, add missing definitions, add and some '#if 0' functions, and long double definitions, so we see what's needed to be done - other stuff is XXX'd, and will be uncommented soon ok millert@
2008-07-21- add proper double_t and float_t definitions for each archMartynas Venckus
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per C99). remove from math.h, and add proper definitions in float.h ok millert@
2008-07-16infnan always returned wrong values, because compiler assumed itMartynas Venckus
returns integer value, so add missing prototype ok millert@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-25Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112Todd C. Miller
now that we support all the _r functions required by POSIX 1003.1-2001. Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
2008-06-25Add _PW_BUF_LEN define and use it instead of hard-coding 1024 forTodd C. Miller
the buffer size. OK deraadt@
2008-06-24prototypes for getpwnam_r() and getpwuid_r()Theo de Raadt
2008-06-24remove recalloc; sloppy me; ok deraadt@Otto Moerbeek
2008-06-20Remove obsolete (and erroneous) #if statement that caused all compilersAnders Magnusson
except for gcc to get the wrong prototype. Ok millert@
2008-06-13implement xdr_int64_t, xdr_u_int64_tNikolay Sturm
from NetBSD
2008-06-13Add strtof() to libc, some ports seem to like it. Currently it's a simpleLandry Breuil
call to strtod() with bounding check. Discussed with pyr@ and otto@ ok otto@ deraadt@
2008-06-11tgamma and tgammafMartynas Venckus
2008-06-04olf support starts to die (easy stuff first); ok miodTheo de Raadt
2008-04-29Remove duplicate psignal(3) and sys_siglist definitions. signal.hKurt Miller
is the correct place for them and nothing gets them from here in base/xenocara/ports. no objection millert@ okay kettenis@
2008-04-29Make sure sys_signame and sys_siglist are wrapped in __BEGIN_DECLS.Mark Kettenis
Needed to tell pedantic C++ compilers these symbols have 'C' linkage. ok kurt@
2008-04-24- correct brk(2) prototype and man page to match implementation and POSIX.Kurt Miller
brk(2) returns an int value not a void *. brk(2) returns 0 upon success not a pointer to the new end of memory. okay millert@, kettenis@, deraadt@
2008-04-23Import MPLS (Multi Protocol Label Switching)Esben Norby
MPLS support partly based on the (abandoned?) AYAME project. Basic LSR (Label Switch Router) functionality is present, but not fully functional yet. It is currently possible to insert entries in the LIB (Label Information Base) with route(8), but setting the operation type is not supported yet. Imported to allow more people to work on this in the coming weeks. ok claudio@ laurent@ dlg@
2008-03-22Get rid of 3 extra leading spaces. ok deraadt@Matthieu Herrb
2008-03-16diff from djm@ committed at his request:Otto Moerbeek
introduce two new APIs for requesting strong random numbers: arc4random_buf() - fill an arbitrary memory range with random numbers arc4random_uniform() - return a uniformly distributed random number below a specified upper bound, avoiding the bias that comes from a naive "arc4random() % upper_bound" construction. these mirror similarly-named functions in the kernel; lots of discussion deraadt@ mcbride@
2008-02-10Define _POSIX_TZNAME_MAX to 6 if the user requested POSIX 1003.1-2001.Mark Kettenis
ok millert@
2008-02-02Define _POSIX_HOST_NAME_MAX and HOST_NAME_MAX.Mark Kettenis
ok krw@, laurent@
2007-11-24some spelling fixes from Martynas VenckusJason McIntyre
2007-10-19install includes from libexpatTheo de Raadt
2007-10-02pcc knows _Bool. ok beck@ miod @millertOtto Moerbeek
2007-09-03add recaloc(3)Todd C. Miller
2007-09-03add memrchr(3)Todd C. Miller
2007-06-06no longer make include/netipx dirTheo de Raadt
2007-06-05_FD_LOCK/UNLOCK() is libpthread specific and not needed for librthread, soKurt Miller
isolate its usage to libpthread only and replace with generic non-static mutex support in the one place it is needed: - remove _FD_LOCK/UNLOCK from lseek and ftruncate in libc and make the functions weak so that libpthread can override with its own new versions that do the locking. - remove _thread_fd_lock/unlock() weak functions from libc and adjust libpthread for the change. - add generic _thread_mutex_lock/unlock/destroy() weak functions in libc to support non-static mutexes in libc and add libpthread and librthread implementations for them. libc can utilize non-static mutexes via the new _MUTEX_LOCK/UNLOCK/DESTROY() macros. Actually these new macros can support both static and non-static mutexes but currently only using them for non-static. - make opendir/closedir/readdir/readdir_r/seekdir/telldir() thread-safe for both thread libraries by using a non-static mutex in the struct _dirdesc (typedef DIR), utilizing it in the *dir functions and remove remaining and incorrect _FD_LOCK/UNLOCK() use in libc. - add comments to both thread libraries to indicate libc depends on the current implementation of static mutex initialization. suggested by marc@ - major bump libc and libpthread due to function removal, structure change and weak symbol conversions. okay marc@, tedu@
2007-06-03Add ffs2 support to dump/restore. From FreeBSD with some NetBSD changes.Todd C. Miller
With help from otto@
2007-05-29based on a diff from Matt Provost: allow printing of ldd informationJason Wright
on libraries themselves. Works by setting up the debugging flags then calling dlopen() to do the heavy lifting. ok drahn
2007-05-05Provide hook so that rthreads can provide a spinlock to protect from racesDale Rahn
in lazy binding. ok art@, kurt@
2007-03-17allow extern inline stuff to proceed unchanged thru the mess that theMarc Espie
combined GCC and ISO committees managed to make out of it. With this, gcc >= 4.3 can grok its way through it correctly. okay kettenis@, with some help figuring stuff out.
2007-03-14do the adjustment of arbitrary 128 -> BLF_MAXUTILIZED in userland as well,Alexander von Gernler
also discussed on tech@ a while ago. ok pedro@ tedu@ thib@