Official MINIX sources - Automatically replicated from gerrit.minix3.org
Go to file
Thomas Veerman a9d0ffbd0d Define protocol version of {mode,ino,uid,gid}_t
The next commit will make mode_t 32-bits, ino_t 64-bits, nlink_t
32-bits, and off_t 64-bits. However, in the protocol there is no
room for that.

When analyzing the usage of these data types we can see that of
mode_t we currently use 15 bits and that future flags (if copied
from NetBSD) are only of importance to VFS and not to the actual
file system on disk. Therefore we can get away with keeping the
protocol version of mode_t (pmode_t) 16 bits.

At this point it is unlikely that MINIX will support file systems
that can hold more than 2^32 files. Keeping the protocol version of
ino_t (pino_t) 32-bits and exposing it as 64-bits to the rest of the
system is fine.

uid_t and gid_t are already 32-bits, but in behind the scenes they're
16-bits. This is sufficient since we don't support uid/gids larger
than 2^16-1.

off_t will become 64-bits, but the protocol had room reserved
for that since it was revised years ago.

So to make the difference clear between what the protocol supports
and what is exposed to the system, we define protocol version of
these data types.

Change-Id: Ifb883aafb222142e69d6dcc3049a47170b78b3ee
2013-03-28 19:39:21 +00:00
benchmarks Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
bin Importing bin/ksh 2013-03-14 11:33:10 +01:00
commands Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
common __aeabi_ldivmod: fix sign logic 2013-02-11 21:37:10 +01:00
dist/nvi Termcap update, replacing elvis by nvi. 2013-01-24 07:44:38 +01:00
distrib lwip (inet's alternative) is compiled by default 2013-03-25 16:51:25 +01:00
docs Importing bin/ksh 2013-03-14 11:33:10 +01:00
drivers Move MINIX reboot definitions into minix/reboot.h 2013-03-20 16:50:01 +00:00
etc Importing bin/ksh 2013-03-14 11:33:10 +01:00
external Reduce differences in libgcc Makefiles for ARM 2013-03-08 09:41:49 +01:00
gnu/dist Toolchain upgrade and portability improvements. 2012-11-15 16:07:29 +01:00
include Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
kernel Move MINIX reboot definitions into minix/reboot.h 2013-03-20 16:50:01 +00:00
lib Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
libexec Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
man Importing usr.bin/whatis 2013-03-23 16:10:23 +01:00
releasetools Importing usr.bin/from 2013-03-23 16:11:11 +01:00
sbin Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
servers Define protocol version of {mode,ino,uid,gid}_t 2013-03-28 19:39:21 +00:00
share lwip (inet's alternative) is compiled by default 2013-03-25 16:51:25 +01:00
sys Move MINIX reboot definitions into minix/reboot.h 2013-03-20 16:50:01 +00:00
test Rename "struct partition" to "struct part_geom" 2013-03-20 16:14:21 +00:00
tools Removing forgotten, useless, renegade defines 2013-02-27 10:54:04 +01:00
usr.bin Importing usr.bin/from 2013-03-23 16:11:11 +01:00
usr.sbin Removing obsolete _NBSD_LIBC define 2013-02-26 09:44:24 +00:00
.gitignore gitignore: ignore some more generated files 2012-12-06 13:29:20 +00:00
.gitreview misc:Add gerrit code review support. 2013-01-16 09:44:16 +01:00
build.sh Reverting back to default value of MKARZERO 2013-01-17 10:03:58 +01:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile Installing posix tests in /usr/tests/minix-posix 2013-03-13 10:43:16 +01:00