summaryrefslogtreecommitdiffstats
path: root/usr.sbin/timed/timedc
Commit message (Collapse)AuthorAgeFilesLines
* MFC r314659,r314676:ngie2017-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | r314659: usr.sbin: normalize paths using SRCTOP-relative paths or :H when possible This simplifies make logic/output r314676: Fix build after r314656 Some of the changes I introduced to use .ALLSRC were correct in spirit, but incorrect in reality -- in particular, ../Makefile.inc hadn't been pulled in via bsd.init.mk (via bsd.lib.mk, bsd.prog.mk), so the value of .ALLSRC (evaluated immediately) was empty. .include bsd.init.mk explicitly so we can be certain that the values used as dependencies in the targets are defined when the target recipe has been evaluated. Reminder: thou shalt separate out separate functional changes before committing them. (YUGE) Pointyhat to: ngie In collaboration with: bdrewery
* timed(8): use NULL instead of zero for pointers.pfg2016-05-142-10/+10
|
* Add META_MODE support.sjg2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | 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 from head@274682sjg2014-11-191-1/+1
| |\ | |/ |/|
| * 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 with HEAD.obrien2013-02-082-28/+12
| |\
| | \
| | \
| *-. \ Sync from headsjg2012-11-041-1/+1
| |\ \ \
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+21
| | |/ / | |/| | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | Remove LOG_ODELAY because it does nothing.neel2014-08-171-1/+1
| |_|/ |/| | | | | | | | | | | Reviewed by: jilles CR: https://reviews.freebsd.org/D611
* | | Change old-style function definitioncharnier2013-02-012-28/+12
| |/ |/|
* | Rework all non-contributed files that use `struct timezone'.ed2012-09-011-1/+1
|/ | | | | | | | | | | | | | 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.
* fgets(3) returns a pointer, so compare against NULL, not integer 0.kevlo2012-01-131-1/+1
|
* In usr.sbin/timed, fix several issues with printf formats:dim2011-12-191-4/+4
| | | | | | | | | | - 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
* 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-116-24/+0
| | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
* Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.ed2009-02-261-0/+2
| | | | Submitted by: Pawel Worach <pawel.worach@gmail.com>
* Cleanup of userland __P usekevlo2007-11-072-12/+14
|
* 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.
* de-__Pcharnier2003-07-061-8/+9
| | | | | 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
|
* The .Nm utilitycharnier2002-07-141-3/+4
|
* 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-202-8/+2
| | | | | | | specialized logging, SGI-specific priority massaging, and SCI-specific time trimming support. Also add missing $FreeBSD$'s. Inspired by: 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-201-5/+16
| | | | | | | | | | | | | | 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-201-3/+4
| | | | | 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-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* 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-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-271-3/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-1/+0
|
* $Id$ -> $FreeBSD$peter1999-08-284-4/+4
|
* 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
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-191-1/+0
|
* Make all strings representing hostnames to be NUL-terminated withincharnier1997-10-311-2/+2
| | | | | 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.
* Use err(3).charnier1997-10-225-57/+56
| | | | | | | Sync man page and usage string. Strcpy -> strncpy from OpenBSD. -Wall cleaning. Obtained from: OpenBSD
* Sort cross references.wosch1997-01-201-1/+1
|
OpenPOWER on IntegriCloud