summaryrefslogtreecommitdiffstats
path: root/include (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix the handle locking in stdio to use flockfile/funlockfileguenther2009-10-211-19/+19
| | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. ok kurt@, earlier version tested by sthen@ and jj@
* use c calling conventions so that g++ doesn't mangle fpgetmask &martynas2009-09-271-1/+3
| | | | | | | friends' names unbreaking at least enblend-enfuse & inkscape on macppc & alpha reported, tested: ajacoutot@, sthen@ ok: millert@, otto@
* Use __builtin_offsetof for offsetof definition on gcc >= 4jsg2009-09-221-1/+5
| | | | | | | This is required as gcc grows ever more pedantic with old age and cavorts with standards bodies that like to create paradoxes. ok kettenis@ miod@ millert@ espie@
* Don't stop traversing a directory hierarchy if we reach SHRT_MAX,millert2009-08-271-1/+2
| | | | | | | | just stop updating fts_level so we don't overflow it. This allows rm, find, etc to operate on very deep hierarchies. Consumers of fts(3) do need to be aware that the actual level may be larger than fts_level. During the next libc major bump we will make fts_level an int instead of a short. OK deraadt@
* int is big enough to fully represent exponents of all supported fpmartynas2009-07-251-7/+1
| | | | | | | | formats. which even for 80-bit & 128-bit long doubles is only 15 bits. therefore, scalbln, scalblnf, scalblnl are essentially the same as scalbn, scalbnf, scalbnl with bounds checking so that LONG_MIN..INT_MIN, and INT_MAX..LONG_MAX ranges properly raise exceptions & yield correct values. looks good to millert@
* use const qualifier in libsndio, making it slightly more consistentratchov2009-07-251-5/+5
| | | | | with open(2) and write(2) syscalls. from Thomas Pfaff, jakemsr is fine with it
* Currently midi capable programs can control midi hardware, butratchov2009-07-251-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | cannot cooperate with other programs. The aim of this change is to allow any program to send midi data to other programs as they were midi hardware. For instance, this change should solve the longstanding problem of using a midi sequencer with software synthesizers. More precisely: - new midicat(1) utility (actually hardlink to aucat(1)). it creates software midi thru boxes, allowing programs to send midi messages to other programs as they were midi(4) hardware. - new midi api in libsndio (see mio_open(3)), to access midi(4) devices and midicat(1) sockets in a uniform way. - new device naming scheme <service>:<unit>[.<option>], common to audio and midi. - new sndio(7) manual describing concepts and naming The current audio device naming still works, but people having scripts or configuration files containing device names could read the sndio(7) man page and slowly start updating device names. discussed with jakemsr@ and deraadt@, help form jmc@
* Install ntfs includes and add libkvm (fstat) support. ntfs bitsmillert2009-06-241-2/+2
| | | | adapted from NetBSD fstat. OK deraadt@
* Install msdosfs includes; ok krw@millert2009-06-201-2/+2
|
* Add kvm_getfile2 which uses KERN_FILE2 when possible, fallingmillert2009-06-071-1/+3
| | | | back on kmem grovelling for non-live kernels. OK deraadt@
* Add a resolv.conf option to specify the order in which getaddrinfopyr2009-06-041-1/+4
| | | | | | | | | | | PF_UNSPEC queries are made. While there change the default from inet6 first then inet4 to inet4 first then inet6, this prevents the many people with IPv4 only connectivity from constantly trying to contact IPv6 addresses, and also unbreaks many ports who don't use getaddrinfo right. ok deraadt@, plenty of cheering in the room wrt the idea, not loud enough complaining from the v6 crowd.
* Make putenv(), setenv() and unsetenv() standards compliant. Themillert2009-06-031-3/+3
| | | | | | standard explicitly disallows passing setenv a name with a '=' in it but historic BSD behavior is to allow this but to ignore the '=' and anything after it.
* Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@jj2009-06-031-2/+2
|
* - define EAI_OVERFLOW, as per IEEE Std 1003.1-2001(Interpretation #13)jasper2009-06-021-1/+2
| | | | hint from claudio@, ok millert@
* fix confusing comment; ok krw@jacekm2009-05-071-2/+2
|
* move src/lib/libsndio/sndio.h into src/include where other includeratchov2009-04-212-5/+157
| | | | | | files leave. requested by deraadt@, ok miod@
* nuke extern from func decls. ok millert@martynas2009-04-081-230/+230
|
* _PATH_DRUM is no more.miod2009-01-211-2/+1
|
* Add wcstof(3) and wcstold(3).kettenis2009-01-131-1/+6
| | | | ok miod@
* Add wcstoimax(3) and wcstoumax(3).kettenis2009-01-131-1/+9
| | | | ok miod@
* add __infinityf declaration. (only affects vax). pointed out by miod@martynas2008-12-111-1/+2
|
* expose extended-precision definitions. ok millert@martynas2008-12-091-4/+36
|
* Commit requested by marco:otto2008-12-091-1/+2
| | | | | Add nonblock support for xdrrecs ok millert blambert & otto; from NetBSD. libc bump to follow soon.
* fix inet_ntop(3) prototype; ok millert@ libc to be bumbed very soonotto2008-12-091-2/+2
|
* Don't have anything after #endif.ray2008-12-041-2/+2
| | | | | | Caught by pcc. OK martynas
* rename libsa to libsndioratchov2008-10-271-2/+2
| | | | requested by many, "just go for it" deraadt@
* no cookie for ratchov, committed things without running make build.espie2008-10-261-2/+3
|
* sigh, gamma got lostmartynas2008-09-091-3/+1
|
* - replace dtoa w/ David's gdtoa, version 2008-03-15martynas2008-09-074-70/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Rename SHA256/384/512 API to avoid namespace collisions withdjm2008-09-061-39/+35
| | | | | | | | | | 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@
* Don't install libbfd and libopcodes and the associated headers.kettenis2008-08-221-3/+3
| | | | | | | | | | | 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@
* unXXX prototypes: exp2, remquo, nan, exp2f, remquof, nanfmartynas2008-07-241-13/+1
|
* - add NAN definition (except on VAX)martynas2008-07-241-11/+5
| | | | | | | | | | | - 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@
* - added HUGE_VALF, HUGE_VALL, INFINITY, FP_INFINITE, FP_NAN,martynas2008-07-221-111/+343
| | | | | | | | | | 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@
* - add proper double_t and float_t definitions for each archmartynas2008-07-211-6/+4
| | | | | | - 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@
* infnan always returned wrong values, because compiler assumed itmartynas2008-07-161-1/+5
| | | | | returns integer value, so add missing prototype ok millert@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-266-48/+6
| | | | | | | | | 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@
* Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112millert2008-06-251-1/+6
| | | | | now that we support all the _r functions required by POSIX 1003.1-2001. Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
* Add _PW_BUF_LEN define and use it instead of hard-coding 1024 formillert2008-06-251-1/+2
| | | | the buffer size. OK deraadt@
* prototypes for getpwnam_r() and getpwuid_r()deraadt2008-06-241-1/+5
|
* remove recalloc; sloppy me; ok deraadt@otto2008-06-241-2/+1
|
* Remove obsolete (and erroneous) #if statement that caused all compilersragge2008-06-201-6/+2
| | | | except for gcc to get the wrong prototype. Ok millert@
* implement xdr_int64_t, xdr_u_int64_tsturm2008-06-131-1/+3
| | | | from NetBSD
* Add strtof() to libc, some ports seem to like it. Currently it's a simplelandry2008-06-131-1/+2
| | | | | | | call to strtod() with bounding check. Discussed with pyr@ and otto@ ok otto@ deraadt@
* tgamma and tgammafmartynas2008-06-111-1/+3
|
* olf support starts to die (easy stuff first); ok miodderaadt2008-06-042-35/+2
|
* Remove duplicate psignal(3) and sys_siglist definitions. signal.hkurt2008-04-291-3/+1
| | | | | is the correct place for them and nothing gets them from here in base/xenocara/ports. no objection millert@ okay kettenis@
* Make sure sys_signame and sys_siglist are wrapped in __BEGIN_DECLS.kettenis2008-04-291-2/+2
| | | | | | Needed to tell pedantic C++ compilers these symbols have 'C' linkage. ok kurt@
* - correct brk(2) prototype and man page to match implementation and POSIX.kurt2008-04-241-2/+2
| | | | | 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@
* Import MPLS (Multi Protocol Label Switching)norby2008-04-231-3/+3
| | | | | | | | | | | | | 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@