aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/timed
Commit message (Collapse)AuthorAgeFilesLines
* Remove, the now very outdated, timed.George V. Neville-Neil2018-12-1527-6042/+0
| | | | | | | | | | Submitted by: Kyle Spiers ksspiers at gmail Reviewed by: bcr,brooks,bz,sbruno Relnotes: yes Differential Revision: https://reviews.freebsd.org/D18505 Notes: svn path=/head/; revision=342139
* timed: slave is an infinite loop, mark it as suchEitan Adler2018-01-132-2/+2
| | | | Notes: svn path=/head/; revision=327941
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-2019-1/+39
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-312-2/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* usr.sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314659
* Renumber copyright clause 4Warner Losh2017-02-2821-21/+21
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Undo the bogus gethostname() change from r299709.Pedro F. Giffuni2016-05-141-1/+1
| | | | | | | | | | | | | The "- 1" is there specifically to enable checking for NUL termination. I should also admit the rest change was mostly cosmetic and the overruns can't occur in practice: still I leave them to pacify static analyzers. Pointed out by: bde Notes: svn path=/head/; revision=299713
* timed(8): Use strlcpy() for bounds checking.Pedro F. Giffuni2016-05-143-9/+14
| | | | | | | | | | Prevent some theorical buffer overruns reported by Coverity. Cleanup a use of gethostname() while here. CID: 1006713, 1011166, 1011167, 1011168, Notes: svn path=/head/; revision=299709
* timed(8): Use stronger random number generator.Pedro F. Giffuni2016-05-141-5/+2
| | | | | | | | | | Using arc4random simplifies the code by not having to worry about seeds which ironically depend on the time. CID: 1300004 Notes: svn path=/head/; revision=299708
* timed(8): use NULL instead of zero for pointers.Pedro F. Giffuni2016-05-147-48/+48
| | | | Notes: svn path=/head/; revision=299707
* Use strlcpy() instead of strncpy() to ensure that ret->name isDon Lewis2016-05-131-1/+1
| | | | | | | | | | | | NUL terminated. The source and destination buffers are the same size and the source *should* be NUL terminated, but be paranoid. Reported by: Coverity CID: 1011274 MFC after: 1 week Notes: svn path=/head/; revision=299580
* Add META_MODE support.Simon J. Gerraty2015-06-132-0/+42
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-082-4/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-162-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-102-0/+4
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2013-09-051-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | Updated dependenciesSimon J. Gerraty2013-03-112-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-162-4/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync with HEAD.David E. O'Brien2013-02-0813-143/+75
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ Sync from headSimon J. Gerraty2012-11-046-42/+41
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-222-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | | Remove LOG_ODELAY because it does nothing.Neel Natu2014-08-171-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: jilles CR: https://reviews.freebsd.org/D611 Notes: svn path=/head/; revision=270111
* | | | Minor update about rc.conf.Joel Dahl2013-04-221-1/+1
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=249771
* | | Change old-style function definitionPhilippe Charnier2013-02-0113-143/+75
| |/ |/| | | | | Notes: svn path=/head/; revision=246209
* | Add missing bracesKevin Lo2012-09-121-1/+2
| | | | | | | | | | | | | | Obtained from: DragonFly Notes: svn path=/head/; revision=240388
* | Rework all non-contributed files that use `struct timezone'.Ed Schouten2012-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. Notes: svn path=/head/; revision=239991
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-3/+3
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* fgets(3) returns a pointer, so compare against NULL, not integer 0.Kevin Lo2012-01-131-1/+1
| | | | Notes: svn path=/head/; revision=230044
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228990
* Fix r228719; when you use intmax_t, you need stdint.h.Dimitry Andric2011-12-191-0/+1
| | | | | | | | Pointy hat to: dim MFC after: 1 week Notes: svn path=/head/; revision=228720
* Some people pointed out long is 32-bit on some arches, while time_t isDimitry Andric2011-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 Notes: svn path=/head/; revision=228719
* In usr.sbin/timed, fix several issues with printf formats:Dimitry Andric2011-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 Notes: svn path=/head/; revision=228714
* Simplify inclusion of the tsptype array a bit.Ed Schouten2011-11-062-3/+1
| | | | | | | We don't need this array in timed.c -- only readmsg.c. Notes: svn path=/head/; revision=227221
* Check return code of setuid() in timedc.Simon L. B. Nielsen2011-04-231-1/+2
| | | | | | | | | | While it will not fail in normal circumstances, better safe than sorry. MFC after: 3 days Notes: svn path=/head/; revision=220970
* Remove the advertising clause from UCB copyrighted files in usr.sbin. ThisJoel Dahl2010-12-1121-84/+0
| | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Notes: svn path=/head/; revision=216372
* Move most of the remaining USD/PSD/SMM papers into share/docUlrich Spörlein2010-12-049-1008/+0
| | | | Notes: svn path=/head/; revision=216178
* Initialise the "trials" variable to zero earlier in case we unexpectedlyGavin Atkinson2010-06-191-1/+1
| | | | | | | | | error out early. Found by: clang static analyzer Notes: svn path=/head/; revision=209344
* mdoc: replace troff macros with -mdoc equivalentsUlrich Spörlein2010-06-081-17/+10
| | | | Notes: svn path=/head/; revision=208913
* Port timed away from logwtmp(3). Let it use utmpx.Ed Schouten2010-01-132-9/+17
| | | | Notes: svn path=/head/; revision=202204
* Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.Ed Schouten2009-02-263-5/+9
| | | | | | | Submitted by: Pawel Worach <pawel.worach@gmail.com> Notes: svn path=/head/; revision=189090
* Remove spurious duplicated defination of sock.Xin LI2008-09-241-2/+0
| | | | Notes: svn path=/head/; revision=183318
* getopt returns an int, not a char. Make sure that we store theWarner Losh2008-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 Notes: svn path=/head/; revision=179485
* Typo fix.Remko Lodder2008-02-111-2/+2
| | | | | | | Spotted by: brueffer Notes: svn path=/head/; revision=176179
* Enhance descriptions in the timed manual.Remko Lodder2007-12-081-7/+32
| | | | | | | | | PR: docs/115445 Submitted by: "Julian Stacey" <jhs at berklix dot org> MFC After: 3 days Notes: svn path=/head/; revision=174450
* Cleanup of userland __P useKevin Lo2007-11-077-66/+70
| | | | Notes: svn path=/head/; revision=173412
* o Remove duplicate includes.Maxim Konovalov2007-01-201-1/+0
| | | | | | | Obtained from: Slava Semushin via NetBSD Notes: svn path=/head/; revision=166134
* Sort sections.Ruslan Ermilov2005-01-181-9/+9
| | | | Notes: svn path=/head/; revision=140442