summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Correct some xrefs/mlinks.Mike Pritchard1996-12-143-2/+7
| | | | Notes: svn path=/head/; revision=20486
* Fixed fiddling with the control word. Use the stack space reserved forBruce Evans1996-12-142-12/+12
| | | | | | | that purpose instead of space below the stack. Notes: svn path=/head/; revision=20447
* Clean up the FPU stack before returning. One stack slot was leaked onBruce Evans1996-12-142-2/+4
| | | | | | | | every call. The damage was sometimes limited by other routines using and freeing stack slots that should have been empty to being with. Notes: svn path=/head/; revision=20445
* Merge Lite2 mods, and -Wall cleaning. undelete(2) cruftSteve Price1996-12-144-8/+28
| | | | | | | | | not yet implemented is protected by a define (BSD4_4_LITE) that should be removed when this call is supported by the kernel. Notes: svn path=/head/; revision=20417
* Fix the fix.Joerg Wunsch1996-12-131-1/+2
| | | | | | | Pointed out by: wollman, bde Notes: svn path=/head/; revision=20398
* Close PR#2198:Jordan K. Hubbard1996-12-132-3/+5
| | | | | | | | | | | | | | | | I've added an installation from optical disk drive facility. This enables FreeBSD to be installed from an optical disk, which may be formatted in "super floppy" style or sliced into MSDOS-FS and UFS partitions. Note: ncr.c should be reviewed by Stefan Esser <se@freebsd.org> and cd.c by Joerg Wunsch <joerg@freebsd.org> before bringing this into 2.2. Submitted-By: Shunsuke Akiyama <akiyama@kme.mei.co.jp> Notes: svn path=/head/; revision=20390
* Don't free the line buffer, since getttynam(3) might still referenceJoerg Wunsch1996-12-121-5/+4
| | | | | | | | | | | it. Closes PR # bin/2196: Bug in src/libc/gen/gettty... Submitted by: davidn@blaze.net.au (David Nugent) Notes: svn path=/head/; revision=20383
* Fix an embarassing and rather obscure incarnation of an uninitializedJoerg Wunsch1996-12-121-1/+1
| | | | | | | | | local variable use. Found by: actually using ascii2addr() :-/ Notes: svn path=/head/; revision=20375
* POSIX.4 defines MAP_FAILED to be the error return from mmap().Alexander Langer1996-12-121-1/+1
| | | | Notes: svn path=/head/; revision=20346
* Don't look for encumbered objects, but encumbered sources.Poul-Henning Kamp1996-12-111-2/+2
| | | | Notes: svn path=/head/; revision=20318
* Get struct ether_addr directly from <net/ethernet.h> rather than pullingGarrett Wollman1996-12-102-8/+4
| | | | | | | | | in lots of unrelated junk from <net/if.h> and <net/if_ether.h>. These functions still aren't prototyped anywhere (but should be in <net/ethernet.h>---got that, Bill?). Notes: svn path=/head/; revision=20288
* Change another reference to host names to domain names, and restore someMike Pritchard1996-12-091-4/+3
| | | | | | | | | changes that were lost. Pointed out by: bde Notes: svn path=/head/; revision=20266
* English pedantry : affect -> effectMike Smith1996-12-091-1/+1
| | | | | | | Submitted by: Daniel O'Callaghan" <danny@panda.hilink.com.au> Notes: svn path=/head/; revision=20232
* Turn POSIX_SAVED_IDS offAndrey A. Chernov1996-12-061-20/+20
| | | | Notes: svn path=/head/; revision=20178
* I asked Bill Paul why _getnetbynis() was only being called with 2 parameters,Jordan K. Hubbard1996-12-061-3/+3
| | | | | | | | | | | | | | | | | and he said: The 3rd agrument is new; looks like it was part of the upgrade to a new BIND with some IPv6 support. The third argument here should be AF_INET. In order for it to be anything else, I'd have to add new NIS functions to support IPv6 lookups. I don't even know what those look like yet. So there ya go, add AF_INET as the 3rd argument to the call. Submitted-by: wpaul Notes: svn path=/head/; revision=20168
* Remove more instances of passing arrays by address when they shouldJordan K. Hubbard1996-12-051-7/+7
| | | | | | | | have simply been passed as arrays. In some cases, casts had even been added to remove the warnings generated by such misuse! Aieee! Notes: svn path=/head/; revision=20164
* Eliminate 3 more examples of gratutiously passing arrays by address.Jordan K. Hubbard1996-12-051-3/+3
| | | | | | | | Everyone please call ParaSoft today and say "I will buy 57 copies of Insure++ tomorrow, but first I want a FreeBSD version." :-) Notes: svn path=/head/; revision=20163
* sethostname() returns int, not long. I could get used to having thisJordan K. Hubbard1996-12-051-2/+2
| | | | | | | | | | copy of insure++, too bad the runtime only works for BSD/OS. :-( Maybe they'll be so impressed by my initial 15 entry bug report for it that they'll take the FreeBSD version more seriously. :-) :-) Notes: svn path=/head/; revision=20162
* _key is a char array and we don't need to pass its address to _buildkey()Jordan K. Hubbard1996-12-051-1/+1
| | | | | | | when buildkey is expecting a char *. Notes: svn path=/head/; revision=20161
* gethostname() returns int, not long. Answered my own question byJordan K. Hubbard1996-12-051-1/+1
| | | | | | | | RTFM'ing. Either both the header files and the man pages are wrong or this code is, and I'll take the majority decision. :-) Notes: svn path=/head/; revision=20160
* make u_char * -> char * conversion explicit.Jordan K. Hubbard1996-12-051-1/+1
| | | | | | | Found-By: insight's "insure++" tool. Notes: svn path=/head/; revision=20159
* The semget man page uses the incorect symbol for alterMike Pritchard1996-12-031-7/+7
| | | | | | | | | access. Closes PR# 1712. Submitted by: Kent Vander Velden Notes: svn path=/head/; revision=20123
* Add support for detecting and hopefully using the passwd.adjunct.bynameBill Paul1996-12-031-13/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NIS map which is present on SunOS NIS servers with the SunOS C2 security hack^Woption installed. I'm convinced that the C2 security option restricts access to the passwd.adjunct.byname map in the same way that I restrict access to the master.passwd.{byname,buid} maps (checking for reserved ports), which means that we should be able to handle passwd.adjunct.byname map correctly. If _havemaster() doesn't find a master.passwd.byname map, it will now test for a passwd.adjunct.byname map before defaulting back to the standard non-shadowed passwd.{byname,byuid} maps. If _pw_breakout_yp() sees that the adjunct map was found and the password from the standard maps starts with ##, it will try to grab the correct password field from the adjunct map. As with the master.passwd maps, this only happens if the caller is root, so the shadowing feature is preserved; non-root users just get back ##username as the encrypted password. Note that all we do is grab the second field from the passwd.adjunct.byname entry, which is designated to be the real encrypted password. There are other auditing fields in the entry but they aren't of much use to us. Also switched back to using yp_order() to probe for the maps (instead of yp_first()). The original problem with yp_order() was that it barfed with NIS+ servers in YP compat mode since they don't support the YPPROC_ORDER procedure. This condition is handled a bit more gracefully in yplib now: we can detect the error and just punt on the probing. Notes: svn path=/head/; revision=20119
* upgrade STANDARDS from POSIX 1003.1-88 to 1003.1-90 using .St macroWolfram Schneider1996-12-0228-91/+100
| | | | | | | | | use ``is expected to conform to'' phrase, not ``conforms to'' Pointed out by: Bruce->NIST-PCTS Notes: svn path=/head/; revision=20097
* Update getdomainname(3) to reflect that it operates onMike Pritchard1996-12-011-11/+13
| | | | | | | | | | domain names and not host names. Pointed out by: bde Obtained from: NetBSD Notes: svn path=/head/; revision=20058
* Improve the Dangerously Dedidcated mode a bit. Not much, but a bit better.Poul-Henning Kamp1996-11-275-65/+57
| | | | Notes: svn path=/head/; revision=19989
* Add rcsid[]Andrey A. Chernov1996-11-271-13/+19
| | | | | | | | | Since locale reading code not resistent against stack overflowing or similar intruder attacks, don't allow PATH_LOCALE env variable action for s-bit programs (non-standard locale path setting) Notes: svn path=/head/; revision=19988
* Add IdAndrey A. Chernov1996-11-261-35/+43
| | | | | | | Optimize/improve recently added locale restoration on failure Notes: svn path=/head/; revision=19971
* Move PATH_LOCALE handling to setlocale.c, simplify locale path building,Andrey A. Chernov1996-11-261-10/+9
| | | | | | | don't treat empty encoding as C encoding Notes: svn path=/head/; revision=19965
* PATH_LOCALE: use this non-standard env variable first time only, i.e.Andrey A. Chernov1996-11-263-72/+98
| | | | | | | | | | | | | | | | | | | strdup() it to prevent unsetenv() or setenv() effects. Check its length to not allow user to overflow internal locale buffer. Move PATH_LOCALE handling code into one place. POSIX: make better stub for LC_MONETARY & LC_NUMERIC, now it check locale directory existance instead of refusing all non-C non-POSIX locales. POSIX treats empty locale env variable as unset variable while our old code treats it as "C" locale, fix it. Implement previous locale restoring, if locale setting fails. Old code assumes success if some of LC_ALL subset is successed even other fails, POSIX treats it as failure with previous locale restoring, fix it. Remove unneccessary length checking in currentlocale() Notes: svn path=/head/; revision=19964
* get_myaddress() wasn't following the interface array properlyPaul Traina1996-11-221-12/+9
| | | | | | | Cannidate for: 2.2 Notes: svn path=/head/; revision=19929
* Oops, we still want to build/install the static libraries.Garrett Wollman1996-11-201-2/+1
| | | | Notes: svn path=/head/; revision=19900
* Copy a slightly modified version of the `libgnumalloc hack' to allowGarrett Wollman1996-11-201-2/+24
| | | | | | | | us to finally phase out the 8K shared version of liby in favor of the 600-byte static one, as was done years ago for libl/libfl. Notes: svn path=/head/; revision=19899
* Fixed execvp() of an empty pathname to fail POSIXly. Previously itBruce Evans1996-11-181-0/+6
| | | | | | | | | | attempted to exec the components of $PATH and it usually set errno to the wrong value. Found by: NIST PCTS Notes: svn path=/head/; revision=19852
* Fixed uninitialized variables for the '/'-in-pathname case in execvp().Bruce Evans1996-11-181-1/+2
| | | | | | | | | | | Garbage in `eacces' caused the wrong errno to be set for non-EACCES errors. Garbage in `etxtbsy' caused a semi-random retry strategy for ETXTBSY errors. Found by: NIST-PCTS. gcc -Wall reported the problem, but -Wall is not enabled for libc. Notes: svn path=/head/; revision=19850
* Oops, back out previous optimization, don't work as I expectAndrey A. Chernov1996-11-141-4/+12
| | | | | | | (lack of sleep) Notes: svn path=/head/; revision=19739
* Since ftpPutURL not use hostname cache, optimize it by always closingAndrey A. Chernov1996-11-141-13/+5
| | | | | | | | connection at the end of operation, so it not leave opened file without a reason. Notes: svn path=/head/; revision=19738
* For functions ftpGetURL, ftpPutURL, ftpLogin it was impossible to knowAndrey A. Chernov1996-11-144-20/+44
| | | | | | | | | | | | | | | | | | | | | | | FTP error return code because 1) They return NULL, it means that ftpErrno can't be used because it takes file pointer 2) They don't have FILE-type argument as f.e. ftpGet/ftpPut to use it for ftpErrno instead. For that functions I add yet one int* type argument to store FTP error return code. It is impossible to add some global variable for that reason, because user can have multiply FTP connections opened at the same time. So, interface changed, major number bumped. Userland changes will follows. Minor bugfixes, the code: Forget to close file in few places, when failure occurse Forget to NULL cached host name, multiply free is possible Notes: svn path=/head/; revision=19731
* Oops, forget the fact that several ftp connections can be activeAndrey A. Chernov1996-11-142-10/+6
| | | | | | | | | at the same time, so add new con_state to avoid QUIT recursion Still should go to 2.2 Notes: svn path=/head/; revision=19728
* 1) Don't allow endless recursion in ftp_close when it attempts toAndrey A. Chernov1996-11-141-2/+8
| | | | | | | | | | | send QUIT to closed connection. 2) Preserve login failure code, don't overwrite it with ftp_close code Should go to 2.2 Notes: svn path=/head/; revision=19727
* Slight rewording of the BUGS section.Alexander Langer1996-11-131-4/+4
| | | | Notes: svn path=/head/; revision=19725
* Parameters for localtime_r() and gmtime_r() definitions changed.Jeffrey Hsu1996-11-111-8/+8
| | | | | | | | Parameters for pthread_getspecific() call changed. pthread_keycreate() renamed to pthread_key_create(). Notes: svn path=/head/; revision=19636
* Parameters pthread_getspecific() changed.Jeffrey Hsu1996-11-111-1/+1
| | | | Notes: svn path=/head/; revision=19635
* Add pthread_mutexattr_init() and pthread_mutexattr_setkind_np().Jeffrey Hsu1996-11-116-0/+366
| | | | Notes: svn path=/head/; revision=19633
* Add uthread_attr_init.c, uthread_attr_setstacksize.c, uthread_mattr_init.c,Jeffrey Hsu1996-11-113-3/+21
| | | | | | | uthread_mattr_kind_np.c, uthread_multi_np.c, and uthread_single_np.c. Notes: svn path=/head/; revision=19632
* Moved enum pthread_mutextype to pthread.h.Jeffrey Hsu1996-11-113-18/+24
| | | | | | | Add pthread_mutexattr_default definition. Notes: svn path=/head/; revision=19631
* Make pthread_getspecific() compliant with the final IEEE pthreadsJeffrey Hsu1996-11-113-27/+27
| | | | | | | specification: return parameter passing changed. Notes: svn path=/head/; revision=19630
* kvm_malloc:Andrey A. Chernov1996-11-111-3/+3
| | | | | | | | | | When malloc fails. don't try to memset NULL pointer, it cause core dump Replace malloc+memset with calloc, theoretically it can do some optimization of zeroing process internally Improve error diagnostic Notes: svn path=/head/; revision=19629
* Merge from the 2.2 branch: describe MNT_FORCE for mount(2).Joerg Wunsch1996-11-101-0/+3
| | | | Notes: svn path=/head/; revision=19601
* Added to MNT_FORCE option description after seeing Bruce's commit messageDavid E. O'Brien1996-11-101-3/+24
| | | | | | | | | | | | dealing w/the fixit floppy. Also added the MNT_RELOAD, MNT_WANTRDWR, MNT_ASYNC, MNT_NOATIME, MOUNT_UNION flags. Someone might want to check my description of MNT_RELOAD. 2.2-R candidate. Not a 2.1.6-R candidate -- some current flags aren't in 2.1.5-R's version. Notes: svn path=/head/; revision=19595