0
..
..
.L <preroot.h> defines the symbol FS_PREROOT for those systems that support preroot. The following routines are valid only when FS_PREROOT is defined:
.L getpreroot returns a pointer to the absolute pathname of the preroot directory for the executable cmd . The result is placed in path . If path is 0 then malloc (3) is used to allocate the pathname space. 0 is returned if cmd has no preroot or if an error was encountered. In this case errno is set to indicate the error.
.L ispreroot Non-zero is returned if dir is the current process preroot. If dir is 0 then non-zero is returned if the current process has a preroot.
.L realopen temporarily disables the process preroot and does an open (3) relative to the system root directory. The return value from open is returned. If there is no preroot then realopen is equivalent to open .
.L setpreroot calls execvp (3) as .L "execvp(argv[0],argv)" with the process preroot set to dir . argv must be a 0 -terminated argument array. If argv is 0 then the value of opt_argv from optget (3) is used. .L setpreroot returns immediately if dir is already the process preroot.