projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
74dbbf4876c8d270698d756c56de183990489b94
[pintos-anon]
/
open-normal.c
1
#include <stdio.h>
2
#include <syscall.h>
3
4
int
5
main (void)
6
{
7
int handle;
8
printf ("(open-normal) begin\n");
9
handle = open ("sample.txt");
10
if (handle < 2)
11
printf ("(open-normal) fail: open() returned %d\n", handle);
12
printf ("(open-normal) end\n");
13
return 0;
14
}