summaryrefslogtreecommitdiffstats
path: root/usr.bin/last
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+2
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| | |
| | \
| *-. \ Sync from headsjg2012-11-042-12/+10
| |\ \ \
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | |/ / | |/| | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | Fix history, add AUTHORS sectionbapt2015-06-061-4/+9
| |_|/ |/| | | | | | | | Obtained from: OpenBSD (by schwarze@)
* | | mdoc: sort SEE ALSO.joel2014-12-261-2/+2
| |/ |/|
* | Bump date missed in r202756eadler2012-09-141-1/+1
| | | | | | | | | | | | | | PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days
* | Switch batch to an SLIST.ed2012-09-121-11/+9
|/ | | | This code requires none of the features of LIST.
* - Replace "wtmp" with "utx.log" because last(1) no longer reads wtmp.hrs2012-01-222-5/+6
| | | | | | | | - A real filename is now shown in an output report when "-f file" is specified. - Add Xr lastlogin into last(1) manual page. Reviewed by: ed MFC after: 1 week
* Add missing static keywords to last(1)ed2011-11-061-21/+21
|
* Build last(1) and leave(1) with WARNS=6.ed2011-10-141-1/+1
| | | | | These ports were only built with WARNS=1, because they use certain format extensions. We can use NO_WFORMAT for that instead.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-112-8/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-211-6/+6
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* 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>
* 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.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Sort sections.ru2005-01-181-5/+5
|
* s/FALLTHOUGH/FALLTHROUGH/dwmalone2004-08-081-1/+1
| | | | Submitted by: Xin LI <delphij@frontfree.net>
* Include timeconv.h for _int_to_time and _time_to_int.dwmalone2004-02-151-0/+1
|
* Tidy up synopsis.tjr2003-08-171-3/+1
|
* Tidy up usage message.tjr2003-08-171-2/+2
|
* Add the -n maxrec option as an alias for -maxrec for compatibility withtjr2003-07-272-10/+18
| | | | | | | System V and consistency with other utilities. Document the new form instead of the old form in the manual page. PR: 54661
* Fix core dumps when invoking with something like ``last -w1''.mux2002-10-301-5/+4
| | | | | | PR: bin/44583 Reported by: Amit Chakradeo <sdbug@spam.chakradeo.net> MFC after: 3 days
* ANSIify function definitions.dwmalone2002-09-041-22/+10
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* s/A last utility last appeared/A last utility appeared/ (horikawa).charnier2002-07-211-4/+8
| | | | | | Use .Pa for wtmp. Submitted by: horikawa
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Clean up malloc(3)'s argument. Remove casts which do nothing when we'rejmallett2002-05-171-5/+5
| | | | | | | using sizeof() anyway. Use slightly more consistent (per-file) error reporting for malloc(3) returning NULL. If "malloc failed" was being printed, don't use err(3). If a NULL format is being used, use err(3). In one case errx(3) was being used with strerror(3), so just use err(3).
* Use `The .Nm utility'charnier2002-04-201-6/+8
|
* remove __Pimp2002-03-221-10/+10
|
* Add a new "-y" flag which causes the year to be included in theiedowse2002-03-012-5/+13
| | | | | | | | | | session start time. This is useful when looking at old or long-running wtmp files. PR: bin/12982 Obtained from: KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>, keramida Reviewed by: keramida MFC after: 1 week
* Oops, unbreak the -d and -<n> options. The `snapfound' variableiedowse2002-03-011-11/+5
| | | | | | needs to be retained across entries, and we need to exit(), not return from doentry() when `maxrec' reaches 0. Move the code for processing `maxrec' into printentry() for simplicity.
* Split up the big wtmp() function to avoid long lines and codeiedowse2002-03-011-151/+153
| | | | duplication.
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* I've been meaning to do this for a while. Add an underscore to thedillon2002-01-191-6/+6
| | | | | | | | time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee.
* localtime() was being called on an int pointer (due to recentdillon2001-10-291-6/+13
| | | | utmp-related commits). fixed.
* Document -d in usage.dd2001-08-051-1/+2
| | | | Submitted by: Martin Kammerhofer <mkamm@sbox.tu-graz.ac.at>
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* mdoc(7) police: add missing .Ar in SYNOPSIS.ru2001-07-051-1/+1
|
* Silence warnings and minor style fixes. Mostly constify and don'tdd2001-06-142-10/+14
| | | | | | assume that time_t is a long. Clamp down with WARNS=2. Not objected to by: -audit
* The last(1) choked if there were two successive "login" marksru2001-05-281-4/+1
| | | | | | | | | | | | | | | | | | | | | | found in wtmp(5) for the same TTY without in-between "logout" mark. This may be demonstrated by executing login(1), logging in and out, and watching the last(1) output on this TTY: : # last -tv7 -w : ru ttyv7 Mon May 28 12:46 - 12:46 (00:00:01) : ru ttyv7 Mon May 28 12:45 still logged in The fix merely takes the second "login" mark as the "logout" for the first "login" mark, if there were no "logout" mark in-between. This restores the behavior of last.c,v 1.2: : # last -tv7 -w : ru ttyv7 Mon May 28 12:46 - 12:46 (00:00:01) : ru ttyv7 Mon May 28 12:45 - 12:46 (00:00:25) Silence from: -arch, dg
* Implement snapshots. The new -d option allows the user to find outdd2001-05-282-73/+248
| | | | | | who was logged in at a certain time and date. Obtained from: OpenBSD
* mdoc(7) police: remove hard sentence breaks.dd2001-04-261-3/+6
|
* Don't attempt to parse %cache2001-03-211-17/+33
|
* Used macro-API to <sys/queue.h>.phk2000-12-291-13/+13
| | | | Submitted by: ben
OpenPOWER on IntegriCloud