National Institute of Advanced Industrial Science and Technology (AIST) This page is a page of the former research institute. We stopped updating on March 31.2001.
E-mail to webmaster (Japanese) E-mail to webmaster (English)
next up previous contents index
Next: File Systems and I/O Up: Unix System Calls Previous: Times

Process

  unix:getpid [function]

  unix:getppid [function]   unix:getpgrp integer [function]   unix:setpgrp integer [function]   unix:getuid [function]   unix:geteuid [function]   unix:getgid [function]   unix:getegid [function]   unix:setuid integer [function]   unix:setgid integer [function]   unix:fork [function]   unix:vfork [function]   unix:exec path [function]   unix:wait [function]   unix:exit code [function]   unix:getpriority which who [function]   unix:setpriority which who priority [function]   unix:getrusage who [function]
  • returns list of system resource usage information about who process. Elements are ordered as follows: More comprehensive display is obtained by lisp:rusage.
    float ru_utime (sec.) /* user time used */
    float ru_stime (sec.) /* system time used */
    int  ru_maxrss;       /* maximum resident set size */
    int  ru_ixrss;        /* currently 0 */
    int  ru_idrss;        /* integral resident set size */
    int  ru_isrss;        /* currently 0 */
    int  ru_minflt;       /* page faults without physical I/O */
    int  ru_majflt;       /* page faults with physical I/O */
    int  ru_nswap;        /* number of swaps */
    int  ru_inblock;      /* block input operations */
    int  ru_oublock;      /* block output operations */
    int  ru_msgsnd;       /* messages sent */
    int  ru_msgrcv;       /* messages received */
    int  ru_nsignals;     /* signals received */
    int  ru_nvcsw;        /* voluntary context switches */
    int  ru_nivcsw;       /* involuntary context switches */

  unix:system [command] [function]

  • executes command in a sub shell. command must be recognizable by Bourn-shell.
  unix:getenv env-var [function]
  • gets the value for the environment variable env-var.
  unix:putenv env [function]
  • adds env in the process's environment variable list. env is a string which equates var to value like "VARIABLE=value".
  unix:sleep time [function]
  • suspends execution of this process for time seconds.
  unix:usleep time [function]
  • suspends execution of this process for time micro-seconds (u represents micro). Usleep is not available on Solaris2 or other Sys5 based systems.

next up previous contents index
Next: File Systems and I/O Up: Unix System Calls Previous: Times

Hirofumi Nakagaki
Fri Mar 22 12:46:38 JST 1996