summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1992-01-08 23:37:11 +0000
committerMichael I. Bushnell <mib@gnu.org>1992-01-08 23:37:11 +0000
commit7293d502763d29624c716f8e60bb7c8aba17b260 (patch)
tree7e349e0eb2dd9c37663c89debc4ac376c2e155ac /hurd
parentccf281c974e967f55ac3c21f7ebfacf1cc3afda2 (diff)
Formerly shared.h.~12~
Diffstat (limited to 'hurd')
-rw-r--r--hurd/shared.h28
1 files changed, 22 insertions, 6 deletions
diff --git a/hurd/shared.h b/hurd/shared.h
index fb41e448..8244eec0 100644
--- a/hurd/shared.h
+++ b/hurd/shared.h
@@ -23,7 +23,6 @@ struct shared_io
/* This lock protects against modification to it_status. */
spin_lock_t lock;
-
enum
{
USER_IT, /* User is it */
@@ -32,6 +31,11 @@ struct shared_io
USER_NOT_IT, /* User is not it */
} it_status;
+
+ /* These values are set by the IO server only: */
+
+ int append_mode; /* append on each write */
+
int eof_notify; /* notify filesystem upon read of eof */
int do_sigio; /* call io_sigio after each operation */
@@ -42,11 +46,6 @@ struct shared_io
int read_size;
int seekable; /* the file pointer can be reduced */
- off_t file_pointer;
-
- /* These two indicate that the appropriate times need updated */
- int written;
- int accessed;
int use_prenotify_size; /* prenotify_size is meaningful */
int use_postnotify_size; /* postnotify_size is meaningful */
@@ -54,6 +53,23 @@ struct shared_io
off_t prenotify_size;
off_t postnotify_size;
+
+ /* These are set by both the IO server and the user: */
+
+ /* These have meanings just like io_map; -1 is used to indicate an
+ impossible value. */
+ off_t rd_file_pointer;
+ off_t wr_file_pointer;
+ off_t xx_file_pointer;
+
+
+ /* These are set by the user only: */
+
+ /* These two indicate that the appropriate times need updated */
+ int written;
+ int accessed;
+
+
/* Reserved for future extensions */
int reserved [32];