gdb.info: system

Go backward to isatty
Go up to List of supported calls
Go to the top op gdb

system

Synopsis:
     int system(const char *command);
Request:
     Fsystem,commandptr/len
Return value:
     The value returned is -1 on error and the return status
     of the command otherwise.  Only the exit status of the
     command is returned, which is extracted from the hosts
     system return value by calling WEXITSTATUS(retval).
     In case /bin/sh could not be executed, 127 is returned.
Errors:
`EINTR'
     The call was interrupted by the user.