1 |
/* The hurd io interface to storeio |
/* The hurd io interface to storeio |
2 |
|
|
3 |
Copyright (C) 1995,96,97,99,2000 Free Software Foundation, Inc. |
Copyright (C) 1995,96,97,99,2000,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 |
81 |
error_t |
error_t |
82 |
trivfs_S_io_read (struct trivfs_protid *cred, |
trivfs_S_io_read (struct trivfs_protid *cred, |
83 |
mach_port_t reply, mach_msg_type_name_t reply_type, |
mach_port_t reply, mach_msg_type_name_t reply_type, |
84 |
vm_address_t *data, mach_msg_type_number_t *data_len, |
char **data, mach_msg_type_number_t *data_len, |
85 |
off_t offs, mach_msg_type_number_t amount) |
loff_t offs, mach_msg_type_number_t amount) |
86 |
{ |
{ |
87 |
if (! cred) |
if (! cred) |
88 |
return EOPNOTSUPP; |
return EOPNOTSUPP; |
123 |
error_t |
error_t |
124 |
trivfs_S_io_write (struct trivfs_protid *cred, |
trivfs_S_io_write (struct trivfs_protid *cred, |
125 |
mach_port_t reply, mach_msg_type_name_t reply_type, |
mach_port_t reply, mach_msg_type_name_t reply_type, |
126 |
vm_address_t data, mach_msg_type_number_t data_len, |
char *data, mach_msg_type_number_t data_len, |
127 |
off_t offs, mach_msg_type_number_t *amount) |
loff_t offs, mach_msg_type_number_t *amount) |
128 |
{ |
{ |
129 |
if (! cred) |
if (! cred) |
130 |
return EOPNOTSUPP; |
return EOPNOTSUPP; |
272 |
error_t |
error_t |
273 |
trivfs_S_file_sync (struct trivfs_protid *cred, |
trivfs_S_file_sync (struct trivfs_protid *cred, |
274 |
mach_port_t reply, mach_msg_type_name_t reply_type, |
mach_port_t reply, mach_msg_type_name_t reply_type, |
275 |
int wait) |
int wait, int omit_metadata) |
276 |
{ |
{ |
277 |
if (cred) |
if (cred) |
278 |
return dev_sync (((struct open *)cred->po->hook)->dev, wait); |
return dev_sync (((struct open *)cred->po->hook)->dev, wait); |