summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Hook the extattr_get_file.2 manual page into the build. Add MLINKSDima Dorfman2001-04-011-1/+3
| | | | | | | for extattr_set_file.2 and extattr_delete_file.2. Notes: svn path=/head/; revision=75076
* A manual page for the extattr_get_file, extattr_set_file, andDima Dorfman2001-04-011-0/+154
| | | | | | | | | | extattr_delete_file system calls. Reviewed by: rwatson, ru Approved by: nik Notes: svn path=/head/; revision=75075
* Add spaces around operators.David E. O'Brien2001-04-018-244/+248
| | | | | | | | It's OK, the Project and afford them now -- they aren't as expensive as they used to be. Notes: svn path=/head/; revision=75069
* Correct a comment.David E. O'Brien2001-04-011-1/+1
| | | | Notes: svn path=/head/; revision=75068
* Try to untangle some of the #ifdef spaghetti.David E. O'Brien2001-04-012-12/+12
| | | | | | | | | Also, looking to the future, don't assume all the world is an i386 and all its disk layout brain damage will be repeated by other platforms. So all the diking out if we are an Alpha, becomes adding in if we are an i386. Notes: svn path=/head/; revision=75067
* Add back <err.h> for warn().David E. O'Brien2001-04-011-0/+1
| | | | | | | | (of course it's pretty stupid to call it, as printf doesn't work w/in sysinstall, and sysinstall is the only consumer of libdisk) Notes: svn path=/head/; revision=75066
* Quiet warnings on the Alpha.David E. O'Brien2001-04-012-3/+11
| | | | Notes: svn path=/head/; revision=75065
* Add back <err.h> for warn().David E. O'Brien2001-04-011-0/+1
| | | | | | | | (of course it's pretty stupid to call it, as printf doesn't work w/in sysinstall, and sysinstall is the only consumer of libdisk) Notes: svn path=/head/; revision=75064
* mdoc(7) police: LIBRARY should be before SYNOPSIS.Ruslan Ermilov2001-03-291-2/+2
| | | | Notes: svn path=/head/; revision=74989
* Correct function name: acl_clear_perm -> acl_clear_permsChris D. Faulhaber2001-03-292-4/+4
| | | | Notes: svn path=/head/; revision=74973
* Catch up with a comment that changed in rev1.73 of mount.hBen Smithurst2001-03-291-1/+1
| | | | | | | | PR: 25836 Submitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=74971
* Mostly pick up OpenBSD's rev 1.14 by deraadt@ and millert@.Peter Wemm2001-03-281-42/+39
| | | | | | | | | I've left out a couple of unused args between internal functions. Use MAXPATHLEN, not MAXPATHLEN + 1 in a couple of places. Pass a pointer to the end of the target filename space. Notes: svn path=/head/; revision=74963
* The f_syncreads and f_asyncreads entries are missing from the man page.Poul-Henning Kamp2001-03-281-3/+4
| | | | | | | | | | | This also tidies up the formatting a bit and omits all the padding entries. PR: 25834 Submitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=74952
* Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.Ruslan Ermilov2001-03-281-1/+5
| | | | | | | Approved by: markm Notes: svn path=/head/; revision=74928
* OpenBSD's g_Ctoc() returned a false error when the target buffer wasPeter Wemm2001-03-281-16/+16
| | | | | | | | | exactly the right size. Do it differently - pass a length rather than an end-of-string+1 pointer as this is more convenient anyway. Get rid of the bogus +1's. Notes: svn path=/head/; revision=74921
* Fix g_Ctoc() interface, approximately based on OpenBSD's recent changes.Peter Wemm2001-03-281-14/+36
| | | | | | | | | | Also, set gl_pathv to NULL after we free it, especially when dealing with realloc failures. Obtained from: OpenBSD Notes: svn path=/head/; revision=74918
* o De-uglify IMPLEMENTATION NOTES section by removing unnecessary use ofRobert Watson2001-03-282-4/+2
| | | | | | | .Fx Notes: svn path=/head/; revision=74888
* Add a CLSET_ASYNC command, which allows us to (ab)use the clnt_dg transportBill Paul2001-03-271-3/+19
| | | | | | | | | | | | | | | | | | | | | to make asynchronous RPCs. This is needed to help fix ypbind, which can no longer override the clnt_dg_call() method (formerly the clntudp_call() method) due to all the internal descriptor locking code in TI-RPC. Turning on this flag allows us to send an RPC request, then return immediately, and handle a reply later, rather than being forced to do the request and reply in a single function call. Also fix a byte ordering bug: when clnt_dg_call() increments the XID prior to transmitting a request, it uses the raw value, which is wrong. The XID is stored in network byte order, i.e. big-endian. The CLSET_XID and CLGET_XID commands in clnt_dg_control() use ntohl()/htonl() to get the byte ordering right, but because clnt_dg_call() does not do this, using CLSET_XID/CLGET_XID doesn't actually work, unless you're on a big endian host, which we aren't (yet). Fix clnt_dg_call() to byte swap properly when doing the increment. Notes: svn path=/head/; revision=74879
* Document LOG_CONSOLE.Chris Timmons2001-03-271-0/+2
| | | | Notes: svn path=/head/; revision=74875
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-2762-140/+120
| | | | Notes: svn path=/head/; revision=74870
* give the "netgrent" functions a home in netdb.hAlfred Perlstein2001-03-271-0/+1
| | | | Notes: svn path=/head/; revision=74844
* const'ifyAlfred Perlstein2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74843
* Rewrite of the CAM error recovery code.Kenneth D. Merry2001-03-273-35/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the major changes include: - The SCSI error handling portion of cam_periph_error() has been broken out into a number of subfunctions to better modularize the code that handles the hierarchy of SCSI errors. As a result, the code is now much easier to read. - String handling and error printing has been significantly revamped. We now use sbufs to do string formatting instead of using printfs (for the kernel) and snprintf/strncat (for userland) as before. There is a new catchall error printing routine, cam_error_print() and its string-based counterpart, cam_error_string() that allow the kernel and userland applications to pass in a CCB and have errors printed out properly, whether or not they're SCSI errors. Among other things, this helped eliminate a fair amount of duplicate code in camcontrol. We now print out more information than before, including the CAM status and SCSI status and the error recovery action taken to remedy the problem. - sbufs are now available in userland, via libsbuf. This change was necessary since most of the error printing code is shared between libcam and the kernel. - A new transfer settings interface is included in this checkin. This code is #ifdef'ed out, and is primarily intended to aid discussion with HBA driver authors on the final form the interface should take. There is example code in the ahc(4) driver that implements the HBA driver side of the new interface. The new transfer settings code won't be enabled until we're ready to switch all HBA drivers over to the new interface. src/Makefile.inc1, lib/Makefile: Add libsbuf. It must be built before libcam, since libcam uses sbuf routines. libcam/Makefile: libcam now depends on libsbuf. libsbuf/Makefile: Add a makefile for libsbuf. This pulls in the sbuf sources from sys/kern. bsd.libnames.mk: Add LIBSBUF. camcontrol/Makefile: Add -lsbuf. Since camcontrol is statically linked, we can't depend on the dynamic linker to pull in libsbuf. camcontrol.c: Use cam_error_print() instead of checking for CAM_SCSI_STATUS_ERROR on every failed CCB. sbuf.9: Change the prototypes for sbuf_cat() and sbuf_cpy() so that the source string is now a const char *. This is more in line wth the standard system string functions, and helps eliminate warnings when dealing with a const source buffer. Fix a typo. cam.c: Add description strings for the various CAM error status values, as well as routines to look up those strings. Add new cam_error_string() and cam_error_print() routines for userland and the kernel. cam.h: Add a new CAM flag, CAM_RETRY_SELTO. Add enumerated types for the various options available with cam_error_print() and cam_error_string(). cam_ccb.h: Add new transfer negotiation structures/types. Change inq_len in the ccb_getdev structure to be "reserved". This field has never been filled in, and will be removed when we next bump the CAM version. cam_debug.h: Fix typo. cam_periph.c: Modularize cam_periph_error(). The SCSI error handling part of cam_periph_error() is now in camperiphscsistatuserror() and camperiphscsisenseerror(). In cam_periph_lock(), increase the reference count on the periph while we wait for our lock attempt to succeed so that the periph won't go away while we're sleeping. cam_xpt.c: Add new transfer negotiation code. (ifdefed out) Add a new function, xpt_path_string(). This is a string/sbuf analog to xpt_print_path(). scsi_all.c: Revamp string handing and error printing code. We now use sbufs for much of the string formatting code. More of that code is shared between userland the kernel. scsi_all.h: Get rid of SS_TURSTART, it wasn't terribly useful in the first place. Add a new error action, SS_REQSENSE. (Send a request sense and then retry the command.) This is useful when the controller hasn't performed autosense for some reason. Change the default actions around a bit. scsi_cd.c, scsi_da.c, scsi_pt.c, scsi_ses.c: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Selection timeouts shouldn't be covered by a sense flag. scsi_pass.[ch]: SF_RETRY_SELTO -> CAM_RETRY_SELTO. Get rid of the last vestiges of a read/write interface. libkern/bsearch.c, sys/libkern.h, conf/files: Add bsearch.c, which is needed for some of the new table lookup routines. aic7xxx_freebsd.c: Define AHC_NEW_TRAN_SETTINGS if CAM_NEW_TRAN_CODE is defined. sbuf.h, subr_sbuf.c: Add the appropriate #ifdefs so sbufs can compile and run in userland. Change sbuf_printf() to use vsnprintf() instead of kvprintf(), which is only available in the kernel. Change the source string for sbuf_cpy() and sbuf_cat() to be a const char *. Add __BEGIN_DECLS and __END_DECLS around function prototypes since they're now exported to userland. kdump/mkioctls: Include stdio.h before cam.h since cam.h now includes a function with a FILE * argument. Submitted by: gibbs (mostly) Reviewed by: jdp, marcel (libsbuf makefile changes) Reviewed by: des (sbuf changes) Reviewed by: ken Notes: svn path=/head/; revision=74840
* o Update copyright dateRobert Watson2001-03-262-92/+62
| | | | | | | | | | | o Revise description in light of commits over last month including: - ACL editing library is now implemented - ACLs are now implemented Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=74832
* Do not build (and install) both secure/ and standard versionsRuslan Ermilov2001-03-261-1/+1
| | | | | | | | | | of libtelnet, telnetd, and telnet. This only worked because secure/ was listed late in SUBDIR in Makefile.inc1. Reviewed by: markm Notes: svn path=/head/; revision=74813
* Don't use MANDEPEND and MANSRC.Ruslan Ermilov2001-03-261-2/+0
| | | | Notes: svn path=/head/; revision=74804
* Make header files conform to style(9).Brian Somers2001-03-256-326/+311
| | | | | | | | | Reviewed by (*): bde (*) alias_local.h only got a cursory glance. Notes: svn path=/head/; revision=74778
* Remove an extraneous declaration.Brian Somers2001-03-251-1/+0
| | | | Notes: svn path=/head/; revision=74768
* This is kind of a hack, but it should work. Currently, world is brokenPeter Wemm2001-03-243-81/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | because libc/rpc/key_call.c references uname(), and ps/print.c also defines uname(), and ps is linked statically. This leads to a symbol clash. The userland uname(3) kinda sucked anyway as the hostname etc was too short. And since the libc rpc interface now uses the utsname.nodename which gets truncated, I was tempted into doing something about it. Create a new userland uname function, called __xuname() which takes an extra argument that allows you to change the size of the fields. uname() becomes a static inline function in sys/utsname.h that passes the extra argument in. struct utsname has its field members expanded by default now in userland. We still provide a 'uname' externally linkable function for things that either think that they ``know'' the utsname format and assume 32 character strings and bypass the include file, or objects that are linked against old libcs. ie: just about every plausible case that I can think of is covered. Should we ever change the default lengths again, a libc major bump should not be required as the size is now passed to the function. XXX the uname(2) in the kernel is for FreeBSD 1.1 binary compatability! All the uname(3) functions that are exported to userland are actually implemented in libc with sysctl. uname(1) uses sysctl directly and does not call uname(3). PR: bin/4688 Notes: svn path=/head/; revision=74729
* Use high port range by default, and replace the 'h' option with an 'l' optionDag-Erling Smørgrav2001-03-242-7/+7
| | | | | | | that forces the ftp code to use the low (default) port range instead. Notes: svn path=/head/; revision=74716
* Fix rcsid/$FreeBSD$.David E. O'Brien2001-03-241-2/+15
| | | | | | | Reduce diff from what I think is the original sources. Notes: svn path=/head/; revision=74712
* fix Alpha supportAlfred Perlstein2001-03-241-10/+0
| | | | Notes: svn path=/head/; revision=74710
* IPv4 address is not unsigned int. This change introduces in_addr_t.Hajimu UMEMOTO2001-03-237-18/+25
| | | | | | | | | | PR: 9982 Adviced by: des Reviewed by: -alpha and -net (no objection) Obtained from: OpenBSD Notes: svn path=/head/; revision=74700
* change callrpc() from taking "char *" args, I'm quite sure they really meantAlfred Perlstein2001-03-232-3/+3
| | | | | | | | | to use "void *". remove a duplicate prototype for callrpc() from libexec/ypxfr/ypxfr_extern.h Notes: svn path=/head/; revision=74695
* mdoc(7) police: fix markup.Ruslan Ermilov2001-03-234-52/+12
| | | | Notes: svn path=/head/; revision=74693
* Correct the acl_set_permset and acl_set_tag_type man pagesChris D. Faulhaber2001-03-234-66/+60
| | | | | | | | | which somehow got mixed up with the acl_get_* man pages. Submitted by: ru Notes: svn path=/head/; revision=74686
* mdoc(7) police: fix markup.Ruslan Ermilov2001-03-2316-302/+144
| | | | Notes: svn path=/head/; revision=74684
* mdoc(7) police: fix markup, function prototype, and RETURN VALUES text.Ruslan Ermilov2001-03-232-58/+82
| | | | Notes: svn path=/head/; revision=74683
* Add the following ACL editing functions:Chris D. Faulhaber2001-03-2236-4/+2934
| | | | | | | | | | | | | acl_add_perm, acl_clear_perms, acl_copy_entry, acl_create_entry, acl_delete_perm, acl_get_permset, acl_get_qualifier, acl_get_tag_type, acl_set_permset, acl_set_qualifier, acl_set_tag_type This brings us within 4 functions of a full ACL editing library. Reviewed by: rwatson Notes: svn path=/head/; revision=74667
* Remove struct cmessage from sys/socket.h and reintroduce the privateAlfred Perlstein2001-03-222-2/+9
| | | | | | | | | definitions. Requested by: wollman Notes: svn path=/head/; revision=74660
* Remove (non-protected) variable names from function prototypes.Brian Somers2001-03-221-7/+5
| | | | Notes: svn path=/head/; revision=74651
* Hopefully fix some of the bugs in passing credentials over UNIX ↵Alfred Perlstein2001-03-222-26/+32
| | | | | | | | | | | | | | | domain sockets. Make struct cmessage visible from socket.h (about 4 places were defining it for themselves which wasn't good) Make __rpc_get_local_uid() useable and give it prototype that's visible. Fix some issues with printing out usernames from rpcbind and keyserv. Notes: svn path=/head/; revision=74627
* o Slap some "_"'s in front of variable names relating to extattr functions,Robert Watson2001-03-221-3/+3
| | | | | | | | | so as not to pollute application namespace. Submitted by: bde Notes: svn path=/head/; revision=74624
* Help standalone builds by getting libutil.h from src/lib/libutilPeter Wemm2001-03-211-1/+1
| | | | Notes: svn path=/head/; revision=74607
* Find <libkvm.h> in the source tree. This helps standalone builds.Peter Wemm2001-03-211-1/+1
| | | | Notes: svn path=/head/; revision=74605
* Get rid of non-standard %E[Ff] formats, userland apps already fixedAndrey A. Chernov2001-03-213-33/+4
| | | | Notes: svn path=/head/; revision=74578
* Oops, back out prev. change - POSIX require %y in d_fmtAndrey A. Chernov2001-03-211-4/+4
| | | | | | | Cosmetique - use exact POSIX string for %c Notes: svn path=/head/; revision=74572
* Replace %y with %YAndrey A. Chernov2001-03-211-1/+1
| | | | Notes: svn path=/head/; revision=74570
* Add libssl and libcrypto compat4x libraries since the major numberPaul Saab2001-03-216-0/+16451
| | | | | | | | | changed. These were taken from the 4.2-RELEASE dist on ftp.freebsd.org. This will be MFC'd shortly as it is required in RELENG_4 to maintain compatability with binaries linked against these libraries. Notes: svn path=/head/; revision=74555
* whitespace cleanupAlfred Perlstein2001-03-201-16/+14
| | | | Notes: svn path=/head/; revision=74536