aboutsummaryrefslogtreecommitdiff
path: root/tests/fcntl
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-25 01:20:34 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-25 01:20:34 -0700
commit3b21d884fbcb3c994931278129bec8dea76bb777 (patch)
treef66854e934cf036d7c6fdca2c91421488dcc5ca7 /tests/fcntl
parentc1b363f2f4b60f8ed50964790cc15ccc97baea1a (diff)
improve header constant parsing
Diffstat (limited to 'tests/fcntl')
-rw-r--r--tests/fcntl/output.txt4
-rw-r--r--tests/fcntl/src.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/fcntl/output.txt b/tests/fcntl/output.txt
index 1077e89b..17f662d0 100644
--- a/tests/fcntl/output.txt
+++ b/tests/fcntl/output.txt
@@ -13,13 +13,13 @@ errno: 0
F_SETFD: 0
errno: 0
-F_GETFL: 2
+F_GETFL: 0
errno: 0
F_SETFL: 0
errno: 0
-F_GETFL/2: 0x402
+F_GETFL/2: 0x8
errno: 0
F_GETLK: 0
diff --git a/tests/fcntl/src.c b/tests/fcntl/src.c
index 1e9a1536..94d6f3c2 100644
--- a/tests/fcntl/src.c
+++ b/tests/fcntl/src.c
@@ -30,7 +30,7 @@ int main() {
printf("\n");
errno = 0;
- printf("F_GETFL: %d\n", fcntl(f, F_GETFL));
+ printf("F_GETFL: %d\n", fcntl(f, F_GETFL)); // XXX is the result in output correct?
printf("errno: %d\n", errno);
printf("\n");
errno = 0;
@@ -40,7 +40,7 @@ int main() {
printf("\n");
errno = 0;
- printf("F_GETFL/2: %#x\n", fcntl(f, F_GETFL));
+ printf("F_GETFL/2: %#x\n", fcntl(f, F_GETFL)); // XXX is the result in output correct?
printf("errno: %d\n", errno);
printf("\n");
errno = 0;