summaryrefslogtreecommitdiffstats
path: root/libexec/talkd
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r262136brueffer2014-02-246-30/+6
| | | | | | | Remove the 3rd clause ("advertising clause") of the BSD license as permitted by the University of Berkeley on July 22, 1999. Reviewed by: imp
* More -Wmissing-variable-declarations fixes.ed2012-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.
* Remove unneeded use of struct timezone.ed2010-08-082-6/+4
| | | | | We can safely call gettimeofday() without passing a struct timezone. We're not using it at all.
* Port all apps in libexec/ from libulog to utmpx.ed2010-01-132-6/+1
|
* Make WARNS=6 the default for libexec/.ed2010-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.
* Modify the sources to make WARNS=6 work.ed2009-12-262-3/+4
|
* Unbreak the build.ed2009-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
* Let talkd use utmpx instead of utmp.ed2009-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.
* Fix some "in in" typos in comments.brueffer2008-03-261-1/+1
| | | | | | | PR: 121490 Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com> Approved by: rwatson (mentor), jkoshy MFC after: 3 days
* Prevent usage of nested externs.delphij2005-05-061-1/+2
|
* Whitespace.bms2004-06-141-3/+3
|
* Do not depend on the global 'sockt' being initialized to 0;bms2004-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.
* Use the new style struct sockaddr instead of osockaddr in system callstjr2003-09-281-4/+6
| | | | | | so that talkd works without COMPAT_43. Obtained from: NetBSD (christos), Rumi Szabolcs
* mdoc(7): Use the new feature of the .In macro.ru2003-09-081-1/+1
|
* MFp4 @27667: WARNS=5 cleanup on i386.jmallett2003-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
* The .Nm utilitycharnier2002-07-061-2/+4
|
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-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
* Fix minor disorder in functions declared in extern.himp2002-02-051-1/+1
|
* o Move externs to extern.himp2002-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.
* Lock down with WFORMAT?=1, with overrides in the subdirectories whichkris2002-02-041-1/+2
| | | | are not yet warning-clean. Tested on i386 and alpha.
* Include ttymsg.h from ../../usr.bin/wall instead of rolling our owndd2001-09-092-1/+3
| | | | prototype.
* Save errno in signal handlerkris2001-07-241-0/+2
| | | | | Obtained from: OpenBSD MFC After: 1 week
* Print the month number properlybrian2001-07-131-1/+1
| | | | MFC after: 1 week
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* In the "Message from Talk_Daemon" announcement, print the date as welldd2001-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?).
* - Backout botched attempt to intoduce MANSECT feature.ru2001-03-261-1/+1
| | | | - MAN[1-9] -> MAN.
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Add $FreeBSD$ lines to man pages that are missing them to make itmpp1999-08-281-0/+1
| | | | | | | easier for translation teams. PR: docs/13418 Submitted by: Alexey Zelkin <phantom@cris.net>
* $Id$ -> $FreeBSD$peter1999-08-286-6/+6
|
* Ensure that things returned by gethostname() andbrian1999-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
* Reviewed by: freebsd-current, freebsd-securitydillon1998-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!
* Fixed printf format errors.bde1998-08-021-2/+2
|
* Don't assume that time_t is long.bde1998-06-291-2/+4
|
* sprintf->snprintf paranoiaimp1997-12-241-4/+4
| | | | Obtained from: OpenBSD (?)
* Use err(3). Add protos for -Wall.charnier1997-12-026-34/+73
|
* Revert $FreeBSD$ to $Id$peter1997-02-226-6/+6
|
* Fix buffer overrun problem.pst1997-01-182-15/+24
| | | | | | Cannidate for: 2.2 [must] Obtained from: Lite/2 and BSDI's published patch
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-146-6/+6
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* add forgotten $Id$wosch1996-09-226-0/+11
|
* zap #include <sgtty.h>, it's not used.peter1996-09-071-1/+0
|
* Here is a patch to talkd which makes it send the request to the tty withjkh1996-03-241-5/+10
| | | | | the lowest idle time. Submitted by: loodvrij@gridpoint.com (Bruce J. Keeler)
* Remove trailing whitespace.rgrimes1995-05-304-9/+9
|
* Fix hostnames >32 charsache1994-12-151-1/+2
| | | | Submitted by: cstruble@singularity.bevc.blacksburg.va.us
* Implement security fix correctly: via isprint()ache1994-10-221-5/+8
|
* A nice little security fix. Things must be rough in moscow...phk1994-10-221-0/+5
| | | | Submitted by: dima@demos.su (Dima Ruban)
* Update to new make macros and disable Kerberos because we haven't got itwollman1994-08-051-1/+1
| | | | set up right yet.
* Reviewed by: phkphk1994-07-241-1/+1
| | | | changed ^G to \007
* BSD 4.4 Lite Libexec Sourcesrgrimes1994-05-277-0/+907
OpenPOWER on IntegriCloud