summaryrefslogtreecommitdiffstats
path: root/usr.sbin/timed
Commit message (Collapse)AuthorAgeFilesLines
* Minor update about rc.conf.joel2013-04-221-1/+1
|
* Change old-style function definitioncharnier2013-02-0113-143/+75
|
* Add missing braceskevlo2012-09-121-1/+2
| | | | Obtained from: DragonFly
* Rework all non-contributed files that use `struct timezone'.ed2012-09-016-41/+39
| | | | | | | | | | | | | | This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead.
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-3/+3
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* fgets(3) returns a pointer, so compare against NULL, not integer 0.kevlo2012-01-131-1/+1
|
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* Fix r228719; when you use intmax_t, you need stdint.h.dim2011-12-191-0/+1
| | | | | Pointy hat to: dim MFC after: 1 week
* Some people pointed out long is 32-bit on some arches, while time_t isdim2011-12-192-4/+4
| | | | | | | 64-bit, so better cast time_t to intmax_t, and use the appropriate printf format strings. MFC after: 1 week
* In usr.sbin/timed, fix several issues with printf formats:dim2011-12-194-9/+9
| | | | | | | | | | - Cast time_t's to long, and print them with %ld. - Print ptrdiff_t's with %td. - Print ssize_t's and size_t's with %zd and %zu. - Print int32_t's with %d. Also, replace some int variables with the more appropriate size_t. MFC after: 1 week
* Simplify inclusion of the tsptype array a bit.ed2011-11-062-3/+1
| | | | We don't need this array in timed.c -- only readmsg.c.
* Check return code of setuid() in timedc.simon2011-04-231-1/+2
| | | | | | | While it will not fail in normal circumstances, better safe than sorry. MFC after: 3 days
* Remove the advertising clause from UCB copyrighted files in usr.sbin. Thisjoel2010-12-1121-84/+0
| | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
* Move most of the remaining USD/PSD/SMM papers into share/docuqs2010-12-049-1008/+0
|
* Initialise the "trials" variable to zero earlier in case we unexpectedlygavin2010-06-191-1/+1
| | | | | | error out early. Found by: clang static analyzer
* mdoc: replace troff macros with -mdoc equivalentsuqs2010-06-081-17/+10
|
* Port timed away from logwtmp(3). Let it use utmpx.ed2010-01-132-9/+17
|
* Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.ed2009-02-263-5/+9
| | | | Submitted by: Pawel Worach <pawel.worach@gmail.com>
* Remove spurious duplicated defination of sock.delphij2008-09-241-2/+0
|
* getopt returns an int, not a char. Make sure that we store theimp2008-06-021-1/+1
| | | | | | | | | | variable in an int to avoid casting to an unsigned value which causes the comparison with -1 to fail. PR: 123807 Submitted by: Matthew Luckie Reviewed by: keramida@ MFC after: 1 week
* Typo fix.remko2008-02-111-2/+2
| | | | Spotted by: brueffer
* Enhance descriptions in the timed manual.remko2007-12-081-7/+32
| | | | | | PR: docs/115445 Submitted by: "Julian Stacey" <jhs at berklix dot org> MFC After: 3 days
* Cleanup of userland __P usekevlo2007-11-077-66/+70
|
* o Remove duplicate includes.maxim2007-01-201-1/+0
| | | | Obtained from: Slava Semushin via NetBSD
* Sort sections.ru2005-01-181-9/+9
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* 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.
OpenPOWER on IntegriCloud