PKUOS - Pintos
Pintos source browser for PKU Operating System course
src
tests
userprog
close-stdin.c
Go to the documentation of this file.
1
/** Tries to close the keyboard input stream, which must either
2
fail silently 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
(0);
11
}
test_main
void test_main(void)
Tries to close the keyboard input stream, which must either fail silently or terminate with exit code...
Definition:
close-stdin.c:8
close
void close(int fd)
Definition:
syscall.c:139
main.h
Generated on Thu Nov 4 2021 19:31:01 for PKUOS - Pintos by
1.9.2