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