| 
    CS318 - Pintos
    
   Pintos source browser for JHU CS318 course 
   | 
 
 
 
 
Go to the documentation of this file.
   12 unsigned char buf[128 * 1024];
 
   25   CHECK ((handle = 
open (argv[1])) > 1, 
"open \"%s\"", argv[1]);
 
   28   for (
i = 0; 
i < size; 
i++)
 
  
int main(int argc UNUSED, char *argv[])
 
unsigned char buf[128 *1024]
 
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.
 
#define UNUSED
GCC lets us add "attributes" to functions, function parameters, etc.
 
int open(const char *file)
 
void seek(int fd, unsigned position)
 
const char * test_name
Reads a 128 kB file into static data and "sorts" the bytes in it, using counting sort,...
 
int read(int fd, void *buffer, unsigned size)