summaryrefslogtreecommitdiffstats
path: root/usr.sbin/watch
Commit message (Collapse)AuthorAgeFilesLines
* Use strlcpy() when the string is expected to be nul-terminated.delphij2015-10-061-2/+2
| | | | MFC after: 2 weeks
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | 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/+1
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-193-4/+3
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge headsjg2013-09-111-1/+2
| |\ \
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+21
| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| |_|/ |/| | | | | | | | Reduce overlinking
* | | Replace all uses of libncurses and libtermcap with their wide characterbrooks2014-07-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
* | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-1/+1
| |/ |/| | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | watch: Do not mess up the tty modes on early error.jilles2013-09-051-1/+2
|/ | | | | | | | | | Record the initial state earlier, so it is always safe to restore it. One way this happens is if watch(8) is started by a user that does not have access to /dev/snp. The result is "staircase effect" during later commands. PR: bin/153052 MFC after: 1 week
* Perform even more style changes.ed2012-03-101-4/+8
| | | | | | | | - Remove unneeded whitespace for function calls. - Add empty line at the top of functions without local variables. - Change while (1) to for (;;). MFC after: 1 week
* Fix whitespace.ed2012-03-101-35/+29
| | | | MFC after: 1 week
* Convert the snp(4) driver to use cdevpriv.ed2008-08-151-16/+7
| | | | | | | | | | | | | Now we have a single /dev/snp device node, which can be opened by watch(8) multiple times. Even though snp(4) will be dead as of next week, it's nice having this in SVN, because: - We may want to MFC it to RELENG_7. - By the time we fix snp(4) again, it's already there, existing watch(8) binaries should already work. Just like bpf(4), I'm adding a symlink from snp0 to snp to remain binary compatible.
* Allow watch(8) to use more than 10 snp* devices. This limitation was purelyrink2008-01-301-6/+5
| | | | | | | | | | due to the way watch(8) looks for available snoop devices. PR: bin/118286 Submitted by: Mykola Zubach <zuborg@advancedhosters.com> Reviewed by: rwatson, csjp, imp (all a long time ago) Approved by: imp (mentor) (long time ago) MFC after: 1 week
* Close the tty file descriptor once we're done with it.cognet2005-09-211-8/+8
| | | | | | | Use O_NONBLOCK when opening the tty device. Suggested by: bde Submitted by: ru
* Restore the ability to detach from a tty via SIOCSTTY and documentru2005-09-191-3/+3
| | | | | | recent changes in a manpage. Reviewed by: cognet
* Open the tty device and pass the fd for SNPSTTY.cognet2005-09-181-2/+8
| | | | MFC after: 3 days
* Sort sections.ru2005-01-181-5/+5
|
* By default, the watch utility will attempt to open /dev/snp0, ifcsjp2004-08-101-3/+7
| | | | | | | | | | | | | | | | | | | | | another process already has /dev/snp0 open, the snp(4) will return EBUSY, in which case watch will try to open /dev/snp1..9. Currently watch does not check errno to see if the failure was a result of EBUSY. This results in watch making futile attempts to open snp0..snp9 even though devices may not exist or the caller does not have permissions to access the device. In addition to this, it attempts to setup the screen for snooping even though it may not ever get an snp device. So this patch does two things 1) Checks errno for EBUSY, if open(2) fails for another reason print that reason and exit. 2) setup the terminal for snooping after the snp descriptor has been obtained. Approved by: bmilekic (mentor)
* Eliminated double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-4/+8
|
* Remove constant which makes the assumption that the length ofcsjp2004-05-291-2/+3
| | | | | | | | | _PATH_DEV will never change. In the un-likely event that _PATH_DEV should ever change, watch(8) would have broke because of a mis-generated device name. Approved by: bmilekic (mentor) Pointed out by: Yvan Boily
* 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
|
OpenPOWER on IntegriCloud