projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Improve.
[pintos-anon]
/
grading
/
userprog
/
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
}