summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Last commit was broken.. It always prints '[CTRL-C to abort]'.ps2001-03-286-51/+31
| | | | | | | Move duplicate code for printing the status of the dump and checking for abort into a separate function. Pointy hat to: me
* Check whether we need to do a full restore after handling ASTs. Ifgallatin2001-03-281-4/+4
| | | | | | | | | | | | | | | an AST results in a signal being delivered, we'll need to do a full register restore so as to properly setup the signal handler. This is somewhat of a pessimization, because ast() will be called twice in this case. This fixes several problems that have been reported where signal intensive userland apps (most notably dump) have been SEGV'ing for no fault of their own. Thanks to Peter Jeremy <peter.jeremy@alcatel.com.au> for presenting the AST scenario which led to me fiinally figuring this out. Reviewed by: jhb
* o De-uglify IMPLEMENTATION NOTES section by removing unnecessary use ofrwatson2001-03-282-4/+2
| | | | .Fx
* Add some comments to two examples and extend a ``set ifaddr''.brian2001-03-282-6/+6
|
* Restore part of my fix spammed in v1.23:ache2001-03-271-1/+1
| | | | | | fseeko(file_size, SEEK_SET) -> fseek(0L, SEEK_END) 1) File may grows between operations, so fseeko to file_size may miss 2) 0L, SEEK_END is the same code using in tail in all other places
* Update the acknowledgements section.jkh2001-03-272-38/+6
|
* Finally fix __yp_ping(). We can't use the old locally defined clntudp_call()wpaul2001-03-271-239/+26
| | | | | | | method anymore since the code inside the RPC library has changed too much. Now that the clnt_dg module has the necessary code internally, we can yank out the local method code and turn on the ASYNC hack with clnt_control(). This will make the -m flag work again.
* Add a CLSET_ASYNC command, which allows us to (ab)use the clnt_dg transportwpaul2001-03-272-3/+20
| | | | | | | | | | | | | | | | | | 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.
* New release notes: Filesystem ACLs, getfacl(1) and setfacl(1).bmah2001-03-272-0/+16
| | | | Submitted by: rwatson
* Don't leak the memory we've just malloced if we can't find thedwmalone2001-03-271-2/+2
| | | | | | | | process we're looking for. (I don't think this can currently happen, but it depends how the function is called). PR: 25932 Submitted by: David Xu <davidx@viasoft.com.cn>
* Fix tail to work on files bigger than 2GB.dwmalone2001-03-274-65/+146
| | | | | PR: 14786 Reviewed by: iedowse
* Document LOG_CONSOLE.cwt2001-03-272-3/+8
|
* Add full PAM support for account management and sessions.markm2001-03-2712-184/+686
| | | | | | | The PAM_FAIL_CHECK and PAM_END macros in su.c came from the util-linux package's PAM patches to the BSD login.c Submitted by: "David J. MacKenzie" <djm@web.us.uu.net>
* Make rev 1.5 better match the rest of dump(8)'s output.obrien2001-03-271-2/+2
|
* Do not exit if unable to read /etc/dumpdates or create it.obrien2001-03-271-2/+4
| | | | | | If one is trying to dump or repair an ill system, give the user a fighting chance. Refusing to operate w/o a very non-critical file (feature) is just plain stupid.
* Remove NOMANcokane2001-03-271-1/+0
|
* MAN[1-9] -> MAN.ru2001-03-2763-141/+121
|
* Formatting fix for rev 1.298 where I did not take enough care.obrien2001-03-271-30/+30
|
* Mirror the newfs(8) defaults change I made in rev 1.33 of newfs.c whereobrien2001-03-272-2/+2
| | | | I made `22' the default number of cylinders per group.
* Fix LDADD and add missing DPADD.ru2001-03-273-6/+12
|
* Describe details of importing.sobomax2001-03-271-0/+28
|
* Traverse ${DESTDIR}/usr/include in lexographical order.ru2001-03-271-1/+1
| | | | This should fix problems reported recently on -current.
* Add comment explaining why size not passed directly to mmap, i.e. not relayache2001-03-271-3/+9
| | | | | | on its check. KNF multi-line comments (inspired by bde)
* Do not override the ``install'' target.ru2001-03-271-1/+1
|
* MAN[1-9] -> MAN.ru2001-03-2755-82/+80
|
* MAN[1-9] -> MAN.ru2001-03-278-8/+8
|
* MAN[1-9] -> MAN.ru2001-03-2723-25/+25
|
* Update FreeBSD translations to match 1.4.1 (actually just copied Enslishsobomax2001-03-276-12/+30
| | | | messages as I don't know de, pl and fr).
* Resolve conflicts.sobomax2001-03-276-158/+518
|
* MAN[1-9] -> MAN.ru2001-03-2714-15/+16
|
* This commit was generated by cvs2svn to compensate for changes in r74853,sobomax2001-03-272-21/+38
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of Hugh F. Mahon's EasyEditor 1.4.1.sobomax2001-03-277-170/+554
| |
* | Don't bypass notifying a corresponding interfaceyar2001-03-271-0/+6
| | | | | | | | | | | | | | when leaving a link-layer multicast group. PR: kern/22176 Reviewed by: wollman
* | Add a missing m_pullup() before a mtod() in in_arpinput().yar2001-03-271-0/+6
| | | | | | | | | | PR: kern/22177 Reviewed by: wollman
* | MAN[1-9] -> MAN.ru2001-03-274-6/+4
| |
* | Reflect recent bsd.man.mk changes here, but do not assign theru2001-03-271-5/+8
| | | | | | | | | | default MAN=${KMOD}.4 value for now. This feature was broken before, and enabling it now would cause 92 Makefiles to fail.
* | MAN[1-9] -> MAN.ru2001-03-2757-81/+74
| |
* | Use PLAY_MSF instead of PLAY_BIG when doing audio play.sos2001-03-273-31/+36
| | | | | | | | | | | | | | | | | | | | | | The fixes the problem of PLAY_BIG not being implemented on some modern drives. The problem now is that some old drives use BSD encoding in the MSF case, which they dont tell, and which is also not according to spec *sigh*. Hopefully there are not too many of those still alive, or I hereby grant license to kill the firmware writers that wrote the mess.
* | Make cblock_alloc_cblocks() spell its own nameyar2001-03-272-2/+2
| | | | | | | | | | | | correctly in its warning message. PR: kern/7693
* | MAN[1-9] -> MAN.ru2001-03-275-6/+4
| |
* | give the "netgrent" functions a home in netdb.halfred2001-03-275-11/+7
| |
* | const'ifyalfred2001-03-272-2/+2
| |
* | Make it possible to build manpages for the entire source tree.ru2001-03-277-6/+24
| |
* | Change the dump routines to only abort if control-c is pressed.ps2001-03-274-4/+12
| | | | | | | | | | | | | | If any other key is pressed, print a message stating that control-c is how to abort. Reviewed by: peter
* | Rewrite of the CAM error recovery code.ken2001-03-2733-2060/+2815
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Replace dyn_fin_lifetime with dyn_ack_lifetime for half-closed state.simokawa2001-03-271-1/+1
| | | | | | | | | | | | | | Half-closed state could last long for some connections and fin_lifetime (default 20sec) is too short for that. OK'ed by: luigi
* | limit the amount of retries when sending data to prevent lockups.alfred2001-03-271-2/+9
| |
* | At least install primes to the right place, for now. I suppose.green2001-03-271-2/+2
| | | | | | | | Reminded by: everyone
* | The common wisdom is to use the largest number of cylinders per group.obrien2001-03-271-3/+4
| | | | | | | | | | | | So bump the default from `16' to `22', which is the largest value allowed with the current default block size. This change increases the the group size from 32MB/g to 44MB/g on a 4GB SCSI disk.
* | Don't call the fictious `MAKEDEV' from the path "/sbin:/bin" when weobrien2001-03-271-69/+69
| | | | | | | | recurse. Rather recurse on ourself (as we know our own name).
OpenPOWER on IntegriCloud