Permalink
Browse files

While looking at a possible 64/32-bit clash (there wasn't one after

all) noticed, that offsets.c was busted.  Fixed.
  • Loading branch information...
1 parent 3b4f502 commit 281971d456c72865db87599343ca2e50cb6a6b2c seebs committed Aug 26, 2010
Showing with 6 additions and 1 deletion.
  1. +3 −0 ChangeLog.txt
  2. +3 −1 offsets.c
View
@@ -1,3 +1,6 @@
+2010-08-26:
+ * (seebs) make offsets.c slightly less useless
+
2010-08-25:
* (seebs) fix the signal mask restore
View
@@ -36,7 +36,7 @@ main(void) {
printf("type: %d\n", (int) offsetof(pseudo_msg_t, type));
printf("op: %d\n", (int) offsetof(pseudo_msg_t, op));
printf("result: %d\n", (int) offsetof(pseudo_msg_t, result));
- printf("rwx: %d\n", (int) offsetof(pseudo_msg_t, rwx));
+ printf("access: %d\n", (int) offsetof(pseudo_msg_t, access));
printf("client: %d\n", (int) offsetof(pseudo_msg_t, client));
printf("dev: %d\n", (int) offsetof(pseudo_msg_t, dev));
printf("ino: %d\n", (int) offsetof(pseudo_msg_t, ino));
@@ -45,6 +45,8 @@ main(void) {
printf("mode: %d\n", (int) offsetof(pseudo_msg_t, mode));
printf("rdev: %d\n", (int) offsetof(pseudo_msg_t, rdev));
printf("pathlen: %d\n", (int) offsetof(pseudo_msg_t, pathlen));
+ printf("nlink: %d\n", (int) offsetof(pseudo_msg_t, nlink));
+ printf("deleting: %d\n", (int) offsetof(pseudo_msg_t, deleting));
printf("path: %d\n", (int) offsetof(pseudo_msg_t, path));
printf("size: %d\n", (int) sizeof(pseudo_msg_t));
return 0;

0 comments on commit 281971d

Please sign in to comment.