summaryrefslogtreecommitdiffstats
path: root/usr.bin/write/write.c
AgeCommit message (Expand)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-5/+5
2018-09-18Use user_from_uid(3) if getlogin(2) fails, storing the uid as amillert1-9/+5
2016-02-05Make write explicitly ASCII only by transforming UTF-8 characters and non-ASCIImartijn1-15/+24
2015-10-20Fix write to other user's tty. The device has to be opened withbluhm1-3/+10
2015-10-09Change all tame callers to namechange to pledge(2).deraadt1-3/+3
2015-10-06unfortunately tame "stdio" can only happen well after the sequence of:deraadt1-1/+8
2015-10-05Since the dawn of time, this has contained freopen() for the tty pathderaadt1-2/+2
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-5/+5
2013-04-16remove casts to time_t * which are not neededderaadt1-2/+2
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-14/+1
2008-07-06sync synopsis and usage.sobrado1-3/+3
2006-10-04if the utmp file is (mysteriously gone) do not assume that the user isderaadt1-3/+3
2005-07-04make these use setres[ug]id for simple privilege dropping;djm1-4/+6
2003-07-10add missing includesdavid1-2/+3
2003-06-10mostly ansi cleanup; pval okderaadt1-3/+3
2003-06-03Remove the advertising clause in the UCB license which Berkeleymillert1-7/+3
2003-03-13a few more strlcpyderaadt1-8/+8
2002-12-09do not use sys/types.h and sys/param.h together; andrushock@korovino.netderaadt1-3/+2
2002-08-04ansi, and revoke privs after opening the ttyderaadt1-22/+14
2002-02-21use sizeof w/ defines; niklas@ millert@ ok.fgsch1-4/+4
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert1-8/+8
2001-11-19kill more registersmpech1-7/+7
2001-11-02avoid stdio in signal handlerderaadt1-3/+3
2001-06-27-Wall cleanup; ok millert@jasoni1-5/+8
2001-01-19mark remaining signal races which are difficult to fix, and fix a few partiallyderaadt1-7/+10
1999-02-21vis() buf overflowderaadt1-3/+3
1998-07-06kill non-POSIX S_IWRITEderaadt1-3/+3
1996-10-26missed one change, pointed out by Alex Nash <nash@mcs.net>downsj1-3/+3
1996-10-25kill sprintf, use paths.hdownsj1-5/+6
1996-08-26VIS_NOSLASHderaadt1-3/+3
1996-08-26vis this baby tooderaadt1-13/+10
1996-06-26rcsidderaadt1-1/+2
1995-11-17handle meta characters; good security idea from freebsdderaadt1-5/+10
1995-10-23warn if my permissions are off; but still allow a writederaadt1-1/+1
1995-10-18initial import of NetBSD treederaadt1-0/+318