Use "#ifdef UFS_NOCLOSE/UFS_NOWRITE" instead of "#ifdef SMALL".

This commit is contained in:
simonb 1999-02-22 10:18:40 +00:00
parent 6932c61287
commit 63e306cbe7
1 changed files with 8 additions and 6 deletions

View File

@ -30,19 +30,21 @@
* *
* filesystem.c * filesystem.c
* *
* $NetBSD: filesystem.c,v 1.2 1997/10/13 14:22:45 lukem Exp $ * $NetBSD: filesystem.c,v 1.3 1999/02/22 10:18:40 simonb Exp $
*/ */
#include <stand.h> #include <stand.h>
#include <ufs.h> #include <ufs.h>
struct fs_ops file_system[] = { #ifdef UFS_NOCLOSE
#ifdef SMALL #define ufs_close 0
{ ufs_open, 0, ufs_read, 0, ufs_seek, ufs_stat }
#else
{ ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek, ufs_stat }
#endif #endif
#ifdef UFS_NOWRITE
#define ufs_write 0
#endif
struct fs_ops file_system[] = {
{ ufs_open, ufs_close, ufs_read, ufs_write, ufs_seek, ufs_stat }
}; };
int nfsys = sizeof(file_system)/sizeof(struct fs_ops); int nfsys = sizeof(file_system)/sizeof(struct fs_ops);