CS318 - Pintos
Pintos source browser for JHU CS318 course
src
tests
userprog
close-bad-fd.c
Go to the documentation of this file.
1
/** Tries to close an invalid fd, which must either fail silently
2
or terminate with exit code -1. */
3
4
#include <syscall.h>
5
#include "
tests/main.h
"
6
7
void
8
test_main
(
void
)
9
{
10
close
(0x20101234);
11
}
test_main
void test_main(void)
Tries to close an invalid fd, which must either fail silently or terminate with exit code -1.
Definition:
close-bad-fd.c:8
main.h
close
void close(int fd)
Definition:
syscall.c:139
Generated on Thu Aug 22 2019 10:19:15 for CS318 - Pintos by
1.8.16