From fd2b1634bb0698c7cf6b1dd2489bab2777f34831 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 15 Jul 2010 08:10:48 +0000 Subject: 2010-07-16 Sebastian Huber * libcsupport/include/rtems/libio.h: Removed file_info and handlers fields in rtems_libio_t. * libcsupport/src/close.c, libcsupport/src/fcntl.c, libcsupport/src/fdatasync.c, libcsupport/src/fstat.c, libcsupport/src/fsync.c, libcsupport/src/ftruncate.c, libcsupport/src/getdents.c, libcsupport/src/ioctl.c, libcsupport/src/libio_sockets.c, libcsupport/src/lseek.c, libcsupport/src/open.c, libcsupport/src/read.c, libcsupport/src/readv.c, libcsupport/src/write.c, libcsupport/src/writev.c, libfs/src/devfs/devclose.c, libfs/src/devfs/devioctl.c, libfs/src/devfs/devopen.c, libfs/src/devfs/devread.c, libfs/src/devfs/devwrite.c libfs/src/dosfs/msdos_dir.c libfs/src/dosfs/msdos_file.c libfs/src/imfs/deviceio.c libfs/src/imfs/imfs_directory.c libfs/src/imfs/imfs_fifo.c libfs/src/imfs/memfile.c libfs/src/nfsclient/src/nfs.c libfs/src/rfs/rtems-rfs-rtems-file.c libfs/src/rfs/rtems-rfs-rtems.h libnetworking/lib/ftpfs.c: Reflect changes above. --- cpukit/libfs/src/nfsclient/src/nfs.c | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) (limited to 'cpukit/libfs/src/nfsclient/src') diff --git a/cpukit/libfs/src/nfsclient/src/nfs.c b/cpukit/libfs/src/nfsclient/src/nfs.c index 6b349445c2..ae50cd8b81 100644 --- a/cpukit/libfs/src/nfsclient/src/nfs.c +++ b/cpukit/libfs/src/nfsclient/src/nfs.c @@ -2515,23 +2515,6 @@ struct _rtems_filesystem_operations_table nfs_fs_ops = { 'nfs_xxx'. *****************************************/ - -#if 0 -/* from rtems/libio.h for convenience */ -struct rtems_libio_tt { - rtems_driver_name_t *driver; - off_t size; /* size of file */ - off_t offset; /* current offset into file */ - uint32_t flags; - rtems_filesystem_location_info_t pathinfo; - Objects_Id sem; - uint32_t data0; /* private to "driver" */ - void *data1; /* ... */ - void *file_info; /* used by file handlers */ - rtems_filesystem_file_handlers_r *handlers; /* type specific handlers */ -}; -#endif - /* stateless NFS protocol makes this trivial */ static int nfs_file_open( rtems_libio_t *iop, @@ -2540,14 +2523,13 @@ static int nfs_file_open( uint32_t mode ) { - iop->file_info = 0; return 0; } /* reading directories is not stateless; we must * remember the last 'read' position, i.e. * the server 'cookie'. We do manage this information - * attached to the iop->file_info. + * attached to the pathinfo.node_access_2. */ static int nfs_dir_open( rtems_libio_t *iop, @@ -2560,11 +2542,11 @@ NfsNode node = iop->pathinfo.node_access; DirInfo di; /* create a readdirargs object and copy the file handle; - * attach to the file_info. + * attach to the pathinfo.node_access_2 */ di = (DirInfo) malloc(sizeof(*di)); - iop->file_info = di; + iop->pathinfo.node_access_2 = di; if ( !di ) { errno = ENOMEM; @@ -2598,8 +2580,8 @@ static int nfs_dir_close( rtems_libio_t *iop ) { - free(iop->file_info); - iop->file_info = 0; + free(iop->pathinfo.node_access_2); + iop->pathinfo.node_access_2 = 0; return 0; } @@ -2656,7 +2638,7 @@ static ssize_t nfs_dir_read( size_t count ) { -DirInfo di = iop->file_info; +DirInfo di = iop->pathinfo.node_access_2; RpcUdpServer server = ((Nfs)iop->pathinfo.mt_entry->fs_info)->server; if ( di->eofreached ) @@ -2814,7 +2796,7 @@ static rtems_off64_t nfs_dir_lseek( int whence ) { -DirInfo di = iop->file_info; +DirInfo di = iop->pathinfo.node_access_2; /* we don't support anything other than * rewinding -- cgit v1.2.3