Skip to content
Snippets Groups Projects
linux.cc 326 B
Newer Older
  • Learn to ignore specific revisions
  • #include "debug.hh"
    
    #include <boost/format.hpp>
    
    #include <unistd.h>
    #include <linux/unistd.h>
    
    
    long gettid()
    {
        return 0; // FIXME
    }
    
    
    long syscall(long number, ...)
    {
    
        switch (number) {
        case __NR_gettid: return gettid();
        }
    
    
        debug(fmt("unimplemented syscall %d") % number);