Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
  2. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  3. #include <unistd.h>
  4. #include <libc/farptrgs.h>
  5. #include <libc/bss.h>
  6. #include <menuet/os.h>
  7.  
  8. static int pid_count = -1;
  9. static pid_t my_pid;
  10.  
  11. static struct process_table_entry __tmp_proctab;
  12.  
  13. pid_t getpid(void)
  14. {
  15.  __menuet__get_process_table(&__tmp_proctab,PID_WHOAMI);
  16.  return __tmp_proctab.pid;
  17. }
  18.