/[hurd]/hurd/trans/null.c
ViewVC logotype

Diff of /hurd/trans/null.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by roland, Mon Feb 26 04:16:01 2001 UTC revision 1.25 by roland, Thu Jun 13 21:26:30 2002 UTC
# Line 1  Line 1 
1  /* A translator for providing endless empty space and immediate eof.  /* A translator for providing endless empty space and immediate eof.
2    
3     Copyright (C) 1995,96,97,98,99,2001 Free Software Foundation, Inc.     Copyright (C) 1995,96,97,98,99,2001,02 Free Software Foundation, Inc.
4     Written by Miles Bader <miles@gnu.org>     Written by Miles Bader <miles@gnu.org>
5    
6     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
# Line 123  trivfs_goaway (struct trivfs_control *fs Line 123  trivfs_goaway (struct trivfs_control *fs
123     mapping; they will set none of the ports and return an error.  Such     mapping; they will set none of the ports and return an error.  Such
124     objects can still be accessed by io_read and io_write.  */     objects can still be accessed by io_read and io_write.  */
125  kern_return_t  kern_return_t
126  trivfs_S_io_map(struct trivfs_protid *cred,  trivfs_S_io_map (struct trivfs_protid *cred,
127                  memory_object_t *rdobj,                   mach_port_t reply, mach_msg_type_name_t replytype,
128                  mach_msg_type_name_t *rdtype,                   memory_object_t *rdobj,
129                  memory_object_t *wrobj,                   mach_msg_type_name_t *rdtype,
130                  mach_msg_type_name_t *wrtype)                   memory_object_t *wrobj,
131                     mach_msg_type_name_t *wrtype)
132  {  {
133    return EINVAL;                /* XXX should work! */    return EINVAL;                /* XXX should work! */
134  }  }
# Line 138  trivfs_S_io_map(struct trivfs_protid *cr Line 139  trivfs_S_io_map(struct trivfs_protid *cr
139  kern_return_t  kern_return_t
140  trivfs_S_io_read(struct trivfs_protid *cred,  trivfs_S_io_read(struct trivfs_protid *cred,
141                   mach_port_t reply, mach_msg_type_name_t replytype,                   mach_port_t reply, mach_msg_type_name_t replytype,
142                   vm_address_t *data,                   char **data,
143                   mach_msg_type_number_t *datalen,                   mach_msg_type_number_t *datalen,
144                   off_t offs,                   loff_t offs,
145                   mach_msg_type_number_t amt)                   mach_msg_type_number_t amt)
146  {  {
147    if (!cred)    if (!cred)
# Line 191  trivfs_S_io_seek (struct trivfs_protid * Line 192  trivfs_S_io_seek (struct trivfs_protid *
192  kern_return_t  kern_return_t
193  trivfs_S_io_select (struct trivfs_protid *cred,  trivfs_S_io_select (struct trivfs_protid *cred,
194                      mach_port_t reply, mach_msg_type_name_t replytype,                      mach_port_t reply, mach_msg_type_name_t replytype,
195                      int *type, int *tag)                      int *type)
196  {  {
197    if (!cred)    if (!cred)
198      return EOPNOTSUPP;      return EOPNOTSUPP;
# Line 213  trivfs_S_io_select (struct trivfs_protid Line 214  trivfs_S_io_select (struct trivfs_protid
214  kern_return_t  kern_return_t
215  trivfs_S_io_write (struct trivfs_protid *cred,  trivfs_S_io_write (struct trivfs_protid *cred,
216                     mach_port_t reply, mach_msg_type_name_t replytype,                     mach_port_t reply, mach_msg_type_name_t replytype,
217                     vm_address_t data, mach_msg_type_number_t datalen,                     char *data, mach_msg_type_number_t datalen,
218                     off_t offs, mach_msg_type_number_t *amt)                     loff_t offs, mach_msg_type_number_t *amt)
219  {  {
220    if (!cred)    if (!cred)
221      return EOPNOTSUPP;      return EOPNOTSUPP;
# Line 226  trivfs_S_io_write (struct trivfs_protid Line 227  trivfs_S_io_write (struct trivfs_protid
227    
228  /* Truncate file.  */  /* Truncate file.  */
229  kern_return_t  kern_return_t
230  trivfs_S_file_set_size (struct trivfs_protid *cred, off_t size)  trivfs_S_file_set_size (struct trivfs_protid *cred,
231                            mach_port_t reply, mach_msg_type_name_t replytype,
232                            loff_t size)
233  {  {
234    return 0;    return 0;
235  }  }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26