summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump/mkioctls
Commit message (Collapse)AuthorAgeFilesLines
* Really fix this work to work. While rev 1.24 did allow awk to run w/oobrien2001-11-011-3/+3
| | | | complaining; the resulting output was useless.
* Utilize the property of 'echo' in that it removes \n from its input.obrien2001-11-011-1/+1
|
* Backout rev. 1.22 as the change that caused problems was also backed out.ru2001-05-241-1/+1
|
* Work around the side effect of src/include/Makefile,v 1.137 changes.ru2001-05-211-1/+1
| | | | (The proper fix is to add missing #include directives.)
* Execute this script in a "C" locale environment.ru2001-04-061-0/+2
| | | | | | | Currently, cs_CZ.ISO_8859-2 locale's collation sequence is broken, and this caused grep(1) to skip some include files. Reported by: Michal Mertl <mime@traveller.cz>
* Traverse ${DESTDIR}/usr/include in lexographical order.ru2001-03-271-1/+1
| | | | This should fix problems reported recently on -current.
* Rewrite of the CAM error recovery code.ken2001-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Unbreak world build by adding the necessary <net/ethernet.h> include.ru2000-08-021-0/+1
| | | | Submitted by: Nickolay Dudorov <nnd@wint.itfs.nsk.su>
* Fix an off-by-nine error when building a list of includes.ru2000-08-011-1/+1
|
* more pre-requisite for new ipv6 ioctlsitojun2000-07-041-0/+3
|
* sys/dkbad.h is no more.phk1999-12-081-1/+0
|
* Avoid hardcoding any paths and variables. The include directory mustmarcel1999-12-031-7/+18
| | | | | | | | | | now be specified on the command line. Accept a '-s' option which controls whether a switch-statement is to be used instead of a series of if-statements. Replace cpp with gcc -E. Discussed with: bde
* Unbreak build world by readding the necessary ipfilter includes.guido1999-11-241-0/+6
|
* ioctlname() is actually passed a register_t.dfr1999-11-101-1/+1
| | | | Pointed out by: bde
* Fix a boatload of warnings in the generated code on the alpha.dfr1999-11-091-1/+1
|
* Ack, ip_mroute.h is not an ipfilter include. :-/peter1999-10-111-0/+1
| | | | Submitted by: Mike Heffner <spock@techfour.net>
* Don't #include ipfilter includes that aren't there anymore.peter1999-10-101-7/+0
|
* Remove the inclusion of device.h. It's no longer there.n_hibma1999-10-061-1/+2
|
* we don't have <sys/disk.h> anymore.phk1999-05-081-1/+0
|
* Generate code to interpret ioctl numbers for all ioctls defined inbde1998-10-161-12/+50
| | | | | | | | | | | | | headers under /usr/include, not just for the ones in <sys/ioctl.h>. The generated file includes all headers that seem to define ioctls, so build errors will probably occur if headers become less self- sufficient than they are already. This is a feature. Build errors shall not be fixed by adding more includes here. Optionally generate a case statement instead of a list of if statements. This source must be edited to change this. The case statement should be non-optional. It currently can't be, because many ioctl numbers are not unique.
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadwollman1996-12-101-0/+1
| | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
* Run the headers through cpp -dM to find the #defines. The direct searchbde1996-06-231-2/+8
| | | | | | | | | | has been broken at least since 4.4Lite moved most of the #defines out of <sys/ioctl.h>. This should be done better. Only a few headers are searched. Added some #includes so that ioctl.c compiles. The networking headers have a maze of undocumented interdependencies and ioctl.c now actually supports networking ioctls.
* Include queue.h in preparation for upcoming struct socket changes.dg1996-03-111-0/+1
|
* Added $DESTDIR toswallace1994-09-151-1/+1
| | | | | $DESTDIR/usr/include/sys/ioctl.h $DESTDIR/usr/include/sys/ioctl_compat.h so ioctl.c is generated properly using 2.0 include files in $DESTDIR.
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+33
OpenPOWER on IntegriCloud