summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2011-04-24fenv for shMartynas Venckus
2011-04-24Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.Stefan Sperling
2011-04-24remove STANDARDS section, as this function does not conform to any;Jason McIntyre
prompted by deraadt original issue (mandoc has no support for \*(Px) reported by Matthew Dempsky; kristaps and ingo are looking at whether to add support for the Px or not;
2011-04-24Add fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, and wprintf to libc.Stefan Sperling
Based on our vfprintf etc. implementations. Wide character parts based on NetBSD but with lots of macros expanded. Minor bump for libc. ok kettenis espie
2011-04-24fenv for i386, and sparc64; from matthew@Martynas Venckus
not reviewed yet, but it's better to track changes in cvs
2011-04-24fenv for armMartynas Venckus
2011-04-23Implement C99 floating-point environment for Alpha.Martynas Venckus
Delivering FPE with non-masked exceptions doesn't work on Alpha; I suspect there's a bug in the kernel trap handler. FE_INEXACT is intentionally left out of FE_ALL_EXCEPT; since the inexact exception is not being maintained. Otherwise it will lead to the bogus results.
2011-04-23Enable the SIGWINCH handler in ncurses.Nicholas Marriott
Prompted by mail from Mikolaj Kucharski on tech@ and discussion with deraadt@ and millert@. A library installing signal handlers without being asked is seriously wrong but it appears quite a few applications now depend on the ncurses SIGWINCH and it looks to be safe. Safer than the other signal handlers it installs (apparently without request... boke). ok millert
2011-04-23Merge the same fix for hppa64; reminded by miod@:Martynas Venckus
Sticky flags are in the left half of fpsr;  not the undefined bits in the right half.  OK miod@.
2011-04-23Do not document FP_X_IOV--it's an alpha-only thing. Similarly likeMartynas Venckus
we don't document the i386/amd64 denormalization exception.
2011-04-22Sticky flags are in the left half of fpsr; not the undefined bitsMartynas Venckus
in the right half. OK miod@.
2011-04-22Clarify SO_SPLICE semantics in setsockopt(2).Alexander Bluhm
ok jmc@
2011-04-21fenv for amd64; from matthew@Martynas Venckus
feedback & ok guenther@, matthew@
2011-04-21fenv for hppaMartynas Venckus
2011-04-21Make this code actually compile on hppa64.Joel Sing
ok kettenis@
2011-04-21Rework setjmp so that it works for hppa64.Joel Sing
ok kettenis@
2011-04-21Provide reasonable gdtoa headers.Joel Sing
ok kettenis@
2011-04-21Make SYS.h actually compile on hppa64.Joel Sing
ok kettenis@
2011-04-21Don't use 'n' for the length of multibyte chars, because it is the lengthYASUOKA Masahiko
of wide characters. This will fix a problem of uim-fep pre-edit display. OK stsp@
2011-04-20fenv for m68kMartynas Venckus
2011-04-20Trick GCC optimizer into clipping any extra precision by making wMartynas Venckus
volatile; a similar hack was already being used in lrintf(). This will make rint and {,l}lrint family functions actually work; i.e. on m68k rintf(8.6F) was 8.625.
2011-04-20Implement correct prologue and epilogue for hppa64.Joel Sing
ok kettenis@
2011-04-19Fix spacing nit.Matthew Dempsky
ok jmc@
2011-04-19Do not over-specify the return value.Ingo Schwarze
Instead, just document what POSIX requires. Reminded of the problem by joachimschipper dot nl, Feedback from matthew@, krw@, deraadt@, and ok deraadt@.
2011-04-18slightly cleanup by separating socket-specific code fromAlexandre Ratchov
protocol specific code. No behaviour change
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
2011-04-17The {,l}lround{,f} implementations are based on {,l}lrint{,f},Martynas Venckus
therefore affected by the same bugs I've fixed a week ago. The high part was being clipped for all exponents greater or equal to 52. Fix this to use RESTYPE_BITS instead; also make the code consistent.
2011-04-1720 -> DBL_FRACHBITSMartynas Venckus
2011-04-16Document what happens when x equals y.Martynas Venckus
2011-04-16C99: "The nextafter functions return y if x equals y."Martynas Venckus
Therefore, in nextafter() and nextafterf(): - if(x==y) return x; /* x=y, return x */ - if(x==y) return y; /* x=y, return y */ This matters for negative zero inputs of x or y.
2011-04-16remove aucat(1) and midicat(1) socket paths from the FILES sections.Alexandre Ratchov
Besides being wrong, they are part of sndio internals and don't need to be exposed in such a high level man page.
2011-04-16for unix domain socket addresses use AUCAT_PATH and MIDICAT_PATHAlexandre Ratchov
macros instead of hardcoded strings. No object change
2011-04-16Since aucat supports any parameter combination sio_getcap() doesn'tAlexandre Ratchov
need to query the server for supported parameters. So stop using the AMSG_GETCAP message, and remove it completely from the aucat protocol.
2011-04-16Make aucat audio and midi backends share the same code to communicateAlexandre Ratchov
with the server. As we're at it use the same protocol for midi and audio. Now, both audio and midi code use the same SNDIO_DEBUG environment variable to turn on/off DPRINTF's.
2011-04-15Remove wrong check.Ariane van der Steldt
HPPA longjmp tests that the env parameter < the current stack pointer. The test relies on the stack being at the end of the memory space. This test is wrong for a couple of reasons: - the main stack is at 0x78000000-0x80000000, but allocations between 0x80000000-0xc0000000 are available to the program, - pthread stacks may be at any place in the address space, allowing a heap-allocated env parameter to fail the check. ok deraadt@, kettenis@, guenther@ at least
2011-04-15p_sigacts is NULL for zombies, so FILL_KPROC() and kvm_proclist() havePhilip Guenthe
to handle that with the sigacts change. problem observed and diagnosed by claudio@ and kettenis@
2011-04-15wcwidth() must return -1 if the character is not printable.Stefan Sperling
Diff from Alexander Polakov. OK phessler@
2011-04-15Correct the sharing of the signal handling state: stuff that shouldPhilip Guenthe
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
2011-04-13Unrevert the FS.base diff: the issues were actually elsewherePhilip Guenthe
Additional testing by jasper@ and pea@
2011-04-12Use mio_<backend>_ prefix for private midi-related functions and putAlexandre Ratchov
them in files named mio_<backend>.c No behaviour change.
2011-04-11document MAP_TRYFIXED. short version: don't use it. prodded by deraadt.Ted Unangst
2011-04-10The {,l}lrint{,f} functions avoid to shift results by more than 31Martynas Venckus
bits, because "behavior is implementation defined in this case". However, this is wrong; behavior is undefined if the right operand is greater than or equal to the width of the promoted left operand. This broke {,l}lrint{,f} (64-bit architectures), and llrint{,f} (32-bit architectures) where results are actually 64-bit values. The high part was clipped for all exponents greater or equal to 52. Fix this to use RESTYPE_BITS instead; {,l}lrint{,f} are now able to pass our regression tests, and I think are right now.
2011-04-10Pull more headers to avoid warnings about structs being undefined.Miod Vallat
2011-04-10Pull more headers to avoid warnings about structs being undefined.Miod Vallat
2011-04-1020 -> DBL_FRACHBITSMartynas Venckus
2011-04-10The assumption that |1.0 * 2^exp| = 0, exp < -1 cannot be made whenMartynas Venckus
we round towards -inf or +inf.
2011-04-10Revert bulk of the FS.base diff, as it causes issues on some machinesPhilip Guenthe
and the problem isn't obvious yet.
2011-04-09On the a.out architectures, WEAK_ALIAS does an implicit _C_LABEL()Theo de Raadt
ok miod
2011-04-09More NULL -> 0 fallout.Miod Vallat
2011-04-08a_syms is an int, not a pointer; ok miodTheo de Raadt