[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hurd/trans streamio.c
From: |
Roland McGrath |
Subject: |
hurd/trans streamio.c |
Date: |
Sat, 20 Jan 2001 16:57:11 -0800 |
CVSROOT: /cvs
Module name: hurd
Changes by: Roland McGrath <address@hidden> 01/01/20 16:57:11
Modified files:
trans : streamio.c
Log message:
2001-01-20 Roland McGrath <address@hidden>
* streamio.c (options): Add aliases --rdonly, --ro for -r.
Add aliases --rdwr, -rw for -w.
Add new option --writeonly/--wronly/-W.
(readonly): Variable removed.
(parse_opt): Set trivfs_allow_open for -r/-w/-W.
(main): Don't set trivfs_allow_open here. Instead, use it to decide
whether to set up input_buffer/output_buffer or not.
(open_hook): Use trivfs_allow_open instead of readonly.
Check whether read is allowed too.
(trivfs_modify_stat): Likewise.
(clear_buffer): Do nothing if argument is null.
* streamio.c (stream_name, readonly, rdev, nperopens): Remove
superfluous zero initializers.
CVSWeb URLs:
http://subversions.gnu.org/cgi-bin/cvsweb/hurd/trans/streamio.c.diff?r1=1.2&r2=1.3