aboutsummaryrefslogtreecommitdiff
path: root/libexec/talkd
Commit message (Collapse)AuthorAgeFilesLines
* libexec: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-2/+2
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314653
* Don't use high precision clock for expiration as only second portion isXin LI2016-12-261-7/+7
| | | | | | | | | used. MFC after: 2 weeks Notes: svn path=/head/; revision=310609
* Avoid use after free.Xin LI2016-12-261-4/+6
| | | | | | | | Reported by: Clang static code analyzer MFC after: 2 weeks Notes: svn path=/head/; revision=310608
* Don't assign 'ptr' without using it.Xin LI2015-08-301-1/+0
| | | | | | | | Reported by: clang static analyzer MFC after: 2 weeks Notes: svn path=/head/; revision=287301
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-286-30/+6
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=265044
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync from headSimon J. Gerraty2012-11-045-12/+10
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+21
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Remove the 3rd clause ("advertising clause") of the BSD license asChristian Brueffer2014-02-176-30/+6
| |/ |/| | | | | | | | | | | | | | | | | permitted by the University of Berkeley on July 22, 1999. Reviewed by: imp MFC after: 1 week Notes: svn path=/head/; revision=262136
* | More -Wmissing-variable-declarations fixes.Ed Schouten2012-10-205-12/+10
|/ | | | | | | | | | | | | In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. - libexec/rpc.rusersd: Move shared globals into an extern.h. - libexec/talkd: Move `debug' and `hostname' into extern.h. - usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree. - usr.bin/m4: Move `end_result' into extern.h. - usr.sbin/services_mkdb: Move shared globals into an extern.h. Notes: svn path=/head/; revision=241777
* Remove unneeded use of struct timezone.Ed Schouten2010-08-082-6/+4
| | | | | | | | We can safely call gettimeofday() without passing a struct timezone. We're not using it at all. Notes: svn path=/head/; revision=211056
* Port all apps in libexec/ from libulog to utmpx.Ed Schouten2010-01-132-6/+1
| | | | Notes: svn path=/head/; revision=202210
* Make WARNS=6 the default for libexec/.Ed Schouten2010-01-021-1/+0
| | | | | | | | | | | | | | | | | | Just like bin/ and sbin/, I think setting WARNS to the highest value possible will make it more attractive for people to fix warnings. - The WARNS variable is set in the Makefile in the directory of the application itself, making it more likely that it will be removed out of curiosity to see what happens. - New applications will most likely build with WARNS=6 out of the box, because the author would more likely fix the warnings during development than lower WARNS. Unfortunately almost all apps in libexec require a lowered value of WARNS. Notes: svn path=/head/; revision=201380
* Modify the sources to make WARNS=6 work.Ed Schouten2009-12-262-3/+4
| | | | Notes: svn path=/head/; revision=201022
* Unbreak the build.Ed Schouten2009-12-261-2/+1
| | | | | | | | | | I increased the WARNS, but it looks like it breaks certain architectures with more strict alignment requirements (mips, sparc64, ia64). Pointy hat to: me Notes: svn path=/head/; revision=201017
* Let talkd use utmpx instead of utmp.Ed Schouten2009-12-252-20/+17
| | | | | | | | Because strings are null terminated now, there is no need to copy ut_line into a separate buffer first. Also enable WARNS. Notes: svn path=/head/; revision=200983
* Fix some "in in" typos in comments.Christian Brueffer2008-03-261-1/+1
| | | | | | | | | | PR: 121490 Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com> Approved by: rwatson (mentor), jkoshy MFC after: 3 days Notes: svn path=/head/; revision=177626
* Prevent usage of nested externs.Xin LI2005-05-061-1/+2
| | | | Notes: svn path=/head/; revision=145967
* Whitespace.Bruce M Simpson2004-06-141-3/+3
| | | | Notes: svn path=/head/; revision=130496
* Do not depend on the global 'sockt' being initialized to 0;Bruce M Simpson2004-06-141-3/+2
| | | | | | | | | instead, use the symbolic constant STDIN_FILENO, as this is a daemon invoked from inetd. Remove 'sockt' as it is not referenced. Notes: svn path=/head/; revision=130495
* Use the new style struct sockaddr instead of osockaddr in system callsTim J. Robbins2003-09-281-4/+6
| | | | | | | | | so that talkd works without COMPAT_43. Obtained from: NetBSD (christos), Rumi Szabolcs Notes: svn path=/head/; revision=120548
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119893
* MFp4 @27667: WARNS=5 cleanup on i386.Juli Mallett2003-04-035-15/+17
| | | | | | | | | | | | | | | | | | | | | | Remove the unused FILE\ *tf from print_mesg args, and the bogus passing in of an uninitialised FILE* for it. Call a timeval 'now' instead of 'clock' due to shadowing. Remove a nested localtime declaration. Make the delete invite argument match the ID type, u_int32_t. Use const for pointers to const items. Cast to long where printing as such. Include netinet/in.h for htonl/htons. Reviewed by: imp Notes: svn path=/head/; revision=112998
* The .Nm utilityPhilippe Charnier2002-07-061-2/+4
| | | | Notes: svn path=/head/; revision=99500
* o Move NTOHL() and associated macros into <sys/param.h>. These areMike Barcroft2002-02-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=90868
* Fix minor disorder in functions declared in extern.hWarner Losh2002-02-051-1/+1
| | | | Notes: svn path=/head/; revision=90262
* o Move externs to extern.hWarner Losh2002-02-056-65/+72
| | | | | | | | | | | o Use new-style prototypes exclusively rather than the old foo() style. o Use new-style function definitions. o remove register o make functions passed to signal have the right signature. o do minor const poisoning. Notes: svn path=/head/; revision=90261
* Lock down with WFORMAT?=1, with overrides in the subdirectories whichKris Kennaway2002-02-041-1/+2
| | | | | | | are not yet warning-clean. Tested on i386 and alpha. Notes: svn path=/head/; revision=90164
* Include ttymsg.h from ../../usr.bin/wall instead of rolling our ownDima Dorfman2001-09-092-1/+3
| | | | | | | prototype. Notes: svn path=/head/; revision=83244
* Save errno in signal handlerKris Kennaway2001-07-241-0/+2
| | | | | | | | Obtained from: OpenBSD MFC After: 1 week Notes: svn path=/head/; revision=80248
* Print the month number properlyBrian Somers2001-07-131-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=79674
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79529
* In the "Message from Talk_Daemon" announcement, print the date as wellDima Dorfman2001-06-071-2/+4
| | | | | | | | | as the current time. It's nice to know whether the talk request you see was sent just a few minutes ago (assuming you didn't hear the bell), or if it's been decaying for days (weeks?). Notes: svn path=/head/; revision=77862
* - Backout botched attempt to intoduce MANSECT feature.Ruslan Ermilov2001-03-261-1/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74814
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68949
* Add $FreeBSD$ lines to man pages that are missing them to make itMike Pritchard1999-08-281-0/+1
| | | | | | | | | | easier for translation teams. PR: docs/13418 Submitted by: Alexey Zelkin <phantom@cris.net> Notes: svn path=/head/; revision=50533
* $Id$ -> $FreeBSD$Peter Wemm1999-08-286-6/+6
| | | | Notes: svn path=/head/; revision=50476
* Ensure that things returned by gethostname() andBrian Somers1999-04-071-3/+4
| | | | | | | | | | | | | friends are terminated and allow for a maximum host name length of MAXHOSTNAMELEN - 1. Put parenthesis around sizeof args. Make some variables static. Fix telnetd -u (broken by my last commit) Prompted by: bde Notes: svn path=/head/; revision=45422
* Reviewed by: freebsd-current, freebsd-securityMatthew Dillon1998-12-011-1/+6
| | | | | | | | | Removed getuid() root check so ntalkd can be run from a tty sandbox. It isn't suid root anyway, who knows why the getuid() check was even in there in the first place! Notes: svn path=/head/; revision=41440
* Fixed printf format errors.Bruce Evans1998-08-021-2/+2
| | | | Notes: svn path=/head/; revision=38024
* Don't assume that time_t is long.Bruce Evans1998-06-291-2/+4
| | | | Notes: svn path=/head/; revision=37262
* sprintf->snprintf paranoiaWarner Losh1997-12-241-4/+4
| | | | | | | Obtained from: OpenBSD (?) Notes: svn path=/head/; revision=31978
* Use err(3). Add protos for -Wall.Philippe Charnier1997-12-026-34/+73
| | | | Notes: svn path=/head/; revision=31491
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-226-6/+6
| | | | Notes: svn path=/head/; revision=22989
* Fix buffer overrun problem.Paul Traina1997-01-182-15/+24
| | | | | | | | | Cannidate for: 2.2 [must] Obtained from: Lite/2 and BSDI's published patch Notes: svn path=/head/; revision=21838