summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* - Add a simple SUSP parser.John Baldwin2001-11-061-8/+154
| | | | | | | | - Use the SUSP parser to detect Rock Ridge (RRIP) extensions and to look up alternate names when opening files. Notes: svn path=/head/; revision=86142
* Switch to using ANSI function declarations and add missing functionJohn Baldwin2001-11-061-31/+15
| | | | | | | | prototypes. I'm tired of getting stupid bugs from changing function parameters and not getting warnings from the compiler when I goof it up. Notes: svn path=/head/; revision=86137
* Add a note explaining why CLOCKS_PER_SEC isn't 1000000.David Malone2001-11-051-1/+10
| | | | | | | | | | While I'm here, "of a second" does not belong to CLOCKS_PER_SEC. PR: 30297 Submitted by: Bernd Luevelsmeyer <bdluevel@heitec.net> Notes: svn path=/head/; revision=86107
* - There is no such thing as a socket structure. sockets are integers.John Baldwin2001-11-051-2/+2
| | | | | | | | | | | | | | I'm assuming that the comment was regarding socket address structures, so correct the comment about pre-zero'ing socket structures to recommend pre-zero'ing socket address structures. - Fix some minor grammar nits. - This isn't directly submitted by the PR below but is related to it and was inspired by it. PR: 31704 Notes: svn path=/head/; revision=86087
* gamma(x) actually returns \log(|\Gamma(x)|), so correct the manDavid Malone2001-11-051-16/+28
| | | | | | | | | | | | | page and add an historical note explaining this. This patch is based on Stephen's. We still need someone to implement tgamma. PR: 28972, 31764 Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu> Notes: svn path=/head/; revision=86077
* Describe handling of NULLs passed to pthread_setcancelstate().Murray Stokely2001-11-052-4/+20
| | | | | | | | PR: docs/31745 Submitted by: Andrew <andrew@ugh.net.au> Notes: svn path=/head/; revision=86074
* Document ENETDOWN.Dima Dorfman2001-11-051-0/+2
| | | | | | | | PR: 31436 Submitted by: Milon Papezik <milon.papezik@oskarmobil.cz> Notes: svn path=/head/; revision=86065
* malloc and calloc do not free memory.Dima Dorfman2001-11-051-2/+3
| | | | | | | | PR: 31365 Submitted by: SUZUKI Koichi <koich@cac.co.jp> Notes: svn path=/head/; revision=86063
* Mark up NULL in .Dv.Dima Dorfman2001-11-042-2/+6
| | | | | | | | PR: 31747 Submitted by: <andrew@ugh.net.au> Notes: svn path=/head/; revision=86050
* Make strtod.c work on Alpha as well. strtod.c has got locale support,Peter Wemm2001-11-041-11/+8
| | | | | | | | | the netbsd_strtod.c file we have does not. More still should be done here, but this works happily on my Alpha. I have not (yet?) changed the Makefile.inc to use this. Notes: svn path=/head/; revision=86043
* Slightly closer to netbsd_strtod.c:Peter Wemm2001-11-041-11/+12
| | | | | | | | s/IEEE_8087/IEEE_LITTLE_ENDIAN/ s/IEEE_MC68k/IEEE_BIG_ENDIAN/ Notes: svn path=/head/; revision=86033
* Implement fpsetmask() and fpgetmask().Doug Rabson2001-11-033-1/+83
| | | | Notes: svn path=/head/; revision=85974
* cmott@scientech.com -> cm@linktel.netBrian Somers2001-11-039-10/+10
| | | | | | | Requested by: Charles Mott <cmott@scientech.com> Notes: svn path=/head/; revision=85964
* Do not fail doing rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.a if thePeter Wemm2001-11-031-1/+1
| | | | | | | | intermediate directories dont exist. (eg: when building standalone includes, using the beforeinstall target in src/lib) Notes: svn path=/head/; revision=85953
* Put in an attempt at stack trace/unwind records.Peter Wemm2001-11-031-0/+8
| | | | Notes: svn path=/head/; revision=85952
* Do not ``build'' (ie remove, and put in stub libraries) for libresolvPeter Wemm2001-11-031-3/+8
| | | | | | | | | | | | | | and/or libgnumalloc on anything but i386. The other platforms post-date this mistake. Do not build libc_r for ia64. There are some fundamental issues that need to be resolved (ie: it cannot use setjmp/longjmp for thread switching, which isn't likely to be fixed soon. libc_r has to be reimplemented using something like makecontext()/swapcontext() etc in order to work in ia64.) Notes: svn path=/head/; revision=85951
* Dont fail if ${DESTDIR}${LIBDIR}/ or any of its components dontPeter Wemm2001-11-031-1/+2
| | | | | | | exist for the rm -f of libresolv.a Notes: svn path=/head/; revision=85950
* Dont fail if the intermediate directories in ${DESTDIR}/usr/lib/compat/*Peter Wemm2001-11-031-1/+1
| | | | | | | dont exist. IMHO, this is kinda silly. Notes: svn path=/head/; revision=85949
* phkmalloc->evilchecks++;Poul-Henning Kamp2001-11-021-3/+13
| | | | | | | | | | | If zero bytes are allocated, return pointer to the middle of page-zero (which is protected) so that the program will crash if it dereferences this illgotten pointer. Inspired & Urged by: Theo de Raadt <deraadt@cvs.openbsd.org> Notes: svn path=/head/; revision=85869
* Add notice about early use from malloc.c forbidding malloc use fromPoul-Henning Kamp2001-11-021-0/+5
| | | | | | | this function. Notes: svn path=/head/; revision=85868
* Add a long-overdue nail to the deprecated /dev/urandom interfaceMark Murray2001-10-302-2/+2
| | | | | | | | by asking some things that need unpredictable numbers to read /dev/random instead. Notes: svn path=/head/; revision=85752
* Mostly cosmetic. Use indentation that is reasonably close to otherPeter Wemm2001-10-292-20/+20
| | | | | | | | | | ia64 *.S files in our tree (eg: locore.s). Put the rest of the args in the .section lines. Reviewed by: dfr Notes: svn path=/head/; revision=85679
* Update for the new toolchain. ld doesn't provide _GLOBAL_OFFSET_TABLE_Peter Wemm2001-10-291-1/+8
| | | | | | | | | in 2.11.2, so use a relocatable method of calculating gp. Reviewed by: dfr Notes: svn path=/head/; revision=85678
* Make the output from assert() look more like the example in the C99Mike Barcroft2001-10-292-6/+6
| | | | | | | | | standard. Requested by: bde Notes: svn path=/head/; revision=85671
* Add time_to_int(), int_to_time(), time_to_long(), long_to_time().Matthew Dillon2001-10-281-0/+40
| | | | Notes: svn path=/head/; revision=85636
* Add routines to convert time_t to/from fixed-bit fields. These routinesMatthew Dillon2001-10-282-1/+62
| | | | | | | | | | | | | | | | | | | | | | serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work. The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038. These routines are intended to be platform and time_t agnostic. MFC after: 1 week Notes: svn path=/head/; revision=85634
* sparc64 verions of the crt initialization and finalization files requiredDavid E. O'Brien2001-10-282-0/+100
| | | | | | | by the ELF ABI. Notes: svn path=/head/; revision=85612
* Only provide function information in compile environments that supportMike Barcroft2001-10-272-9/+17
| | | | | | | | | | the C99 variable __func__ and never for C++. Provide a more meaningful example in the assert(3) manual. Reviewed by: asmodai, bde Notes: svn path=/head/; revision=85607
* Restore K&R prototype. Fix other style bugs.Mike Barcroft2001-10-271-2/+3
| | | | | | | Reviewed by: asmodai, bde Notes: svn path=/head/; revision=85605
* Add missing crti.S and crtn.S files. I have tested these with -staticPeter Wemm2001-10-272-0/+92
| | | | | | | linking only. They may require some gp relative tweaks for dynamic use. Notes: svn path=/head/; revision=85597
* Sync with other platforms.David E. O'Brien2001-10-271-2/+3
| | | | Notes: svn path=/head/; revision=85595
* minor style updatingDavid E. O'Brien2001-10-273-13/+9
| | | | Notes: svn path=/head/; revision=85594
* Update for reality and syncing with other FreeBSD platforms.David E. O'Brien2001-10-271-6/+5
| | | | Notes: svn path=/head/; revision=85593
* Feh, it helps to include a file other than yourself... wonder howDavid E. O'Brien2001-10-271-1/+1
| | | | | | | | | GCC cpp liked that. Properly include the branding info. Notes: svn path=/head/; revision=85592
* Explicitly use int32_t for on-disk records for pw_change and pw_expire,Peter Wemm2001-10-271-2/+5
| | | | | | | | | since that is what we use now and this insulates us from any time_t tweaks here. We can define a record format that uses 64 bit times if/when we need to. Notes: svn path=/head/; revision=85572
* Remove the -I../libc/${MACHINE_ARCH} that was there solely forPeter Wemm2001-10-261-3/+0
| | | | | | | the #include "DEFS.h" that was only used on i386 (which has been fixed). Notes: svn path=/head/; revision=85568
* Make libc_r check the kern.usrstack sysctl instead of using internalPeter Wemm2001-10-269-18/+60
| | | | | | | | | | kernel #defines to figure out where the stack is located. This stops libc_r from exploding when the kernel is compiled with a different KVM size. IMHO this is all kinda bogus, it would be better to just check %esp and work from that. Notes: svn path=/head/; revision=85567
* Style: sort __sys_foo() prototypes, tabs -> spaces, etc.Ruslan Ermilov2001-10-263-234/+234
| | | | Notes: svn path=/head/; revision=85559
* Removed:Ruslan Ermilov2001-10-2610-250/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | - uthread_signal.c; libc_r does not wrap signal() since 1998/04/29. - uthread_attr_setprio.c; it was never connected to the build, and pthread_attr_setprio() does not exist in POSIX. - uthread_sigblock.c and uthread_sigsetmask.c; these were no-ops bloating libc_r's space. pthread_private.h: - Removed prototypes of non-syscalls: send(). - Removed prototypes of unused syscalls: sigpending(), sigsuspend(), and select(). - Fixed prototype of fork(). - MFS: Fixed prototypes of <sys/socket.h> syscalls. Reviewed by: deischen Approved by: deischen, jasone Notes: svn path=/head/; revision=85557
* Remove the internal implementation details of wrapping syscalls,Ruslan Ermilov2001-10-2619-505/+0
| | | | | | | | | which do not match the reality anyway. Approved by: deischen, bde Notes: svn path=/head/; revision=85555
* Compensate for the way that _setjmp aligns the start of jmp_buf.Doug Rabson2001-10-262-5/+23
| | | | Notes: svn path=/head/; revision=85528
* Fix nit in copyright.David E. O'Brien2001-10-261-2/+2
| | | | Notes: svn path=/head/; revision=85524
* Use the new machine-independent versions of crtbegin and crtendDavid E. O'Brien2001-10-262-108/+0
| | | | | | | from the "common" directory. Notes: svn path=/head/; revision=85522
* Minimal libc for sparc64.Jake Burkholder2001-10-2619-0/+874
| | | | | | | Reviewed by: obrien Notes: svn path=/head/; revision=85518
* In > LONG_MAX test use sseek return value and not _offset which can be notAndrey A. Chernov2001-10-251-3/+4
| | | | | | | active. Notes: svn path=/head/; revision=85513
* Don't put an extra space after password prompts, because it violates POLA,Maxim Sobolev2001-10-252-7/+7
| | | | | | | | | makes FreeBSD inconsistent with previous releases and "other unices" as well as with some internal password-asking services (e.g. ftp) within the same release. Notes: svn path=/head/; revision=85485
* Implement va->pa translation for kernel virtual addresses. This isDoug Rabson2001-10-251-30/+59
| | | | | | | untested - it only seems to be used for crashdumps. Notes: svn path=/head/; revision=85478
* Fix bugs in NgSendMsg() and NgSendAsciiMsg() where the wrong tokenArchie Cobbs2001-10-251-2/+2
| | | | | | | | | | value could be returned when the debug level was non-zero. Submitted by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 5 days Notes: svn path=/head/; revision=85456
* Change #include "DEFS.h" to <machine/asm.h>.Peter Wemm2001-10-254-4/+4
| | | | Notes: svn path=/head/; revision=85451
* De-orbit DEFS.h - the other arches do not use it, and it got replacedPeter Wemm2001-10-2442-82/+35
| | | | | | | | | with <machine/asm.h>. Reviewed by: bde Notes: svn path=/head/; revision=85437