[osiris-devel] 64 Bit Transparency?

Thomas Jones thomas.jones at linux-howtos.com
Fri Mar 5 13:19:04 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I am by no means an experienced developer (actually I am just starting my CS 
degree); so I am throwing this question as a learning experience for myself.

I did a system call trace of osirismd to find all the neccessary files to 
place it into a jail. Anyways, i noticed that most(not all) system calls are 
explicitly declared as 64 bit.

Now, again with my limited knowledge; i was under the impression that the 
functions were transparent to the API via _FILE_OFFSET_BITS.

Next, I noticed as well that some calls were not using the explicit 64 bit 
structure:

open("/var/lib/osiris/osirismd.conf", O_RDONLY) = 9

and yet the following attribute call is in large file structure:

fstat64(9, {st_mode=S_IFREG|0600, st_size=221, ...}) = 0

Is there a reason why --- maybe certain platforms need this?

Thanks for your help.
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: 'Thomas Jones Package Signing Key'

iD8DBQFASMSdQT2komo99ukRAg9NAKDWk5WFbeeiYzfjAI3aM5D9094tggCgstyY
5beRp1MK6s5C69KHB2fvM/4=
=WcbD
-----END PGP SIGNATURE-----




More information about the osiris-devel mailing list