summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* getnetid() crashes if no /etc/netid file is present (it tries to fclose()Bill Paul1997-06-121-1/+2
| | | | | | | a FILE * handle that wasn't really open). Notes: svn path=/head/; revision=26583
* Add yet an option, this time on how to deal with malloc(0) and realloc(ptr.0)Poul-Henning Kamp1997-06-122-8/+27
| | | | | | | Prompted by: X11 & XFree86 Notes: svn path=/head/; revision=26579
* Style optimization in newly added POSIX range []] conformance, redoAndrey A. Chernov1997-06-071-6/+6
| | | | | | | 'for' loop as do...while and remove variable unneded now Notes: svn path=/head/; revision=26492
* Add missing FNM_PERIOD check for '[' rangeAndrey A. Chernov1997-06-061-4/+10
| | | | | | | | Don't treat !^ as first characters in the range, just as negate sign [/] never match if FNM_PATHNAME Notes: svn path=/head/; revision=26486
* 1) Now conforms POSIX.2 2.8.3.2 requirements about []] patternAndrey A. Chernov1997-06-061-11/+35
| | | | | | | 2) Treat unclosed [ range in pattern as regular characters (bash style) Notes: svn path=/head/; revision=26484
* Bring back nanosleep from the cold.John Birrell1997-06-043-3/+3
| | | | | | | | | | | | | The addition of the nanosleep syscall was correctly added to libc/sys/Makefile so that it is renamed as _thread_sys_nanosleep(). This syscall is one of those that libc_r has to re-implement because the only behaviour is to block the process. So libc_r just ignores the fact that a nanosleep syscall exists and goes its own way - as it has done all along .... and now it does again. And now a simple program can sleep again. Phew. Notes: svn path=/head/; revision=26445
* Fix mutex initialization.John Birrell1997-06-041-6/+4
| | | | | | | | | | | | | | | | Malloc cannot use pthread_mutex_init() to initialize a mutex because the mutex initialization process does a malloc! libc_r internals skip the malloc and assign an initializer to a static structure and point the opaque type (pthread_mutex_t in this case) to that structure. This is done on the assumption that the mutex will never be destroyed. This style of initialization is only valid inside libc_r because the structure that is assigned is opaque to the user. This fix allows a simple program to get to main() again. 8-) Notes: svn path=/head/; revision=26444
* Fix the man page's title (.Dt).Masafumi Max NAKANE1997-06-021-1/+1
| | | | | | | (It has been ``SKEY.ACCESS''.) Notes: svn path=/head/; revision=26386
* Re-activate the nanosleep style using code, but with the signal handlingPeter Wemm1997-06-022-110/+2
| | | | | | | | | | | | | semantics of the old sleep for compatability with a few decades of expected side effects. Apache breaks if we just use nanosleep() for some reason, here we use a new signanosleep() syscall which is kinda like a hybrid of sigsuspend and nanosleep.. Reviewed by: ache (and tested on his apache that was failing when sleep used plain nanosleep) Notes: svn path=/head/; revision=26385
* Submitted by: Whistle Communications (archie Cobbs)Julian Elischer1997-06-025-6/+46
| | | | | | | | | | | | | | | | | | | | | These changes add the ability to specify that a UFS file/directory cannot be unlinked. This is basically a scaled back version of the IMMUTABLE flag. The reason is to allow an administrator to create a directory hierarchy that a group of users can arbitrarily add/delete files from, but that the hierarchy itself is safe from removal by them. If the NOUNLINK definition is set to 0 then this results in no change to what happens normally. (and results in identical binary (in the kernel)). It can be proven that if this bit is never set by the admin, no new behaviour is introduced.. Several "good idea" comments from reviewers plus one grumble about creeping featurism. This code is in production in 2.2 based systems Notes: svn path=/head/; revision=26360
* Add xref to signanosleep(2)Peter Wemm1997-06-011-0/+1
| | | | Notes: svn path=/head/; revision=26340
* Doc signanosleep, add to linksPeter Wemm1997-06-012-4/+28
| | | | Notes: svn path=/head/; revision=26339
* Update the sleep(3)/usleep(3) code to use signanosleep(2) if compiled withPeter Wemm1997-06-012-17/+117
| | | | | | | | | | -DUSE_NANOSLEEP. Also, seperate the code for _THREAD_SAFE so that it uses the simpler threaded nanosleep() call in libc_r.. We don't go to the same extremes for emulating traditional sleep semantics (ie: eating any SIGALRM that might happen) which things like apache seem to depend on. Notes: svn path=/head/; revision=26338
* Generate signanosleep(2) syscall wrapperPeter Wemm1997-06-011-2/+3
| | | | Notes: svn path=/head/; revision=26337
* sysctlbyname allows acces to sysctl variables by name.Poul-Henning Kamp1997-05-302-2/+35
| | | | | | | | | | The manpage has been sent to linquistic decontamination and will arrive when released from the quarantine Reviewed by: peter Notes: svn path=/head/; revision=26285
* Malloc flag X makes malloc behave like the canonical xmalloc() wrapper.Poul-Henning Kamp1997-05-302-19/+69
| | | | | | | | | | Untested support for Solaris from John-Mark Gurney Reviewed by: phk Submitted by: (partially) John-Mark Gurney <gurney_j@resnet.uoregon.edu> Notes: svn path=/head/; revision=26284
* Fix other small things that got lost in the merge:Bill Paul1997-05-282-3/+3
| | | | | | | | | | | | | - bde's change to includes section in getrpcent.3 - Lost comment in svc_run.c (the code here was actually the same since I had fixed the 'fds + 1' bug in my stuff at home before mailing Peter about it, but I didn't notce that he'd made a change to the comment right above the changed line). Also pointed out by the ever vigilant: bde Notes: svn path=/head/; revision=26250
* Restore Id.Bill Paul1997-05-281-0/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=26249
* Resolve conflicts.Bill Paul1997-05-2833-84/+425
| | | | | | | | | | | | | | This concludes tonight's entertainment. Once I'm sure I haven't destroyed the world with all these changes, I'll import the utilities. Everything should continue to work as before. If it doesn't let me know. Special thanks to Mark Murray for running a test 'make world' for me to shake out the bugs, which, hopefully, I have fixed. (And there was much rejoicing.) Notes: svn path=/head/; revision=26221
* This commit was generated by cvs2svn to compensate for changes in r26219,Bill Paul1997-05-2820-0/+4989
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=26220
| * Now the biggest step: import the changes to the main RPC code.Bill Paul1997-05-2859-968/+6508
| | | | | | | | | | | | | | | | | | | | Note: you'll need to rinstalkl all your includes before compiling libc the next time you update your sources in order for all this to work. Reviewed by: Mark Murray Notes: svn path=/cvs2svn/branches/WPAUL/dist/; revision=26219
* | Resolve conflicts.Bill Paul1997-05-289-11/+10
| | | | | | | | Notes: svn path=/head/; revision=26218
* | This commit was generated by cvs2svn to compensate for changes in r26216,Bill Paul1997-05-281-0/+163
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=26217
| * Now update the XDR library.Bill Paul1997-05-2810-216/+641
| | | | | | | | | | | | | | Reviewed by: Mark Murray Notes: svn path=/cvs2svn/branches/WPAUL/dist/; revision=26216
* | Fix conflicts (this one is easy: there's just the Makefile).Bill Paul1997-05-281-8/+15
| | | | | | | | Notes: svn path=/head/; revision=26215
* | This commit was generated by cvs2svn to compensate for changes in r26213,Bill Paul1997-05-288-0/+930
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=26214
| * Step three: update librpcsvc for Secure RPC.Bill Paul1997-05-289-11/+946
| | | | | | | | | | | | | | Reviewed by: Mark Murray Notes: svn path=/cvs2svn/branches/WPAUL/dist/; revision=26213
| * This commit was manufactured by cvs2svn to create branch 'WPAUL'.cvs2svn1996-01-1251-0/+11533
| | | | Notes: svn path=/cvs2svn/branches/WPAUL/dist/; revision=13397
* Bump minor version number.Bill Fenner1997-05-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add -I${PCAP_DISTDIR}/bpf to CFLAGS since our <net/bpf.h> is out of date. Remove -Wall and -Dlint. DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 \ -DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1 CFLAGS+=-I. -Dyylval=pcap_lval ${DEFS} SHLIB_MAJOR=2 SHLIB_MINOR=2 # # Magic to grab sources out of src/contrib # PCAP_DISTDIR?=${.CURDIR}/../../contrib/libpcap CFLAGS+=-I${PCAP_DISTDIR} -I${PCAP_DISTDIR}/lbl -I${PCAP_DISTDIR}/bpf .PATH: ${PCAP_DISTDIR} .PATH: ${PCAP_DISTDIR}/bpf/net beforeinstall: .for i in pcap.h pcap-namedb.h ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${PCAP_DISTDIR}/$i \ ${DESTDIR}/usr/include .endfor tokdefs.h grammar.c: grammar.y ${YACC} ${YACCFLAGS} -d ${PCAP_DISTDIR}/grammar.y mv y.tab.c grammar.c mv y.tab.h tok/home/ncvs/CVSROOT/commitcheck Notes: svn path=/head/; revision=26179
* Use ${DESTDIR} correctly in front of absolute paths.Satoshi Asami1997-05-233-7/+7
| | | | Notes: svn path=/head/; revision=26047
* Hook in alias library.Brian Somers1997-05-231-1/+1
| | | | Notes: svn path=/head/; revision=26029
* Create the alias library. This is currently only used byBrian Somers1997-05-238-0/+3984
| | | | | | | | | | ppp (or will be shortly). Natd can now be updated to use this library rather than carrying its own version of the code. Submitted by: Charles Mott <cmott@srv.net> Notes: svn path=/cvs2svn/branches/CMOTT/; revision=26026
* Typo police.Thomas Gellekum1997-05-221-2/+2
| | | | Notes: svn path=/head/; revision=25996
* `it's'' -> `its'' where appropriate and typo fixes in time2posix.3.Eivind Eklund1997-05-192-3/+3
| | | | | | | | | Closes PR docs/3612. Submitted by: Josh Gilliam <soil@quick.net> Notes: svn path=/head/; revision=25932
* Now I really understand the reason for the style.9 rule about not havingPeter Wemm1997-05-191-14/+14
| | | | | | | | | | visible type names in prototypes in user space headers. libutil.h generates warnings with -Wall over the use of "const char *ttyname". It's lucky it wasn't a #define conflict. Is a single '_' prefix acceptable? or does it need to be two? Notes: svn path=/head/; revision=25918
* Update the nanosleep versions to set a SIGALRM handler while sleeping.Peter Wemm1997-05-182-3/+18
| | | | | | | | This appears to appease Apache, although depending on having sleep(3) changing the SIGALRM handler is a bit bogus. Notes: svn path=/head/; revision=25890
* MF2.2: update login_cap api docs.David Nugent1997-05-181-9/+23
| | | | | | | | | | PR: Reviewed by: Submitted by: Obtained from: Notes: svn path=/head/; revision=25888
* if nanosleep returns too early, loop. usleep() does not have a returnPeter Wemm1997-05-171-2/+7
| | | | | | | | | value, it appears as though the semantics of usleep are that it doesn't return early. (only in the nanosleep code - the setitimer code does this already) Notes: svn path=/head/; revision=25871
* round-up non-zero nanoseconds in #ifdef'ed code.Peter Wemm1997-05-171-0/+2
| | | | Notes: svn path=/head/; revision=25870
* Allow conditional use (add -DUSE_NANOSLEEP) to CFLAGS of nanosleep() forPeter Wemm1997-05-172-34/+33
| | | | | | | | the backend of sleep(3) and usleep(3). It's off by default until the problem is fixed. Notes: svn path=/head/; revision=25862
* Temporarily restore old (itimer) sleep variant because new oneAndrey A. Chernov1997-05-171-9/+70
| | | | | | | | | | | | | | | | | | (nanosleep) breaks Apache httpd badly: his childs died quickly after number of requests (SIGPIPE). To reproduce this bug start gdb /usr/local/sbin/httpd run -X and make some bunch of concurent requests (load the server pages from 3 different places f.e.) After short time httpd dies via SIGPIPE. It never dies with old sleep.c In real life it looks like lots of broken images on the pages or missing pages. Lynx says about Network read error, etc. It seems something wrong in nanosleep signal handling. Notes: svn path=/head/; revision=25861
* For non-root uids, consider root-owned files also 'secure' unless otherwiseDavid Nugent1997-05-152-4/+4
| | | | | | | disqualified. Notes: svn path=/head/; revision=25829
* Completely remove #ifdefed out 8859-1 extension, I found it breakAndrey A. Chernov1997-05-141-39/+1
| | | | | | | POSIX, C locale definition, see LC_CTYPE pre-defined table there Notes: svn path=/head/; revision=25797
* Fixed overallocation of _thread_fd_table.Alexander Langer1997-05-133-3/+3
| | | | | | | | PR: 3494 Submitted by: Steve Bauer <sbauer@rock.sdsmt.edu> Notes: svn path=/head/; revision=25795
* #ifdef out C locale extension to 8859-1 encoding, it now stays to ASCIIAndrey A. Chernov1997-05-131-1/+4
| | | | | | | | | | | | | | | | | | back as designed in *BSD Also it not violates current standards but 1) No other Unixes have this feature 2) It broke Kerberos5 (isprint) and God knows what else (not all vendors will agree to treat FreeBSD as special case for support since (1)) 2) Give false localization sense (programs mimic to be 8859-1 localized) which prevents true localization. Notes: svn path=/head/; revision=25776
* Back out previous revision. Shlib version numbers are supposed to beSatoshi Asami1997-05-131-1/+1
| | | | | | | | | | | bumped only 0.1 or 1.0 between releases. (See handbook.) Note that if you have built world in -current in the last 48 hours or so, you should manually remove /usr/lib/libutil.so.2.3 before rebuilding world to cleanse your system. Notes: svn path=/head/; revision=25768
* Add clock_* and nanosleep manpages and links.Peter Wemm1997-05-121-2/+5
| | | | Notes: svn path=/head/; revision=25746
* manpage for nanosleep(2)Peter Wemm1997-05-121-0/+96
| | | | | | | Obtained from: NetBSD (I think jtc@netbsd.org wrote it) Notes: svn path=/head/; revision=25745
* Man pages for clock_{get/set}time() and clock_getres().Peter Wemm1997-05-121-0/+124
| | | | | | | Obtained from: kstailey@openbsd.org via OpenBSD sources Notes: svn path=/head/; revision=25744
* Make uu_* const correct.Brian Somers1997-05-123-12/+12
| | | | | | | Suggested by: joerg Notes: svn path=/head/; revision=25740