# system.h File Reference

`#include <sys/types.h>`
`#include <sys/stat.h>`
`#include <stdio.h>`
`#include <time.h>`
`#include <strings.h>`
`#include <errno.h>`
`#include <sys/file.h>`
`#include <ctype.h>`
`#include "rpmio/rpmutil.h"`
`#include <sys/param.h>`
`#include <unistd.h>`
`#include <sys/time.h>`
`#include <utime.h>`
`#include <string.h>`
`#include <error.h>`
`#include <stdlib.h>`
`#include <fcntl.h>`
`#include <dirent.h>`
`#include <sys/mman.h>`
`#include <sys/utsname.h>`
`#include <sys/wait.h>`
`#include <getopt.h>`
`#include <grp.h>`
`#include <limits.h>`
`#include <err.h>`
`#include <selinux/selinux.h>`
`#include <sys/capability.h>`
`#include <mcheck.h>`
`#include <netdb.h>`
`#include <pwd.h>`
`#include <locale.h>`
`#include <libintl.h>`
`#include "misc/glob.h"`
`#include "misc/fnmatch.h"`
`#include <sys/socket.h>`
`#include <poll.h>`
`#include <mntent.h>`
Include dependency graph for system.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Defines
#define | HAVE_MAJOR
#define | getenv(_s) __secure_getenv(_s)
#define | getopt system_getopt
#define | NLENGTH(direct) (strlen((direct)->d_name))
#define | xmalloc(_size) rmalloc((_size))
#define | xcalloc(_nmemb, _size) rcalloc((_nmemb), (_size))
#define | xrealloc(_ptr, _size) rrealloc((_ptr), (_size))
#define | xstrdup(_str) rstrdup((_str))
#define | _free(_ptr) rfree((_ptr))
#define | _constfree(_ptr) rfree((void *)(_ptr))
#define | __progname program_name
#define | setprogname(pn)
#define | _(Text) dgettext (PACKAGE, Text)
#define | N_(Text) Text
#define | our_mntent struct mntent
#define | our_mntdir mnt_dir
#define | GETMNTENT_ONE 1
#define | GETMNTENT_TWO 0
## Variables
char ** | environ
int | errno
const char * | program_name

## Detailed Description

Definition in file system.h.

## Define Documentation

#define _ | ( | Text |  | ) | dgettext (PACKAGE, Text)

Definition at line 285 of file system.h.

Referenced by argerror(), build(), buildForTarget(), checkSpec(), getTarSpec(), isSpecFile(), main(), printBanner(), and printVersion().

#define __progname program_name

Definition at line 258 of file system.h.

Referenced by argerror(), and main().

#define _constfree | ( | _ptr |  | ) | rfree((void *)(_ptr))

Definition at line 249 of file system.h.

#define _free | ( | _ptr |  | ) | rfree((_ptr))

Definition at line 248 of file system.h.

Referenced by main().

#define getenv | ( | _s |  | ) | __secure_getenv(_s)

Definition at line 98 of file system.h.

#define GETMNTENT_ONE 1

Definition at line 395 of file system.h.

#define GETMNTENT_TWO 0

Definition at line 396 of file system.h.

#define getopt system_getopt

Definition at line 103 of file system.h.

#define HAVE_MAJOR

Definition at line 56 of file system.h.

#define N_ | ( | Text |  | ) | Text

Definition at line 296 of file system.h.

#define NLENGTH | ( | direct |  | ) | (strlen((direct)->d_name))

Definition at line 138 of file system.h.

#define our_mntdir mnt_dir

Definition at line 378 of file system.h.

#define our_mntent struct mntent

Definition at line 377 of file system.h.

#define setprogname | ( | pn |  | ) |

Value:

    { if ((__progname = strrchr(pn, '/')) != NULL) __progname++; \
        else __progname = pn;               \
      }

Definition at line 259 of file system.h.

Referenced by main().

#define xcalloc | ( | _nmemb,
|  | _size |  | ) | rcalloc((_nmemb), (_size))

Definition at line 245 of file system.h.

#define xmalloc | ( | _size |  | ) | rmalloc((_size))

Definition at line 244 of file system.h.

Referenced by build(), and main().

#define xrealloc | ( | _ptr,
|  | _size |  | ) | rrealloc((_ptr), (_size))

Definition at line 246 of file system.h.

Referenced by main().

#define xstrdup | ( | _str |  | ) | rstrdup((_str))

Definition at line 247 of file system.h.

Referenced by buildForTarget(), and main().

## Variable Documentation

char** environ

int errno

Referenced by isSpecFile().

const char* program_name

Definition at line 4 of file rpm2cpio.c.