home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat3 / system.0 < prev    next >
Text File  |  1993-12-07  |  1KB  |  67 lines

  1.  
  2. SYSTEM(3)                  UNIX Programmer's Manual                  SYSTEM(3)
  3.  
  4. NNAAMMEE
  5.      ssyysstteemm - pass a command to the shell
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssttddlliibb..hh>>
  9.  
  10.      _i_n_t
  11.      ssyysstteemm(_c_o_n_s_t _c_h_a_r _*_s_t_r_i_n_g)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The ssyysstteemm() function hands the argument _s_t_r_i_n_g to the command inter­
  15.      preter sh(1).  The calling process waits for the shell to finish execut­
  16.      ing the command, ignoring SIGINT and SIGQUIT, and blocking SIGCHLD.
  17.  
  18.      If _s_t_r_i_n_g is a NULL pointer, ssyysstteemm() will return non­zero if the command
  19.      interpreter sh(1) is available, and zero if it is not.
  20.  
  21.      The ssyysstteemm() function returns the exit status of the shell, or -1 if the
  22.      wait(3) for the shell failed.  A return value of 127 means the execution
  23.      of the shell failed.
  24.  
  25. SSEEEE AALLSSOO
  26.      sh(1),  execve(2),  wait(2),  popen(3)
  27.  
  28. SSTTAANNDDAARRDDSS
  29.      The ssyysstteemm() function conforms to ANSI C3.159­1989 (``ANSI C'').
  30.  
  31. BSD Experimental                 June 29, 1991                               1
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.