summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Check the entire length of the current argument for the EOF string with -E,jmallett2005-12-311-1/+1
| | | | | | | | | | | | | but don't expect a proper ASCII string to exist right here right now, don't use strcmp(3) which checks for a NUL. As we're still building the argument up, the next character might be garbage. It would probably be just as safe to temporarily write a NUL there, but if we've reached the end of argument memory that might not be the best idea, I think. It's unclear. Doing it this way seems to meet the most with the original intent. PR: 85696 Prodded by: stefanf
* Only clear sb.st_size if it is clearly wrong or meaningless. This fixesdes2005-12-301-5/+5
| | | | | | | mirror mode. PR: bin/86940 MFC after: 2 weeks
* Add a FreeBSD-specific -S flag which controls the maximum size of an argumentjmallett2005-12-302-10/+34
| | | | having replacements done in it via -I.
* Handle maxsize==0 in such a way that we don't modify the string.jmallett2005-12-301-0/+12
|
* mkstemp(3) and friends use a combination of base 10 digits, alongcsjp2005-12-301-1/+1
| | | | | | with upper and lower case letters from the English alphabet. Change the number of possible file names mktemp will return from 26**6 to (10+26+26)**6 instead. This keeps things consistent with mkstemp(3)
* Reflect progress in process title.des2005-12-301-0/+4
| | | | | Submitted by: flz MFC after: 2 weeks
* Build gprof for powerpc now.grehan2005-12-291-2/+0
|
* clone i386.h for powerpcgrehan2005-12-291-0/+44
|
* Add support for printing IPSEC protocol stats if the kernel was compiledkbyanc2005-12-285-97/+489
| | | | | | | | | | | | | with FAST_IPSEC rather than the KAME IPSEC stack. Note that the output of "netstat -s -p ipsec" differs depending on which stack is compiled into the kernel since they each keep different stats. This delta also adds the "esp", "ah", and "ipcomp" protocol stats, which are also available when the kernel is compiled with the FAST_IPSEC stack (e.g. "netstat -s -p esp"). Submitted by: Matt Titus <titus at nttmcl dot com> MFC after: 3 days
* Someone buy me a beer. Now.ade2005-12-281-0/+1
|
* Liberation Day is no longer celebrated in Romania; rather a nationalceri2005-12-201-1/+1
| | | | | | | | | | | | | | | | | | holiday is now celebrated on December 1st. From the PR: December 1 was adopted as National Day in 1990, being the day of celebration of the Great Assembly of Alba Iulia which voted for the union of Transylvania with Romania and which symbolise the union of all Romanians within a single state and the achievement of the unity of Romanian national state. [1] [1] LAW Number 10 from July 31st, 1990 Regarding the proclamation of the National Day of Romania http://www.1decembrie.ro/en/index.php?option=com_content&task=view&id=1&Itemid=4 PR: docs/90673 Submitted by: Ion-Mihai "IOnut" Tetcu Originally pointed out by: Cornel Ilie <cornel dot c punkt ilie at gmail punkt com>
* Provide some basic documentation explaining what the bpf(4) flags arecsjp2005-12-181-0/+24
| | | | | supposed to mean. Also, add an external references for bpf now that we reference flags from that man page.
* Make our ELF64 type definitions match standards. In particular thismarcel2005-12-181-6/+6
| | | | | | | | | | | | | means: o Remove Elf64_Quarter, o Redefine Elf64_Half to be 16-bit, o Redefine Elf64_Word to be 32-bit, o Add Elf64_Xword and Elf64_Sxword for 64-bit entities, o Use Elf_Size in MI code to abstract the difference between Elf32_Word and Elf64_Word. o Add Elf_Ssize as the signed counterpart of Elf_Size. MFC after: 2 weeks
* Know the machines FreeBSD runs on. Print the machine value formarcel2005-12-171-2/+10
| | | | | | unknown machines. MFC after: 1 week
* Fix the name of the country I was born.maxim2005-12-141-1/+1
|
* Really fix the relative timestamp bug. It was only incorrect for the ALQnjl2005-12-091-1/+2
| | | | | | | | case. It seems entries are in reverse order when read from the kernel memory but in the right order when read from a file (i.e. ALQ). Handle both cases. MFC after: 1 day
* Remove the -B option from the directory-copying examples. The -Bkientzle2005-12-091-2/+2
| | | | | | | | option is undocumented because it does nothing. It does nothing because bsdtar never needs it. It is accepted because gnutar does sometimes need it and many scripts use it. Reported by: Pawel Jakub Dawidek
* Teach rfcomm_sppd(8) to recognize "lan" (for LAN Access Using PPP) serviceemax2005-12-072-1/+7
| | | | | | name in '-c' (RFCOMM channel) option. MFC after: 3 days
* Wording tweaks.des2005-12-071-3/+2
| | | | | PR: not quite docs/84620 MFC after: 2 weeks
* Add a -0 option for interoperability with xargs -0.des2005-12-073-4/+14
| | | | | | PR: bin/56558 Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru> MFC after: 2 weeks
* Add -r option for GNU compatibility.des2005-12-071-1/+4
| | | | MFC after: 2 weeks
* Fix -r flag to actually work. "now" comes after "then", not vice versa.njl2005-12-061-1/+1
| | | | MFC after: 1 day
* Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98.ru2005-12-055-25/+57
| | | | Reviewed by: nyan
* Catch up with 64bit time_t on sparc64. The rstat packet expects a 32bitphilip2005-12-041-5/+19
| | | | | | | | time_t and times will look incorrect on machines with 64bit time_t. PR: 88788 Submitted by: Keith White <Keith.White -at- site.uottawa.ca> MFC after: 1 week
* Quickly fix brokeness in revision 1.157, that change wasdavidxu2005-12-011-4/+4
| | | | | free()ing stack memory which causes the program to abort, and I can no longer make buildworld.
* - match_var: do not address memory at invalid address (`len' can be greaterfjoe2005-11-302-3/+5
| | | | | | | | | than strlen(var) + 1) - ReadMakeFile: prevent `fname' memory leak - ReadMakeFile: prevent double free (caused by double fclose) -- ParsePopInput() closes input file Reviewed by: harti
* Remove two lines of debugging output that accidentally snuck into therwatson2005-11-281-2/+0
| | | | commit to fix up kvm support for netstat -m.
* Portability: remove AC_FUNC_MALLOC from configure.ac.in.kientzle2005-11-271-1/+0
| | | | According to Dan Nelson, this fixes the build on AIX 5.2.
* Teach rfcomm_sppd(1) about service names, so it is possible to specifyemax2005-11-232-8/+39
| | | | | | | service name instead of channel number with -c command option. Supported service names are: DUN (Dial-Up Networking), FAX (Fax) and SP (Serial Port). MFC after: 1 week
* Use the appropriate error function for displaying the error,dds2005-11-201-1/+1
| | | | | | instead of printing it to stdout. MFC after: 1 week
* Fix up markup.ru2005-11-182-26/+38
|
* -mdoc sweep.ru2005-11-187-37/+38
|
* Sync as close as possible with NetBSD.pjd2005-11-161-92/+115
| | | | | | | | | | | | | | | This includes fixes and cleanups listed below: - If a process dissappears while we are signalling it, don't count it as a match/error. - Better handling of errors and messages. - Downgrade failure to kill(2) (other than ESRCH) from fatal error to a warning; otherwise processing aborts and possibly matching killees would remain unsignalled. This makes pkill match the Solaris behavior. - Exit with 2 on usage errors as documented. Obtained from: NetBSD Glanced at by: maintainer (gad) [a bit different version of this patch]
* I often find myself doing:pjd2005-11-162-15/+45
| | | | | | | | | | | | | | % pgrep <something> [to verify which processes match] % pkill <something> To speed such operation up, add -I option which works like rm(1)'s -i option (unfortunately -i is already used in pkill(1)), ie. pkill will ask for confirmation before killing each matching process. After adding -j, -F, -i, -S, -o and -L options and other improvements, I think I can add myself to the copyright header. Glanced at by: maintainer (gad)
* Eliminate coredump problem introduced by last commit.rodrigc2005-11-141-2/+8
| | | | Noticed by: Guido van Rooij <guido at gvr dot org>
* Eliminate build breakage due to warnings about const.rodrigc2005-11-141-3/+3
|
* Use ANSI definitions.dwmalone2005-11-1313-574/+352
| | | | | Avoid using extern by declaring shared functions in header files. Const poision.
* len and len2 work better as size_tdwmalone2005-11-131-1/+2
|
* Const poision, deregister and use ANSI definitions.dwmalone2005-11-131-23/+20
|
* Declare find_err in indent_globs.h where the other shared variablesdwmalone2005-11-133-4/+1
| | | | live rather than listing it as an extern in indent.c.
* Avoid shadowing a local scratch variable,dwmalone2005-11-131-2/+2
|
* Modify netstat -mb to use libmemstat when accessing a core dump or liverwatson2005-11-133-178/+54
| | | | | | | | | | | | | | | | kernel memory and not using sysctl. Previously, libmemstat was used only for the live kernel via sysctl paths. This results in netstat output becoming both more consistent between core dumps and the live kernel, and also more information in the core dump case than previously (i.e., mbuf cache information). Statistics relating to sfbufs still rely on a kvm descriptor as they are not currently exposed via libmemstat. netstat -m operating on a core is still unable to print certain sfbuf stats available on the live kernel. MFC after: 1 week
* Add "-s" argument to kdump to suppress the display of I/O data.rwatson2005-11-122-4/+11
| | | | MFC after: 1 week
* Look through ext2fs file systems as well as ufs.grog2005-11-121-1/+1
| | | | | | This should almost certainly be extended to other local file systems as well (ntfs springs to mind), but I don't have the ability to test it.
* Align output.ru2005-11-091-2/+2
|
* Edit pathnames for -x but not for -t. Otherwise, people get confusedkientzle2005-11-061-1/+1
| | | | | | | | when list the archive contents, then try to extract selected files (file selection always works against unedited pathnames). With this change, -t always shows the pathnames as they appear in the archive. Thanks to: Robert Watson
* Un-break processing of device major/minor values with fstat -n. We docsjp2005-11-051-3/+5
| | | | | | | | | | | this by accessing the cdev_priv element of the cdev structure. Looking forward we need a better way to handle this, as this structure shouldn't be frobbed by userspace. Submitted by: Doug Steinwand PR: bin/88203 MFC after: 1 week Discussed with: phk
* o Update list of holidays in Russia.maxim2005-11-021-7/+10
| | | | | Submitted by: osa MFC after: 1 week
* Fix an erroneous description of the file descriptor assignments forjdp2005-11-021-5/+3
| | | | | | the "~C" command. MFC After: 1 week
* Xref setlocale(3), bump document date.trhodes2005-11-011-1/+3
|
OpenPOWER on IntegriCloud