summaryrefslogtreecommitdiffstats
path: root/usr.sbin/timed
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo, s/transmitts/transmits/johan2004-02-041-1/+1
| | | | | PR: 62346 Submitted by: Gavin Atkinson (gavin at ury.york.ac.uk)
* Fix a BSS buffer overflow caused by makeargv() writing past the end oftjr2003-10-111-2/+3
| | | | margv[] when an input line contains 20 or more space-separated words.
* missing wordnaddy2003-10-041-1/+1
|
* reference ntpd(8)naddy2003-10-041-4/+7
|
* Mark the -i and -n options as mutually exclusive and fix variousnaddy2003-10-031-13/+17
| | | | | | | | mdoc formatting nits. PR: 57027 Approved by: simon Obtained from: OpenBSD
* de-__Pcharnier2003-07-062-17/+19
| | | | | use port/proto to represent services (not proto/port). add FBSDID
* Change incorrect strings.h to more correct string.h to pick upimp2003-06-092-2/+2
| | | | declarations for strlcpy, strlen, strmp and strcpy.
* Add section number to .Xrcharnier2003-06-081-1/+1
|
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-29/+29
| | | | Add FreeBSD Id tag where missing.
* The .Nm utilitycharnier2002-07-142-9/+13
|
* Use the length modifier 'l' when supplying an argument ofrobert2002-07-111-1/+1
| | | | type long to printf(3).
* - Remove unnecessary inclusion of <utmp.h>.robert2002-07-111-2/+1
| | | | | - Cast a value to time_t before comparing it to another time_t to fix a warning.
* timed(8) manual page has some incorrect grammertrhodes2002-04-091-4/+2
| | | | | PR: 36457 No objections from: ru
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
* Unifdef all the SGI code. It mainly added clutter while providing somejhb2001-11-2010-342/+4
| | | | | | | specialized logging, SGI-specific priority massaging, and SCI-specific time trimming support. Also add missing $FreeBSD$'s. Inspired by: NetBSD
* Use fixed-size fields in the structure for the timed protocol. Thisjhb2001-11-203-13/+28
| | | | | | | | | includes changing a struct timeval to an explicit structure of two int32_t's. This requires using temporary timevals in several places when calling gettimeofday(), settimeofday(), etc. With this timed now works properly on 64-bit platforms such as Alpha. Obtained from: NetBSD
* Set BINOWN=root explicitly for setuid root binaries.ru2001-09-131-0/+1
| | | | | | This is not "useless", as one may have non-default setting for BINOWN in make.conf, and we still want these to be installed setuid root in this case.
* The timed protocol is not implemented in a compatible way by all vendors;kris2001-08-202-7/+23
| | | | | | | | | | | | | | the size of the tsp_name field is OS-dependent. 4.3BSD used a 32-byte field, FreeBSD uses MAXHOSTNAMELEN and RedHat apparently uses a 64-byte field. As a result, sanity checking code added a few months ago to detect short packets will fail when interoperating with one of these other vendors. Change the short packet detection code to expect a minimum packet size corresponding to the 4.3BSD implementation, which should be a safe minimum size. Submitted by: Stephen Whiteley <stevew@best.com> (based on) PR: misc/29867
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-205-4/+9
| | | | | 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.
* Remove whitespace at EOL.dd2001-07-152-27/+27
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-102-2/+2
|
* Patches from OpenBSD:kris2001-05-091-12/+33
| | | | | | | | | | - check the msg.tsp_type value prior to using it as an index into char *tsptype[] - use strlcpy's instead of strcpy's - & handle short packets properly. Submitted by: "Andrew R. Reiter" <arr@watson.org> Obtained from: OpenBSD
* mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section.dd2001-04-131-1/+1
| | | | Reviewed by: ru
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-262-0/+2
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-202-2/+2
|
* Preceed/preceeding are not english words. Use precede and preceding.asmodai2001-02-181-1/+2
| | | | Add $FreeBSD$.
* Check that the hostname field in received packets is NUL-terminated.ben2001-01-011-0/+7
|
* * Fix a segfault when timed(8) receives a packet with a bad tsp_type.ben2000-12-281-2/+17
| | | | | | | * Check that received packets aren't too short, as this could cause other problems. Reviewed by: imp, markm
* Prepare for mdoc(7)NG.ru2000-12-271-3/+1
|
* Eliminate groff(1) warnings.ru2000-11-231-44/+2
| | | | Obtained from: NetBSD
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-202-6/+6
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-1/+0
|
* Remove duplicated ';' statement delimiters.kris2000-05-191-2/+2
| | | | Obtained from: BSD/OS
* Add a standard option list and make appropriate changes to thesheldonh2000-03-131-76/+115
| | | | | | | | body of the description. This is based on a patch from Nick Sanders <fishy@hotbot.com>. PR: 11978
* Change type of vars which hold in_addr.s_addr from u_long to u_int32_t,shin2000-03-031-1/+2
| | | | | | for more safety on alpha. Approved by: jkh
* $Id$ -> $FreeBSD$peter1999-08-2816-16/+16
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-122-0/+2
| | | | | | | | | | | | | | | | | 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
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-191-1/+0
|
* Don't assume that time_t is long. Fixed printf format errors.bde1998-06-291-4/+6
|
* Don't assume that time_t is long.bde1998-06-293-9/+18
|
* Make all strings representing hostnames to be NUL-terminated withincharnier1997-10-314-7/+7
| | | | | MAXHOSTNAMELEN chars, like everywhere else in the system, so that strcpy()s and printf()s won't fail.
* Back out strcpy() -> strncpy() changes. According to Bruce, they are unneeded.charnier1997-10-291-11/+13
| | | | | Check the return value of gethostname() like in timed. Make enough place to NUL-terminate the result.
* Back out strcpy() -> strncpy() changes. According to bruce, they are unneeded.charnier1997-10-298-112/+46
|
* ntohl->htonl.charnier1997-10-271-2/+2
| | | | OKed by: Bruce
* Use err(3).charnier1997-10-2218-236/+287
| | | | | | | Sync man page and usage string. Strcpy -> strncpy from OpenBSD. -Wall cleaning. Obtained from: OpenBSD
* Convert nets specified with -i/-n to network byte order.jlemon1997-08-211-2/+2
| | | | | PR: 3906, 3801 Submitted by: Bob Willcox <bob@luke.pmr.com>, Hiroya Tsubakimoto
* Typo: .SH --> .Sh.max1997-05-251-1/+1
| | | | | PR: 3683 Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-2/+2
| | | | posix standard on the topic.
* Sort cross references.wosch1997-01-202-2/+2
|
* Fix some formatting problems. Closed PR# 2377.mpp1997-01-081-2/+2
| | | | Pointed out by: David O'Brien
OpenPOWER on IntegriCloud