fsvs-chrooter.c File Reference

A chroot environment for fsvs. More...

#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include "../config.h"
#include "../interface.h"
Include dependency graph for fsvs-chrooter.c:

Go to the source code of this file.

Defines

#define STOP(...)

Functions

void open_keep_set (char *fn, char *env)
int main (int argc, char *args[])

Detailed Description

A chroot environment for fsvs.

Please see the HOWTO: About running fsvs on older systems documentation for details.

Definition in file fsvs-chrooter.c.


Define Documentation

#define STOP ( ...   ) 
Value:
do {                                                                \
        fprintf(stderr, __VA_ARGS__);                                       \
        fprintf(stderr, "\n%s (%d)\n"                                       \
                "fsvs-chrooter (licensed under the GPLv3), (C) by Ph. Marek;"   \
                " version " FSVS_VERSION "\n",                                                              \
        strerror(errno), errno);                                            \
        exit(errno);                                                        \
    } while (0)

Definition at line 180 of file fsvs-chrooter.c.

Referenced by main(), and open_keep_set().


Function Documentation

int main ( int  argc,
char *  args[] 
)

Definition at line 216 of file fsvs-chrooter.c.

References CHROOTER_CWD_ENV, CHROOTER_LIBS_ENV, CHROOTER_ROOT_ENV, open_keep_set(), and STOP.

Here is the call graph for this function:

void open_keep_set ( char *  fn,
char *  env 
)

Definition at line 191 of file fsvs-chrooter.c.

References STOP.

Referenced by main().

Here is the caller graph for this function:


Generated for fsvs by  doxygen 1.6.1