CS318 - Pintos
Pintos source browser for JHU CS318 course
|
Go to the documentation of this file.
14 main (
int argc,
char *argv[])
21 CHECK (argc == 2,
"argc must be 2, actually %d", argc);
22 child_idx =
atoi (argv[1]);
int main(int argc, char *argv[])
int write(int fd, const void *buffer, unsigned size)
#define CHECK(SUCCESS,...)
Takes an expression to test for SUCCESS and a message, which may include printf-style arguments.
int atoi(const char *s)
Converts a string representation of a signed decimal integer in S into an ‘int’, which is returned.
void random_bytes(void *buf_, size_t size)
Writes SIZE random bytes into BUF.
void random_init(unsigned seed)
Initializes or reinitializes the PRNG with the given SEED.
int open(const char *file)
void seek(int fd, unsigned position)
static const char file_name[]
tests/filesys/base/syn-read.h
char buf[BUF_SIZE]
Child process for syn-read test.
void msg(const char *format,...)