summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* o The -s limit is ARG_MAX - 4K, not ARG_MAX - 2K.brian2001-04-101-4/+14
| | | | | | | | | | | | | | | | | | o Mention that the current environment is part of the -s calculation. o Add a BUGS section that warns against executing a program that increases the size of the argument list or the size of the environment. I have wondered for a while what the difference is between get a big list | xargs sudo command which fails and get a big list | sudo xargs command which succeeds. The answer is that in the first case, sudo expands the environment and pushes the amount of data passed into execve over the E2BIG threshold.
* beforeinstall -> SCRIPTS.ru2001-04-0711-48/+22
|
* 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>
* Add IPv6 support to showmount(8). This replaces IPv4-specific codeiedowse2001-04-051-34/+2
| | | | | | | | with calls to the new protocol-independent clnt_*_create functions provided by ti-rpc. Martin submitted a more complex patch to achieve this, but it turns out that clnt_create() does everything we need. Reviewed by: Martin Blapp <mb@imp.ch>
* Fixed a null pointer bug in rev.1.10. Rev.1.10 was supposed to tobde2001-04-041-5/+7
| | | | | | | | | | | | move the "for safety" zeroing of unused members of timebuf to a better place. It actually moved the zeroing to a worse place and didn't add necessary braces. Fixed a nearby older bug. timebuf.tm_gmtoff was sometimes used even when timebuf was invalid. Even when it is zeroed, a failing mktime() might set it to nonzero. PR: 25243
* Round up before checking if the width is smaller than the widestdwmalone2001-04-031-3/+5
| | | | | | | column, otherwise we may divide by zero later. PR: 26283 Reviewed by: roam
* Drop support for -DRELEASE_BUILD_FIXIT and -DCRUNCHED_BINARY inru2001-04-031-1/+1
| | | | ${CFLAGS}. The only supported method thus is -DRELEASE_CRUNCH.
* Do not override `realinstall' target, use ${PROGNAME}.ru2001-04-021-5/+1
|
* Do not override `realinstall' target, use ${PROGNAME}.ru2001-04-021-6/+3
|
* libtelnet.a is gone; add a special hack for `make release' fixit floppy.ru2001-03-311-3/+8
|
* Don't core dump when given "-i -a". Problem caused by a mistakenphk2001-03-301-1/+2
| | | | | | | dereference of a kernel-pointer in userland. PR: 26168 Submitted by: Peter Pentchev <roam@orbitel.bg>
* Include a missing header, and change a mktemp(3), mkdir(2) sequence toeric2001-03-292-2/+2
| | | | | | mkdtemp(3). Approved by: murray
* numdirtybuffers is an int, not a long.gallatin2001-03-291-1/+1
|
* Update message #56. Maxim didn't merge the English version here sincejoerg2001-03-282-2/+2
| | | | | | partially merging the line would have exceeded 80 characters. Reminded by: sobomax
* There was only a single message to be translated into German here.joerg2001-03-282-2/+2
|
* Bring the usage message in synch with reality.des2001-03-281-3/+2
| | | | PR: bin/26160
* Add Ukrainian translation.sobomax2001-03-282-1/+187
| | | | Submitted by: Olexander Kunytsa <kunia@wolf.istc.kiev.ua>
* Back out my fseeko -> fseek(END) change - we need to position on what weache2001-03-281-1/+1
| | | | displayed last, not to the end of file
* Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.ru2001-03-281-1/+7
| | | | Approved by: markm
* 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
* Fix tail to work on files bigger than 2GB.dwmalone2001-03-274-65/+146
| | | | | PR: 14786 Reviewed by: iedowse
* Add full PAM support for account management and sessions.markm2001-03-276-96/+332
| | | | | | | 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>
* 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
|
* 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
|
* 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
| |
* | MAN[1-9] -> MAN.ru2001-03-2757-81/+74
| |
* | 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
* | Use SSIZE_MAX instead of INT_MAX, as kernel does ssize_t checkache2001-03-271-1/+3
| | | | | | | | Better explanation comment of FIXME section
* | Treat mmap() error as fatal too, i.e. do exit(1) instead of returnache2001-03-261-1/+1
| |
* | rlines() checks:ache2001-03-261-3/+10
| | | | | | | | | | | | | | | | | | | | | | 1) really check for size overflow by checking negative value. 2) since mmap() not support files over INT_MAX size, add check for it until either mmap() will be fixed or tail will be rewritted to handle large files alternatively. 3) replace fseek(... file_size, SEEK_SET) with fseek(... 0L, SEEK_END) to avoid off_t -> long cast 4) Use exit() if file is too big instead of warning and wrong logic afterwards.
* | Do not build (and install) both secure/ and standard versionsru2001-03-261-3/+3
| | | | | | | | | | | | | | of libtelnet, telnetd, and telnet. This only worked because secure/ was listed late in SUBDIR in Makefile.inc1. Reviewed by: markm
* | Don't use MANDEPEND and MANSRC.ru2001-03-261-5/+2
| |
* | Merge various changes from OpenBSD and NetBSD.mikeh2001-03-2528-470/+478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o remove panic() in favor of err(3) and use err(3) functions consistently throughout o use stat(2)'s S_IS* macros rather than S_IF* o [r]index -> str[r]chr o convert some static buffers to dynamic ones o use real tempfiles rather than reopening the same templates o rename some functions that clash with libc o convert wait_status from union to int and use wait(2) status macros o fix multiple potential buffer overflows o fix a few comments o add $FreeBSD$ Reviewed by: nra, nectar (earlier version)
* | Now that libfetch uses the high port range by default, add a -U option todes2001-03-242-13/+17
| | | | | | | | make it use the low (default) port range instead.
* | Get rid of setgid kmem for systat, and while being there, fix some bugstmm2001-03-2310-151/+397
| | | | | | | | | | | | | | | | | | | | | | and compiler warnings. The data for network statistics are still obtained via the kvm interface if systat was started with the needed privileges, otherwise sysctls are used. The reason for this is that with really many open sockets, the sysctl method is probably slower, but it systat -netstat is probably not really usable in either mode under these conditions. Approved by: rwatson
* | Take setgid kmem away from nfsstat, it has not needed it for some timetmm2001-03-222-7/+1
| | | | | | | | | | | | now. Approved by: rwatson
* | Properly deal with one char weekdaysache2001-03-221-4/+8
| |
* | Uppercase first month letterache2001-03-221-1/+6
| | | | | | | | Terminate weekday string
* | Fix width for printing timeache2001-03-211-5/+4
| |
* | Don't attempt to parse %cache2001-03-211-5/+14
| |
* | Don't attempt to parse %cache2001-03-211-2/+7
| |
* | Don't attempt to parse %cache2001-03-211-3/+9
| |
* | Don't attempt to parse %cache2001-03-211-3/+9
| |
* | Don't attempt to parse %cache2001-03-211-17/+33
| |
* | Don't attempt to parse %cache2001-03-214-34/+56
| |
OpenPOWER on IntegriCloud