]> Zhao Yanbai Git Server - minix.git/commit
Message type and related cleanup
authorLionel Sambuc <lionel@minix3.org>
Mon, 12 May 2014 16:17:10 +0000 (18:17 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:34 +0000 (17:05 +0200)
commit7031438f587e647eb62cf5105d3f9d0a1ea0af71
tree6276bbf60d4ccbde712e83a8d79ed9bdb7fa2a03
parent2101b4ebc0f82d858da9407b8d58fd3dcace7260
Message type and related cleanup

 - Intorduce and use a message type for VFS_GETDENTS, VFS_READ,
   VFS_WRITE.

 - Some cleanup to related functions where vir_bytes are replaced (and
   casted to/from, in parameter definition and local variables as well.

   This allow to see more clearly which function receives unsafe
   (pointer) values, or at least values which are not supposed to be
   valid in the address space of VFS. The current patch does so only
   for the minimal amount of functions which are concerned with the
   introduction of the new message type.

Change-Id: I0cdca97409c4016d02fae067b48bf55d37572c5c
18 files changed:
include/minix/callnr.h
include/minix/ipc.h
lib/libc/sys-minix/getdents.c
lib/libc/sys-minix/ioctl.c
lib/libc/sys-minix/read.c
lib/libc/sys-minix/write.c
servers/vfs/coredump.c
servers/vfs/device.c
servers/vfs/lock.c
servers/vfs/main.c
servers/vfs/misc.c
servers/vfs/path.c
servers/vfs/pipe.c
servers/vfs/proto.h
servers/vfs/read.c
servers/vfs/request.c
servers/vfs/scratchpad.h
servers/vfs/write.c