summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix the previous commit (still not used to svn vs. cvs). Use theharti2010-01-111-4/+2
| | | | | define from paths.h for the default temporary directory and remove and unneccessary getenv call.
* Add a new option, -q howmany, which when used in conjuction with -w,delphij2010-01-114-3/+18
| | | | | | | | exits netstat after _howmany_ outputs. Requested by: thomasa Reviewed by: freebsd-net (bms, old version in early 2007) MFC after: 1 month
* Let lastcomm(1) build without <utmp.h>.ed2010-01-101-4/+3
| | | | | Use MAXLOGNAME - 1 instead of UTNAMESIZE. There is no definition for TTY name sizes, at least not as low as 8, so hardcode it for now.
* Make make respect the TMPDIR environment variable.harti2010-01-101-5/+14
| | | | | PR: bin/115447 Submitted by: Eugene Grosbein
* Apply patches directly to sources. Their effect is as follows:ru2010-01-104-137/+0
| | | | | | | | - Make one-true-awk respect locale's collating order in [a-z] bracket expressions, until a more complete fix (like handing BREs) is ready. - Don't require a space between -[fv] and its argument.
* Regen diffs.ru2010-01-093-26/+17
|
* Update to a 26-Nov-2009 release.ru2010-01-091-2/+2
|
* This now passes a make universe with WARNS=6.dwmalone2010-01-081-2/+0
|
* This now passes a make universe with WARNS=6.dwmalone2010-01-071-2/+0
|
* This now passes a make universe with WARNS=6.dwmalone2010-01-071-2/+0
|
* When restoring files, use the mode for the mode.kientzle2010-01-061-2/+2
| | | | Thanks to: Jun Kuriyama for pointing this out
* 1) Mark usage as dead2.dwmalone2010-01-051-17/+10
| | | | | | | | | 2) Deregister. 3) New style function definitions. Some WARNS still remain here - some printf format warning on some arches and the compiler can't see that a variable should always be initialised.
* Shuffle parens to avoid type-punning warning.dwmalone2010-01-051-1/+1
|
* 1) Make usage() as dead2 - it helps the compiler know that some varsdwmalone2010-01-051-7/+8
| | | | | | | are not used uninitialised. 2) Fix some constness problems. 3) Avoid a signedness problem by casting to size_t. If bn != stuff, than stuff-1-bn should be > 0.
* Change a char that is used as an index into an array into an unisgned char.dwmalone2010-01-052-2/+2
| | | | Add a missing new style function definition.
* Add ability to search up the directory hierarchy for the system directory.obrien2010-01-044-11/+158
| | | | | | | Do by specifying ".../" with '-m' or MAKESYSPATH (new) environment variable. Reviewed by: <sjg@NetBSD.org> Obtained from: NetBSD (+ embellishment by me, sent back to NetBSD)
* Modernize scandir(3) and alphasort(3) interfaces according to the IEEEkib2010-01-042-4/+10
| | | | | | | | | | | | | | | | | | | | Std 1003.1-2008. Both Linux and Solaris conforms to the new definitions, so we better follow too (older glibc used old BSDish alphasort prototype and corresponding type of the comparision function for scandir). While there, change the definitions of the functions to ANSI C and fix several style issues nearby. Remove requirement for "sys/types.h" include for functions from manpage. POSIX also requires that alphasort(3) sorts as if strcoll(3) was used, but leave the strcmp(3) call in the function for now. Adapt in-tree callers of scandir(3) to new declaration. The fact that select_sections() from catman(1) could modify supplied struct dirent is a bug. PR: standards/142255 MFC after: 2 weeks
* Report lines that ought to contain a ':' operator but start with a '.'obrien2010-01-041-2/+5
| | | | | | | as "Unknown directive" sinze they are more likely to be .elseif (etc). (NetBSD PR 37222). Obtained from: NetBSD
* Add check for subversion "original" marker.obrien2010-01-041-0/+1
|
* Fix return code in the case of successful file transfer, broken ingavin2010-01-031-2/+6
| | | | | | | | | tftp.c 1.13 PR: bin/117452 Submitted by: Spencer Minear minear securecomputing.com Approved by: ed (mentor) MFC after: 2 weeks
* Build usr.bin/ with WARNS=6 by default.ed2010-01-02133-79/+138
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Mute some warnings on uninitialized variables.ed2010-01-022-3/+3
| | | | | The code does the right thing, but the compiler is unable to figure it out. All paths that use that variable use the same invariant.
* Remove a warning by adding extra parentheses.ed2010-01-021-1/+1
| | | | | GCC generates warnings when using "if (foo = bar)". In this case its use is valid.
* Add missing #include for string routines.ed2010-01-021-0/+1
|
* ANSIfy various tools in usr.bin/.ed2010-01-0213-61/+35
| | | | | Most of these tools properly build at WARNS=6, except for their K&R function declarations. Fix this, so we can bump WARNS as well.
* The devices that supported EVFILT_NETDEV kqueue filters were removed inbrooks2009-12-311-1/+1
| | | | | | | | | | | | r195175. Remove all definitions, documentation, and usage. fifo_misc.c: Remove all kqueue tests as fifo_io.c performs all those that would have remained. Reviewed by: rwatson MFC after: 3 weeks X-MFC note: don't change vlan_link_state() function signature
* Treat an empty argument as an error, instead of fetching theru2009-12-301-0/+5
| | | | | | contents of the root directory. MFC after: 1 week
* Let both yacc and lex generate code that passes -Wold-style-definition.ed2009-12-303-6/+10
| | | | | Both these tools emit code where several functions have no `void' keyword placed in the arugment list when the function has no arguments.
* ANSIfy almost all applications that use WARNS=6.ed2009-12-294-25/+12
| | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
* Add missing `void' keyword.ed2009-12-291-1/+1
|
* Add missing `void' keyword.ed2009-12-291-1/+1
|
* Add missing `void' keyword for function without arguments.ed2009-12-291-1/+1
|
* ar only needs to support ar format.kientzle2009-12-292-2/+2
|
* Migrate finger(1) away from <utmp.h>.ed2009-12-288-68/+54
| | | | | | | Unfortunately it also uses lastlog, which means we must resort to local extensions of the utmpx-interface. Because the user name and TTY name are now nul-terminated, there is no need to copy around strings as often.
* Several refinements to libulog's API.ed2009-12-261-1/+1
| | | | | | | | | - Only set the fields in the ulog_utmpx structure that are valid for the command in question. This means that strings like "shutdown" or "~" are not visible to the user anymore. - Rename UTXF_* to UTXI_*, indicating the indexation, instead of using the `antique' filename. If we ever get rid of utmp, it makes little sense calling it by its old name.
* Fix grammar and reduce ambiguity.delphij2009-12-261-3/+3
| | | | Submitted by: b. f. <bf1783 googlemail com>
* Let the width of the username column depend on the rwho file format.ed2009-12-251-2/+1
| | | | | Right now the code uses UT_NAMESIZE, but this makes little sense, because rwho(1) parses files generated by rwhod(8). Not utmp(5) files.
* Document the difference between FreeBSD and traditional System V killalldelphij2009-12-251-1/+12
| | | | | | commands. MFC after: 1 month
* Allow proper tracing of posix_openpt(2).ed2009-12-231-0/+2
|
* Don't print the archive name with -p and -q options.jh2009-12-221-1/+2
| | | | | PR: bin/141280 Approved by: des, trasz (mentor)
* Plug a memory leak.delphij2009-12-211-0/+1
| | | | | | PR: bin/141836 Submitted by: Henning Petersen <henning.petersen at t-online.de> MFC after: 2 weeks
* Cast time_t values to intmax_t and use %jd with printf.jh2009-12-211-5/+5
| | | | | OK'ed by: delphij Approved by: trasz (mentor)
* Remove non-working special case for pipe(2) from amd64-fbsd32.c andjh2009-12-213-26/+8
| | | | | | | | | i386-fbsd.c. Add pipe(2) to syscall table to decode it's pointer argument properly and re-add special handling for pipe(2) return value to print_syscall_ret(). PR: bin/120870 Approved by: trasz (mentor)
* Note that sockstat(1) does not display kernel-owned sockets.des2009-12-211-0/+7
| | | | | Submitted by: infofarmer@ MFC after: 2 weeks
* Avoid sharing the file descriptor of the output file with tracedjh2009-12-201-0/+6
| | | | | | | | | processes by setting the FD_CLOEXEC flag for the output file. PR: bin/140493 Submitted by: Erik Lax OK'ed by: delphij Approved by: trasz (mentor)
* Add fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),jh2009-12-201-0/+12
| | | | | | | | getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to decode their arguments correctly. OK'ed by: delphij Approved by: trasz (mentor)
* Nationalise Easter -> Pasenedwin2009-12-171-15/+16
| | | | MFC after: 1 week
* Sync getline() with comm(1):jh2009-12-171-9/+14
| | | | | | | | | | - Prevent overflowing of the buffer length variable in getline() by limiting its maximum value. - Exit if reallocf(3) fails in getline(). Failure was silently considered as end-of-file. Reviewed by: ghelmer Approved by: trasz (mentor)
* The input line length limit mentioned on the manual page was removed byjh2009-12-171-5/+1
| | | | | | r176119. Approved by: trasz (mentor)
* - Partially revert r200417. config.h brings several definitions,stas2009-12-172-0/+2
| | | | | that appears to be actually used. Without config.h included cross-build of world failed (at least for ARM).
OpenPOWER on IntegriCloud