diff options
| author | dsl <dsl@NetBSD.org> | 2003-04-10 14:44:05 +0000 |
|---|---|---|
| committer | dsl <dsl@NetBSD.org> | 2003-04-10 14:44:05 +0000 |
| commit | cff85b34d5f7ff5f7a12ef71aa52a82389fbf9ce (patch) | |
| tree | 6a236ba36d2c9cf7198c2551ceb3ad4995976667 /sys/lib | |
| parent | 4a16b1cc1da310afa3815bec472a5d69622469ee (diff) | |
Fix prototypes of null_read and null_write, change to return errno values.
This code can't actually be used anywhere! I don't think its obvious use
would compile!
Diffstat (limited to 'sys/lib')
| -rw-r--r-- | sys/lib/libsa/nullfs.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/sys/lib/libsa/nullfs.c b/sys/lib/libsa/nullfs.c index 09bb58c279f..41738a905fc 100644 --- a/sys/lib/libsa/nullfs.c +++ b/sys/lib/libsa/nullfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: nullfs.c,v 1.4 2002/05/28 14:30:53 bjh21 Exp $ */ +/* $NetBSD: nullfs.c,v 1.5 2003/04/10 14:44:05 dsl Exp $ */ /*- * Copyright (c) 1993 @@ -74,8 +74,7 @@ int null_open(char *path, struct open_file *f) { - errno = EIO; - return -1; + return EIO; } #ifndef LIBSA_NO_FS_CLOSE @@ -87,21 +86,19 @@ null_close(struct open_file *f) } #endif -ssize_t +int null_read(struct open_file *f, void *buf, size_t size, size_t *resid) { - errno = EIO; - return -1; + return EIO; } #ifndef LIBSA_NO_FS_WRITE -ssize_t +int null_write(struct open_file *f, void *buf, size_t size, size_t *resid) { - errno = EIO; - return -1; + return EIO; } #endif @@ -110,8 +107,7 @@ off_t null_seek(struct open_file *f, off_t offset, int where) { - errno = EIO; - return -1; + return (off_t)-1; } #endif @@ -119,6 +115,5 @@ int null_stat(struct open_file *f, struct stat *sb) { - errno = EIO; - return -1; + return EIO; } |
