diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-09-25 10:28:19 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-09-25 10:28:19 -0700 |
commit | f0ba90f7e5e42a5da600eee43aaf6630e92565f0 (patch) | |
tree | 4f526042af3dba6407f2f379b053902f9dd06939 /tests/fcntl/src.c | |
parent | 3b21d884fbcb3c994931278129bec8dea76bb777 (diff) |
parse C1|C2 in headers; properly fixes fcntl
Diffstat (limited to 'tests/fcntl/src.c')
-rw-r--r-- | tests/fcntl/src.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fcntl/src.c b/tests/fcntl/src.c index 94d6f3c2..5b40ec79 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)); // XXX is the result in output correct? + printf("F_GETFL: %d\n", fcntl(f, F_GETFL) == O_RDWR); 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)); // XXX is the result in output correct? + printf("F_GETFL/2: %d\n", fcntl(f, F_GETFL) == (O_RDWR | O_APPEND)); printf("errno: %d\n", errno); printf("\n"); errno = 0; |