summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Connect smbfs related libraries and tool on sparc64.yongari2010-01-251-0/+4
| | | | Reviewed by: marius
* Unbreak world WITHOUT_OPENSSL:antoine2010-01-231-2/+4
| | | | the new dc(1) depends on crypto(3) and bc(1) depends on dc(1).
* - Collapase short and long options together;delphij2010-01-221-15/+11
| | | | | | - Use consistent marking up with bc(1)'s reference section. Reviewed by: gabor
* - Remove --debug option and intentionally undocument -d, which is onlydelphij2010-01-222-15/+10
| | | | | | | | | kept for compatibility with 4.4BSD behavior. - Sync SYNOPSIS with usage(). - Use an alternative way to represent short and long options which have same semantics. Reviewed by: gabor
* Move USD documents from /usr/share/doc/papers to to /usr/share/doc/usd.delphij2010-01-224-32/+0
| | | | Reviewed by: gabor
* Makefile cleanups:delphij2010-01-212-9/+2
| | | | | | | | o Enable building of USD o Remove commented out targets o Remove WARNS?=6 lines since it's the default Reviewed by: gabor
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-218-33/+32
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* Replace GNU bc/dc with BSDL versions ported from OpenBSD. They have a goodgabor2010-01-2021-0/+7784
| | | | | | | | | | compatibility level with the GNU counterparts and have shown to be mature enough. For now, the GNU versions aren't removed from the tree, just detached from the build. Sponsored by: Google Summer of Code 2008 Portbuild run by: erwin Approved by: delphij
* Also print UNIX timestamps in getent utmpx output.ed2010-01-201-2/+5
|
* Fix portability to 64 bit platforms.fanf2010-01-191-1/+1
| | | | | | printf("%.*s",i,s) expects an int not a ptrdiff_t Thanks to bf1783 (at) googlemail.com for the bug report.
* Make last(1) display the full log file.ed2010-01-191-10/+9
| | | | | | | | | | | | I must have misread when I ported the original last(1) source code. Instead of only processing the last 1024 entries, it reads them in in chucks of 1024 entries at a time. Unfortunately we cannot walk through the log file in reverse order, which means we have to allocate a piece of memory to hold all the entries. Call realloc() for each 128 entries we read. Reported by: Andrzej Tobola <ato iem pw edu pl>
* Sync unifdefall with upstream. It no longer relies entirely on $PATHfanf2010-01-191-5/+14
| | | | | to find unifdef, in order to support running the test suite before installing.
* Add a -o outfile option, which can be used to specify an output file. Thefanf2010-01-192-30/+119
| | | | | | | | file can safely be the same as the input file. Idea from IRIX unifdef(1). This version fixes a bug in the NetBSD unifdef which refuses to write to a -o outfile which does not exist. Obtained from: NetBSD
* Also let getent(1) print values of ut_pid.ed2010-01-181-3/+3
|
* Raise WARNS for various tools where possible.ed2010-01-171-1/+1
| | | | Submitted by: Marius NĂ¼nnerich <marius@nuenneri.ch>
* Use the newly brought %U macro.ru2010-01-152-2/+2
|
* Fix a typo: accouting -> accounting.ed2010-01-141-1/+1
|
* Add wtmpcvt(1).ed2010-01-144-0/+210
| | | | | | | | | | This utility allows users to convert their wtmp databases to the new format. It makes no sense for users to keep their wtmp log files if they are unable to view them. It basically copies ut_line into ut_id as well. This makes it possible for last(1) and ac(8) to match login records with their corresponding logout record.
* The group field is called `gid', not `group'.ed2010-01-141-1/+1
|
* Make whois capable of searching for IPv6 addresses just like it canedwin2010-01-141-0/+4
| | | | | | | | | do for IPv4 addresses without having to explicetly specify that the ARIN server should be used to get the initial information PR: bin/128725 Submitted by: "Matt D. Harris" <mdh_lists@yahoo.com> MFC after: 1 week
* Remove -d option, whois.nic.mil doesn't exist anymore.edwin2010-01-142-12/+3
| | | | | | PR: bin/142507 Submitted by: Dan Mahoney <danm@prime.gushi.org> MFC after: 1 week
* Perform all trivial ports to utmpx for usr.bin/.ed2010-01-1310-25/+8
| | | | | They were already converted to use libulog, so it's easy to convert them to utmpx.
* Port w(1) to utmpx.ed2010-01-132-7/+8
| | | | | | | | | Let it print "-" when the TTY string is empty. In this case, it must also make sure it doesn't match processes who also have no controlling TTY. Otherwise it will print random kernel processes when trying to pick the best matching process. Eventually it should look at the value of ut_pid as well.
* Allow getent(1) to display utmpx entries as well.ed2010-01-132-0/+91
| | | | | | | Because getutxent also matches the typical get*ent format of library routines, I thought it would be a good idea to teach it how to read utmpx databases. getent(1) just gives a raw dump, which is very useful when debugging problems related to parsing/logging.
* Port last(1) to use utmpx.ed2010-01-131-102/+83
| | | | | | | | | | | | | Basically there are three major things I changed about last(1): - It should use ut_type instead of determining by hand what type of record was given. - It should now keep track of ut_id's instead of TTYs. This means the ttylist has been renamed to the idlist, storing all the ut_id's it has processed until the next reboot. - I've removed the signal handler. Because our wtmp is rotated so often, it makes little sense. Even on a simple piece of hardware it should be capable of grinding through megabytes of logs in a second.
* Migrate finger(1) towards utmpx.ed2010-01-136-17/+9
| | | | | | It was already ported to use libulog, which makes it simpler now. Be sure to catch the error returned by setutxdb(). Otherwise it may perform a lookup on the utx.active database.
* 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
|
OpenPOWER on IntegriCloud