History log of /freebsd-10.0-release/usr.bin/write/write.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 231586 13-Feb-2012 glebius

Fix write(1) to support wide characters.

Submitted by: amdmi3
PR: bin/164317


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
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


# 202200 13-Jan-2010 ed

Perform all trivial ports to utmpx for usr.bin/.

They were already converted to use libulog, so it's easy to convert them
to utmpx.


# 200160 05-Dec-2009 ed

Let wall(1) use utmpx.

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.


# 173572 12-Nov-2007 jhb

write(1) needs to strip off the leading /dev/ from the tty name for the
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


# 139718 05-Jan-2005 cognet

Fix a typo in comment.

Reviewed by: mux (mentor)


# 102944 04-Sep-2002 dwmalone

ANSIify function definitions.
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


# 97454 29-May-2002 tjr

Use getopt() to reject any options and skip "--" arguments.


# 92922 21-Mar-2002 imp

remove __P


# 91378 27-Feb-2002 dwmalone

1) Move FreeBSD tag to after vendor ID, #if 0 vendor ID.
2) Add missing include of stdlib.h for exit(), spotted by gcc3.


# 87682 11-Dec-2001 markm

WARNS=2 fixes, use __FBSDID(), kill register keyword.


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48566 04-Jul-1999 billf

Clean up some ambiguous nested if/elses.


# 29433 14-Sep-1997 ache

Allow backspace too


# 29431 14-Sep-1997 ache

Oops, fix upper controls test


# 29430 14-Sep-1997 ache

Localize it. High controls disabled in any case.
Shut compiler warning about signal argument.
PR: 4466


# 28794 26-Aug-1997 charnier

Use err(3). Add usage() and prototypes.


# 19193 26-Oct-1996 alex

Replace hardcoded length of "/dev/" with strlen(_PATH_DEV).

Pointed out by: bde


# 19190 26-Oct-1996 alex

sprintf --> snprintf

Use _PATH_DEV instead of hard coded "/dev/"

Obtained from: OpenBSD, Jason Downs <downsj@OpenBSD.ORG>


# 12097 05-Nov-1995 ache

Do unctrl in right way
Handle '\377' properly


# 11916 29-Oct-1995 ache

Remove char->int promotion.
Fix uncontrol function for 8bit chars.


# 11898 28-Oct-1995 ache

Now works with 8bit chars...


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources