URL: http://www.firstbasesoftware.com/man/man3/fb_system.htm
Last modified: 12 September 1995
Copyright © by FirstBase Software.
[ Index of Contents] [ FirstBase RDBMS Overview]


NAME

fb_system - generalized system call

SYNOPSIS

#include <firstbase/fb.h>

fb_system(s, rootperm)
char *s;
int rootperm;

DESCRIPTION

Fb_system is an implementation of the UNIX system(3) call, but with one less process overhead. Fb_system will fork or vfork a process, execute the string s, and then wait(2), instead of forking a shell that executes the command.

The other fb_system argument, rootperm, indicates root privileges, and is usually set to 0 (FB_NOROOT). If set to 1 (FB_WITHROOT), and the process is setuid, then privileges are granted to the child process accordingly.

The fb_system call will properly recondition a terminal device after waiting for the child process to complete. (Set the global variable cdb_batchmode to one to avoid this reconditioning). Additionally, the return status of the child process is returned by fb_system.

CLIENT/SERVER

The fb_system routine will transparently call fb_system_clnt when the global FirstBase variable cdb_use_rpc is set to one. See fb_clnt_create(3) for more details.


URL: http://www.firstbasesoftware.com/man/man3/fb_system.htm
Last modified: 12 September 1995
Copyright © by FirstBase Software.
[ Index of Contents] [ FirstBase RDBMS Overview]