summaryrefslogtreecommitdiff
path: root/libexec/talkd
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* add forgotten $Id$Wolfram Schneider1996-09-226-0/+11
| | | | Notes: svn path=/head/; revision=18471
* zap #include <sgtty.h>, it's not used.Peter Wemm1996-09-071-1/+0
| | | | Notes: svn path=/head/; revision=18094
* Here is a patch to talkd which makes it send the request to the tty withJordan K. Hubbard1996-03-241-5/+10
| | | | | | | | the lowest idle time. Submitted by: loodvrij@gridpoint.com (Bruce J. Keeler) Notes: svn path=/head/; revision=14783
* Remove trailing whitespace.Rodney W. Grimes1995-05-304-9/+9
| | | | Notes: svn path=/head/; revision=8870
* Fix hostnames >32 charsAndrey A. Chernov1994-12-151-1/+2
| | | | | | | Submitted by: cstruble@singularity.bevc.blacksburg.va.us Notes: svn path=/head/; revision=5111
* Implement security fix correctly: via isprint()Andrey A. Chernov1994-10-221-5/+8
| | | | Notes: svn path=/head/; revision=3793
* A nice little security fix. Things must be rough in moscow...Poul-Henning Kamp1994-10-221-0/+5
| | | | | | | Submitted by: dima@demos.su (Dima Ruban) Notes: svn path=/head/; revision=3791
* Update to new make macros and disable Kerberos because we haven't got itGarrett Wollman1994-08-051-1/+1
| | | | | | | set up right yet. Notes: svn path=/head/; revision=1875
* Reviewed by: phkPoul-Henning Kamp1994-07-241-1/+1
| | | | | | | changed ^G to \007 Notes: svn path=/head/; revision=1801
* BSD 4.4 Lite Libexec SourcesRodney W. Grimes1994-05-277-0/+907
Notes: svn path=/vendor/CSRG/dist/; revision=1592