|
From: <sv...@va...> - 2006-10-05 08:54:40
|
Author: tom
Date: 2006-10-05 09:54:38 +0100 (Thu, 05 Oct 2006)
New Revision: 6188
Log:
Gather information on struct statfs.
Modified:
branches/AIX5/auxprogs/aix5_VKI_info.c
Modified: branches/AIX5/auxprogs/aix5_VKI_info.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/AIX5/auxprogs/aix5_VKI_info.c 2006-10-05 08:33:11 UTC (rev 6=
187)
+++ branches/AIX5/auxprogs/aix5_VKI_info.c 2006-10-05 08:54:38 UTC (rev 6=
188)
@@ -5,6 +5,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/statfs.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
@@ -126,6 +127,14 @@
printf("#define _VKI_IOC_READ %d\n", 3 & (IOC_OUT >> 30));
printf("#define _VKI_IOC_WRITE %d\n", 3 & (IOC_IN >> 30));
printf("\n");
+ printf("/* -------------- Filesystems --------------- */\n");
+ printf("\n");
+
+ /* info about struct statfs */
+ struct statfs stf;
+ printf("sizeof(struct statfs) =3D %d\n", (int)sizeof(struct statfs));
+
+ printf("\n");
printf("/* ---------------- MMappery ---------------- */\n");
printf("\n");
printf("#define VKI_PAGE_SIZE %d\n", (int)sysconf(_SC_PAGESIZE));
|
|
From: Julian S. <js...@ac...> - 2006-10-05 10:17:10
|
Unlike libc, but like (I believe) {Open,Net,Free}BSD, I'm fairly
sure AIX passes the same structs across the libc-kernel boundary
as it does across the application-libc boundary. As a result
include/vki/vki-ppc{32,64}-aix5.h contain the bare minimum of stuff
needed for V get the services it needs from the kernel; they don't
hold enough info to write all the syscall wrappers (unlike on Linux).
To do the syscall wrappers I just #include the relevant libc headers
(see coregrind/m_syswrap/syswrap-aix5.c:254).
So I suspect .. this commit isn't really necessary.
J
On Thursday 05 October 2006 09:54, sv...@va... wrote:
> Author: tom
> Date: 2006-10-05 09:54:38 +0100 (Thu, 05 Oct 2006)
> New Revision: 6188
>
> Log:
> Gather information on struct statfs.
>
> Modified:
> branches/AIX5/auxprogs/aix5_VKI_info.c
>
>
> Modified: branches/AIX5/auxprogs/aix5_VKI_info.c
> ===================================================================
> --- branches/AIX5/auxprogs/aix5_VKI_info.c 2006-10-05 08:33:11 UTC (rev
> 6187) +++ branches/AIX5/auxprogs/aix5_VKI_info.c 2006-10-05 08:54:38 UTC
> (rev 6188) @@ -5,6 +5,7 @@
> #include <stdlib.h>
> #include <sys/types.h>
> #include <sys/stat.h>
> +#include <sys/statfs.h>
> #include <fcntl.h>
> #include <unistd.h>
> #include <sys/mman.h>
> @@ -126,6 +127,14 @@
> printf("#define _VKI_IOC_READ %d\n", 3 & (IOC_OUT >> 30));
> printf("#define _VKI_IOC_WRITE %d\n", 3 & (IOC_IN >> 30));
> printf("\n");
> + printf("/* -------------- Filesystems --------------- */\n");
> + printf("\n");
> +
> + /* info about struct statfs */
> + struct statfs stf;
> + printf("sizeof(struct statfs) = %d\n", (int)sizeof(struct statfs));
> +
> + printf("\n");
> printf("/* ---------------- MMappery ---------------- */\n");
> printf("\n");
> printf("#define VKI_PAGE_SIZE %d\n", (int)sysconf(_SC_PAGESIZE));
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Valgrind-developers mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-developers
|