minix/lib/libc/sys-minix
Lionel Sambuc 7031438f58 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
2014-07-28 17:05:34 +02:00
..
__getcwd.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
__getlogin.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_exit.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
_mcontext.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
_ucontext.c <machine/mcontext.h> 2014-03-03 20:47:03 +01:00
accept.c UDS: support for nonblocking sockets 2014-03-01 09:04:57 +01:00
access.c Message type for path related calls. 2014-07-28 17:05:33 +02:00
adjtime.c PM_TIME_SEC into 64bit 2014-03-03 20:45:28 +01:00
bind.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
brk.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
chdir.c Message type for VFS_FCHDIR 2014-07-28 17:05:34 +02:00
chmod.c Message type for path related calls. 2014-07-28 17:05:33 +02:00
chown.c Message type for VFS_{,F}CHOWN 2014-07-28 17:05:34 +02:00
chroot.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
clock_getres.c PM_TIME_SEC into 64bit 2014-03-03 20:45:28 +01:00
clock_gettime.c PM_TIME_SEC into 64bit 2014-03-03 20:45:28 +01:00
clock_settime.c PM_TIME_SEC into 64bit 2014-03-03 20:45:28 +01:00
close.c Message type for VFS_CLOSE 2014-07-28 17:05:34 +02:00
connect.c Retire EBADIOCTL in favor of ENOTTY 2014-03-01 09:04:51 +01:00
cprofile.c Follow the namespace pattern for [cs]profile 2014-07-28 17:05:22 +02:00
dup.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
dup2.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
environ.c Remove ACK EM_WSIZE/EM_PSIZE macro usage 2012-08-06 17:49:22 +02:00
execve.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
fchmod.c Message type for VFS_FCHMOD 2014-07-28 17:05:34 +02:00
fchown.c Message type for VFS_{,F}CHOWN 2014-07-28 17:05:34 +02:00
fcntl.c Message type for VFS_FCNTL 2014-07-28 17:05:33 +02:00
flock.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
fork.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
fpathconf.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
fstatfs.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
fstatvfs.c Message type for VFS_{,F}STATVFS1 2014-07-28 17:05:30 +02:00
fsync.c Message type for VFS_FSYNC 2014-07-28 17:05:31 +02:00
ftruncate.c Message type for VFS_TRUNCATE 2014-07-28 17:05:32 +02:00
futimens.c Removing VFS_UTIMENS_* field macros. 2014-03-03 20:47:00 +01:00
futimes.c Removing VFS_UTIMENS_* field macros. 2014-03-03 20:47:00 +01:00
gcov_flush.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
getdents.c Message type and related cleanup 2014-07-28 17:05:34 +02:00
getegid.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
geteuid.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
getgid.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
getgroups.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
getitimer.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
getpeername.c <sys/socket.h>, <netinet/{in,tcp,udp,udp_var}.h> 2014-03-03 20:47:03 +01:00
getpgrp.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
getpid.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
getppid.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
getrlimit.c Stub for setrlimit 2014-07-28 17:05:23 +02:00
getrusage.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
getsid.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getsockname.c <sys/socket.h>, <netinet/{in,tcp,udp,udp_var}.h> 2014-03-03 20:47:03 +01:00
getsockopt.c Retire EBADIOCTL in favor of ENOTTY 2014-03-01 09:04:51 +01:00
gettimeofday.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
getuid.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
getvfsstat.c Message type for VFS_GETVFSSTAT 2014-07-28 17:05:30 +02:00
init.c Adding ipc_ prefix to ipc primitives 2014-03-01 09:05:01 +01:00
ioctl.c Message type and related cleanup 2014-07-28 17:05:34 +02:00
issetugid.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
kill.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
link.c Message type for VFS_{LINK,SYMLINK,RENAME} 2014-07-28 17:05:32 +02:00
listen.c Retire EBADIOCTL in favor of ENOTTY 2014-03-01 09:04:51 +01:00
loadname.c Message type for path related calls. 2014-07-28 17:05:33 +02:00
lseek.c Message type for VFS_LSEEK 2014-07-28 17:05:32 +02:00
lutimes.c Removing VFS_UTIMENS_* field macros. 2014-03-03 20:47:00 +01:00
m_closefrom.c <sys/syslimits.h> 2014-03-03 20:47:06 +01:00
Makefile.inc Stub for setpgid 2014-07-28 17:05:24 +02:00
minix_rs.c _MINIX_SYSTEM - fixes for in-minix crossbuild 2014-07-28 17:05:14 +02:00
MISSING_SYSCALLS Implement support for getvfsstat(2) 2014-02-18 11:25:02 +01:00
mkdir.c Message type for path related calls. 2014-07-28 17:05:33 +02:00
mkfifo.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
mknod.c Message type for VFS_MKNOD 2014-07-28 17:05:33 +02:00
mmap.c _MINIX_SYSTEM - fixes for in-minix crossbuild 2014-07-28 17:05:14 +02:00
mount.c Message type for VFS_UMOUNT 2014-07-28 17:05:31 +02:00
nanosleep.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
open.c Message type for VFS_CREAT 2014-07-28 17:05:33 +02:00
pathconf.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
pipe.c Message type for VFS_PIPE2 2014-07-28 17:05:32 +02:00
poll.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
pread.c include/unistd.h: merged 2014-03-03 20:47:02 +01:00
priority.c <sys/resource.h> 2014-03-03 20:47:06 +01:00
ptrace.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
pwrite.c include/unistd.h: merged 2014-03-03 20:47:02 +01:00
read.c Message type and related cleanup 2014-07-28 17:05:34 +02:00
readlink.c Message type for VFS_READLINK 2014-07-28 17:05:32 +02:00
reboot.c big <utmp.h>-inspired netbsd switch 2014-03-01 09:05:02 +01:00
recvfrom.c <sys/socket.h>, <netinet/{in,tcp,udp,udp_var}.h> 2014-03-03 20:47:03 +01:00
recvmsg.c align <sys/ucontext.h> <sys/uio.h> <sys/un.h> 2014-03-03 20:47:03 +01:00
rename.c Message type for VFS_{LINK,SYMLINK,RENAME} 2014-07-28 17:05:32 +02:00
rmdir.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
sbrk.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
select.c Message type for VFS_SELECT 2014-07-28 17:05:30 +02:00
sem.c _MINIX_SYSTEM - fixes for in-minix crossbuild 2014-07-28 17:05:14 +02:00
sendmsg.c Retire EBADIOCTL in favor of ENOTTY 2014-03-01 09:04:51 +01:00
sendto.c Retire EBADIOCTL in favor of ENOTTY 2014-03-01 09:04:51 +01:00
setgid.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
setgroups.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
setitimer.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
setpgid.c Stub for setpgid 2014-07-28 17:05:24 +02:00
setrlimit.c Stub for setrlimit 2014-07-28 17:05:23 +02:00
setsid.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
setsockopt.c Retire EBADIOCTL in favor of ENOTTY 2014-03-01 09:04:51 +01:00
settimeofday.c libc: add clock_settime() system call. 2013-04-04 15:04:54 +02:00
setuid.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
shmat.c _MINIX_SYSTEM - fixes for in-minix crossbuild 2014-07-28 17:05:14 +02:00
shmctl.c _MINIX_SYSTEM - fixes for in-minix crossbuild 2014-07-28 17:05:14 +02:00
shmget.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
shutdown.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
sigaction.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
sigpending.c use netbsd <sys/signal.h> and sigset_t 2014-03-02 12:28:31 +01:00
sigprocmask.c <machine/signal.h> 2014-03-03 20:47:07 +01:00
sigreturn.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
sigsuspend.c use netbsd <sys/signal.h> and sigset_t 2014-03-02 12:28:31 +01:00
sizeup.c retire 64-bit conversion functions 2013-06-24 16:50:57 +02:00
socket.c <sys/socket.h>, <netinet/{in,tcp,udp,udp_var}.h> 2014-03-03 20:47:03 +01:00
socketpair.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
sprofile.c Follow the namespace pattern for [cs]profile 2014-07-28 17:05:22 +02:00
stack_utils.c _MINIX_SYSTEM - fixes for in-minix crossbuild 2014-07-28 17:05:14 +02:00
stat.c Message type for VFS_FSTAT 2014-07-28 17:05:33 +02:00
statvfs.c Message type for VFS_{,F}STATVFS1 2014-07-28 17:05:30 +02:00
stime.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
svrctl.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
symlink.c Message type for VFS_{LINK,SYMLINK,RENAME} 2014-07-28 17:05:32 +02:00
sync.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
syscall.c Adding ipc_ prefix to ipc primitives 2014-03-01 09:05:01 +01:00
sysuname.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
truncate.c Message type for VFS_TRUNCATE 2014-07-28 17:05:32 +02:00
umask.c Message type for VFS_UMASK 2014-07-28 17:05:32 +02:00
unlink.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
utimensat.c Removing VFS_UTIMENS_* field macros. 2014-03-03 20:47:00 +01:00
utimes.c Removing VFS_UTIMENS_* field macros. 2014-03-03 20:47:00 +01:00
vectorio.c Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC) 2014-07-28 17:05:06 +02:00
vfork.c Clean up interface to PM and VFS 2014-03-01 09:05:01 +01:00
write.c Message type and related cleanup 2014-07-28 17:05:34 +02:00