summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* One more fix for sysinstall/libdisk to create a device filematusita2001-11-111-6/+10
| | | | | | | | if and only if a target directory is devfs. Previous patch doesn't correct, it's unconditionally avoid to create a device file if kernel knows devfs. PR: 31109
* Fix NO_SENDMAIL knob. When FreeBSD's old BSD version of vacation wasgshapiro2001-11-111-1/+6
| | | | | | | | | | | | | | | replaced with the new version in sendmail's distribution, vacation and the necessary libraries (libsmdb and libsmutil) were changed so they were always compiled. This broke people who didn't checkout src/contrib/sendmail/. I don't know if it's best to think of NO_SENDMAIL as no sendmail sources available or no sendmail binary. It is now the former. Also, remove the sendmail chapter from System Managers Manual (SMM) if NO_SENDMAIL is defined (for similar reasons -- source not available). PR: 31863, 31865 Submitted by: matusita, Joe Kelsey <joe@zircon.seattle.wa.us> MFC after: 3 days
* Fixed namespace pollution related to `err' in libc in the same way as forbde2001-11-116-7/+17
| | | | | | | | `warn'. Now a whole 2 members of the err() family don't cause pollution. This fixes world breakage in awk for NOSHARED worlds. contrib/awk/msg.c has had its own version of err() for a long time, but this somehow didn't cause problems until the update to awk-3.1.0.
* Increment the loop counter.des2001-11-101-0/+1
| | | | | PR: bin/29218 Submitted by: Goran Lowkrantz <goran.lowkrantz@ismobile.com>
* - Put missing prototype for rcmd() in <unistd.h>.ru2001-11-092-58/+66
| | | | | | | - Clean up the manpage. - style(9) rcmdsh.c. Committed from: BSDCon/EU 2k+1 terminal room
* The algorithm that computes the tables used in the BM search algorithm sometimesdcs2001-11-091-1/+2
| | | | | | | | | | access an array beyond it's length. This only happens in the last iteration of a loop, and the value fetched is not used then, so the bug is a relatively innocent one. Fix this by not fetching any value on the last iteration of said loop. Submitted by: MKI <mki@mozone.net> MFC after: 1 week
* Note that the manpage is incorrect about the vector argument.peter2001-11-091-0/+3
|
* kern.ps_arg_max_cache is a long, not an int. I believe this is half ofpeter2001-11-081-1/+1
| | | | | | what broke ps on ia64. It probably also broke on alpha, but the fallback method of using lseek/read on /proc/*/mem to read ps_strings seems to work there. It doesn't on ia64 yet.
* Fix vendor ID's.obrien2001-11-0712-36/+60
|
* rcsid[]->__FBSDIDobrien2001-11-0755-248/+95
|
* Don't ignore unknown characters. The previous code treated a line like:fenner2001-11-072-3/+5
| | | | | | | | | | | | hosts:!!!!!!!!@@@@@$%^&*()()*$(files{}{}|||++!)(dns exactly the same as: hosts: files dns Recover from parse errors by looking for the end of a line; this allows entries without errors to still be parsed even if there is an erroneous entry earlier in the file.
* - Change the f_isdir field of struct file to be a flags field and twojhb2001-11-061-13/+54
| | | | | | | | | new flags: F_ROOTDIR and F_RR (Rock Ridge present). - Cache the SUSP LEN_SKP parameter in struct file as well. - If we open() '/', then force a read of the directory's contents so we can examine the directory record of '.' to see if Rock Ridge is present. - If Rock Ridge extensions are present, lookup Rock Ridge names in readdir().
* - Add a simple SUSP parser.jhb2001-11-061-8/+154
| | | | | - Use the SUSP parser to detect Rock Ridge (RRIP) extensions and to look up alternate names when opening files.
* Switch to using ANSI function declarations and add missing functionjhb2001-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.
* Add a note explaining why CLOCKS_PER_SEC isn't 1000000.dwmalone2001-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>
* - There is no such thing as a socket structure. sockets are integers.jhb2001-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
* gamma(x) actually returns \log(|\Gamma(x)|), so correct the mandwmalone2001-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>
* Describe handling of NULLs passed to pthread_setcancelstate().murray2001-11-052-4/+20
| | | | | PR: docs/31745 Submitted by: Andrew <andrew@ugh.net.au>
* Document ENETDOWN.dd2001-11-051-0/+2
| | | | | PR: 31436 Submitted by: Milon Papezik <milon.papezik@oskarmobil.cz>
* malloc and calloc do not free memory.dd2001-11-051-2/+3
| | | | | PR: 31365 Submitted by: SUZUKI Koichi <koich@cac.co.jp>
* Mark up NULL in .Dv.dd2001-11-042-2/+6
| | | | | PR: 31747 Submitted by: <andrew@ugh.net.au>
* Make strtod.c work on Alpha as well. strtod.c has got locale support,peter2001-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.
* Slightly closer to netbsd_strtod.c:peter2001-11-041-11/+12
| | | | | s/IEEE_8087/IEEE_LITTLE_ENDIAN/ s/IEEE_MC68k/IEEE_BIG_ENDIAN/
* Implement fpsetmask() and fpgetmask().dfr2001-11-033-1/+83
|
* cmott@scientech.com -> cm@linktel.netbrian2001-11-039-10/+10
| | | | Requested by: Charles Mott <cmott@scientech.com>
* Do not fail doing rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.a if thepeter2001-11-031-1/+1
| | | | | intermediate directories dont exist. (eg: when building standalone includes, using the beforeinstall target in src/lib)
* Put in an attempt at stack trace/unwind records.peter2001-11-031-0/+8
|
* Do not ``build'' (ie remove, and put in stub libraries) for libresolvpeter2001-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.)
* Dont fail if ${DESTDIR}${LIBDIR}/ or any of its components dontpeter2001-11-031-1/+2
| | | | exist for the rm -f of libresolv.a
* Dont fail if the intermediate directories in ${DESTDIR}/usr/lib/compat/*peter2001-11-031-1/+1
| | | | dont exist. IMHO, this is kinda silly.
* phkmalloc->evilchecks++;phk2001-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>
* Add notice about early use from malloc.c forbidding malloc use fromphk2001-11-021-0/+5
| | | | this function.
* Add a long-overdue nail to the deprecated /dev/urandom interfacemarkm2001-10-302-2/+2
| | | | | by asking some things that need unpredictable numbers to read /dev/random instead.
* Mostly cosmetic. Use indentation that is reasonably close to otherpeter2001-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
* Update for the new toolchain. ld doesn't provide _GLOBAL_OFFSET_TABLE_peter2001-10-291-1/+8
| | | | | | in 2.11.2, so use a relocatable method of calculating gp. Reviewed by: dfr
* Make the output from assert() look more like the example in the C99mike2001-10-292-6/+6
| | | | | | standard. Requested by: bde
* Add time_to_int(), int_to_time(), time_to_long(), long_to_time().dillon2001-10-281-0/+40
|
* Add routines to convert time_t to/from fixed-bit fields. These routinesdillon2001-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
* sparc64 verions of the crt initialization and finalization files requiredobrien2001-10-282-0/+100
| | | | by the ELF ABI.
* Only provide function information in compile environments that supportmike2001-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
* Restore K&R prototype. Fix other style bugs.mike2001-10-271-2/+3
| | | | Reviewed by: asmodai, bde
* Add missing crti.S and crtn.S files. I have tested these with -staticpeter2001-10-272-0/+92
| | | | linking only. They may require some gp relative tweaks for dynamic use.
* Sync with other platforms.obrien2001-10-271-2/+3
|
* minor style updatingobrien2001-10-273-13/+9
|
* Update for reality and syncing with other FreeBSD platforms.obrien2001-10-271-6/+5
|
* Feh, it helps to include a file other than yourself... wonder howobrien2001-10-271-1/+1
| | | | | | GCC cpp liked that. Properly include the branding info.
* Explicitly use int32_t for on-disk records for pw_change and pw_expire,peter2001-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.
* Remove the -I../libc/${MACHINE_ARCH} that was there solely forpeter2001-10-261-3/+0
| | | | the #include "DEFS.h" that was only used on i386 (which has been fixed).
* Make libc_r check the kern.usrstack sysctl instead of using internalpeter2001-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.
* Style: sort __sys_foo() prototypes, tabs -> spaces, etc.ru2001-10-263-234/+234
|
OpenPOWER on IntegriCloud