[Libsysio-commit] gmdev: libsysio/drivers/native fs_native.c
Brought to you by:
lward
|
From: Ruth K. <rk...@us...> - 2004-03-04 18:29:29
|
Update of /cvsroot/libsysio/libsysio/drivers/native In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3889/drivers/native Modified Files: Tag: gmdev fs_native.c Log Message: The gmdev branch records what is currently sitting in the Cplant repository. Changes to fs_yod.c also make it compatible with the strided-io mods. Index: fs_native.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/drivers/native/fs_native.c,v retrieving revision 1.33 retrieving revision 1.33.2.1 diff -u -w -b -B -p -r1.33 -r1.33.2.1 --- fs_native.c 25 Feb 2004 16:23:58 -0000 1.33 +++ fs_native.c 4 Mar 2004 18:08:06 -0000 1.33.2.1 @@ -228,6 +228,12 @@ static int native_inop_ioctl(struct inod unsigned long int request, va_list ap); static int native_inop_mknod(struct pnode *pno, mode_t mode, dev_t dev); +static void *native_inop_mmap(struct inode *ino, + void *start, + size_t length, + int prot, + int flags, + _SYSIO_OFF_T offset); #ifdef _HAVE_STATVFS static int native_inop_statvfs(struct pnode *pno, struct inode *ino, @@ -257,6 +263,7 @@ static struct inode_ops native_i_ops = { native_inop_datasync, native_inop_ioctl, native_inop_mknod, + native_inop_mmap, #ifdef _HAVE_STATVFS native_inop_statvfs, #endif @@ -362,7 +369,7 @@ native_i_new(struct filesys *fs, struct #else buf->st_mode, /* all of the bits! */ #endif - 0, + buf->st_rdev, 0, &native_i_ops, nino); @@ -1580,3 +1587,14 @@ native_fsop_gone(struct filesys *fs __IS * native file interface. */ } + +static void * +native_inop_mmap(struct inode *ino __IS_UNUSED, + void *start __IS_UNUSED, + size_t length __IS_UNUSED, + int prot __IS_UNUSED, + int flags __IS_UNUSED, + _SYSIO_OFF_T offset __IS_UNUSED) +{ + return (void *)-ENOSYS; +} |