summaryrefslogtreecommitdiffstats
path: root/usr.bin/write/write.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix write(1) to support wide characters.glebius2012-02-131-23/+16
| | | | | Submitted by: amdmi3 PR: bin/164317
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Perform all trivial ports to utmpx for usr.bin/.ed2010-01-131-2/+1
| | | | | They were already converted to use libulog, so it's easy to convert them to utmpx.
* Let wall(1) use utmpx.ed2009-12-051-28/+23
| | | | | | | | Because our implementation guarantees the strings inside struct utmpx to be null terminated, we don't need to copy everything out, which makes the code nicer to read. Also set WARNS to 6 and add $FreeBSD$ to keep SVN happy.
* write(1) needs to strip off the leading /dev/ from the tty name for thejhb2007-11-121-3/+2
| | | | | | | | | | | | | current tty as returned from ttyname(3) so it can try to avoid writing to the current tty if possible. Previously, it did this by trimming off any leading directory (effectively performing a basename(3) on the path returned from ttyname(3)). However, this chopped off too much of the path for ttys who have directories in their name such as pts(4). Instead, just strip off the leading /dev/ from the path returned by ttyname(3). This fixes write(1) when using pts(4). MFC after: 1 week Reported by: rwatson
* Fix a typo in comment.cognet2005-01-051-1/+1
| | | | Reviewed by: mux (mentor)
* ANSIify function definitions.dwmalone2002-09-041-21/+9
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Use getopt() to reject any options and skip "--" arguments.tjr2002-05-291-10/+15
|
* remove __Pimp2002-03-221-7/+7
|
* 1) Move FreeBSD tag to after vendor ID, #if 0 vendor ID.dwmalone2002-02-271-5/+7
| | | | 2) Add missing include of stdlib.h for exit(), spotted by gcc3.
* WARNS=2 fixes, use __FBSDID(), kill register keyword.markm2001-12-111-10/+11
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Clean up some ambiguous nested if/elses.billf1999-07-041-2/+3
|
* Allow backspace tooache1997-09-151-2/+3
|
* Oops, fix upper controls testache1997-09-151-2/+3
|
* Localize it. High controls disabled in any case.ache1997-09-151-5/+11
| | | | | Shut compiler warning about signal argument. PR: 4466
* Use err(3). Add usage() and prototypes.charnier1997-08-261-62/+55
|
* Replace hardcoded length of "/dev/" with strlen(_PATH_DEV).alex1996-10-261-1/+1
| | | | Pointed out by: bde
* sprintf --> snprintfalex1996-10-261-3/+4
| | | | | | Use _PATH_DEV instead of hard coded "/dev/" Obtained from: OpenBSD, Jason Downs <downsj@OpenBSD.ORG>
* Do unctrl in right wayache1995-11-051-6/+12
| | | | Handle '\377' properly
* Remove char->int promotion.ache1995-10-291-6/+4
| | | | Fix uncontrol function for 8bit chars.
* Now works with 8bit chars...ache1995-10-281-1/+1
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+326
OpenPOWER on IntegriCloud