summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch
Commit message (Collapse)AuthorAgeFilesLines
* Userland signed char fixes for PPC build. Problems were using a chargrehan2004-01-221-2/+2
| | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.obrien2003-05-031-4/+2
|
* style.Makefile(5)obrien2003-04-041-1/+1
|
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* The FIONREAD sysctl operates on an int *, not a size_t *.tmm2002-11-111-9/+8
| | | | Reviewed by: dd
* Add break's to case blocks.mikeh2002-08-101-0/+2
| | | | | PR: bin/41511 Submitted by: Daniel Hagan <dhagan@acm.vt.edu>
* The .Nm utilitycharnier2002-07-141-6/+9
|
* de __Pimp2002-06-121-39/+30
| | | | | ANSI functions minor knf
* #include <time.h> for the definition of time functions instead ofbde2002-02-251-0/+1
| | | | depending on namespace pollution 2 layers deep in <sys/stat.h>.
* Talk about what the user needs to do to get the snp devices, and howdd2001-11-241-2/+12
| | | | | | watch(8) will try to help them by loading the module. PR: 25420
* Change 'superuser' to 'user' which was forgotten in the previousdd2001-11-241-2/+1
| | | | delta. Remove fake SCCS id while I'm here.
* Remove the sentence about only root being able to run watch(8). Itdd2001-11-241-14/+10
| | | | | | | | was never technically true (it's snp(4) that required root, not watch(8)), and after snp.c 1.64, isn't even effectively true, since who can run watch(8) depends on the permissions of the snp device(s). Sort options in SYNOPSIS and DESCRIPTION while I'm here.
* Add an -f option which allows one to specify a snp device to use.dd2001-11-242-8/+30
| | | | | | | Previously, watch would always use the first device it could successfully open, but this isn't always desired. Specifically, it may not be desired during debugging (of snp), or if a particular snp device has different permissions (which makes since after snp.c 1.64).
* o When "-n" is used with watch, it disables the use of <control-X> torwatson2001-11-072-6/+8
| | | | | | change terminals being watched. This change makes watch pass the <control-X> through to the terminal if it's not being intercepted-- previously, the keypress would simply be dropped.
* Automatically load the "snp" module if it isn't already present.dd2001-09-091-0/+6
|
* Back out WARNS commenting - local faultache2001-07-231-1/+1
|
* Unbreak world - comment out WARNS=2 - deadly warning on tgetstrache2001-07-231-1/+1
|
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-3/+5
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Add prototypes, staticize, constify, don't shadow global variables anddd2001-07-152-54/+60
| | | | | | | functions, remove an unused function, and silence other assorted warnings. Set WARNS=2.
* Replace an instance of the "watch" word with the ".Nm" macro: it is used toolgeni2001-05-041-1/+3
| | | | specify the command name.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* o Strip BINMODE from Makefile. Installing watch with 0500 provides norwatson2001-03-221-1/+0
| | | | | | added security benefit, as it doesn't provide extra privilege. Protection against inappropriate snooping is done by protecting /dev/snp* properly.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* Add `_PATH_DEVZERO'.obrien2000-12-091-4/+5
| | | | Use _PATH_* where where possible.
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-3/+3
|
* Add missing .El.charnier2000-01-232-2/+5
| | | | -Wall cleaning.
* ``tty'' is not required parameterphantom1999-10-301-1/+1
|
* Fix warning: return type of `main' is not `int'peter1999-09-151-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-1/+1
|
* Use err(3).charnier1997-10-272-30/+38
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-1/+1
| | | | posix standard on the topic.
* Removed old bogus prerequisite <sys/select.h>. Cleaned up #include mess.bde1997-03-191-11/+10
|
* 1. change tty handling from sgttyb to termios,roberto1997-03-131-41/+53
| | | | | | | | | 2. fix a potential buffer oflow, 3. makes watch(8) conform to sysexits(3). Not a strong 2.2 candidate even if it would be nice. Reviewed by: joerg, imp
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Sort cross references.wosch1997-01-201-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Remove breakage of 1.8.2.2, choose slightly better character for quit.jkh1996-12-302-4/+4
|
* Use RAW, not CBREAKjkh1996-12-171-1/+1
|
* Fix a typo in the man page (the "-n" flag was added to the synopsis infenner1996-12-021-1/+1
| | | | a comment).
* I have added a '-n' flag to the watch(8) command. This optionjkh1996-12-022-9/+20
| | | | | | | | | | | disables the ability to interactively select a new tty. I have also removed a check for uid == 0 because it gets in the way of using suid mode based access control. Watch (8)is only runnable by root, so this does not really change things much. Closes PR#2131 Submitted-By: adrian@virginia.edu
* Set ${DPADD}, use +=, add $Id$peter1996-09-021-1/+4
|
* Use the .Fx macro where appropriate.mpp1996-08-231-1/+2
|
* Properly save and restore the terminal characters!jkh1996-03-011-2/+4
|
* Fix a bunch of spelling errors in a bunch of man pages.mpp1996-01-301-2/+2
|
* Map ^C and ^\ (INTR and QUIT) to ^Q so that you can actually send thesejkh1995-12-162-1/+7
| | | | | | guys to a watched process. Useful if you're monitoring someone who's started doing something you'd really like them to stop immediately. :) Suggested by: Phillip White <philw@megasoft.tic.ab.ca>
* Add setlocale LC_TIMEache1995-10-261-0/+3
|
* Add missing ospeed initializationache1995-08-041-3/+4
|
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
OpenPOWER on IntegriCloud