Changeset View
Changeset View
Standalone View
Standalone View
head/stand/libsa/nullfs.c
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | int null_close(struct open_file *f) | ||||
return 0; | return 0; | ||||
} | } | ||||
int null_read (struct open_file *f, void *buf, size_t size, size_t *resid) | int null_read (struct open_file *f, void *buf, size_t size, size_t *resid) | ||||
{ | { | ||||
return EIO; | return EIO; | ||||
} | } | ||||
int null_write (struct open_file *f, void *buf, size_t size, size_t *resid) | int null_write (struct open_file *f, const void *buf, size_t size, size_t *resid) | ||||
{ | { | ||||
return EIO; | return EIO; | ||||
} | } | ||||
off_t null_seek (struct open_file *f, off_t offset, int where) | off_t null_seek (struct open_file *f, off_t offset, int where) | ||||
{ | { | ||||
errno = EIO; | errno = EIO; | ||||
return -1; | return -1; | ||||
Show All 11 Lines |