system.h File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <sys/param.h>
#include <unistd.h>
#include <sys/time.h>
#include <time.h>
#include <utime.h>
#include <string.h>
#include <errno.h>
#include <error.h>
#include <stdlib.h>
#include <fcntl.h>
#include <dirent.h>
#include <ctype.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 "rpmio/rpmutil.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 major(dev)   (((dev) >> 8) & 0xff)
#define minor(dev)   ((dev) & 0xff)
#define makedev(maj, min)   (((maj) << 8) | (min))
#define getenv(_s)   __secure_getenv(_s)
#define getopt   system_getopt
#define EXIT_FAILURE   1
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2
#define F_OK   0
#define X_OK   1
#define W_OK   2
#define R_OK   4
#define NLENGTH(direct)   (strlen((direct)->d_name))
#define PATH_MAX   256
#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
#define MOUNTED   "/etc/mnttab"

Variables

char ** environ
int errno
const char * program_name

Detailed Description

Definition in file system.h.


Define Documentation

#define _ ( Text   )     dgettext (PACKAGE, Text)
#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 EXIT_FAILURE   1

Definition at line 115 of file system.h.

Referenced by argerror(), and main().

#define F_OK   0

Definition at line 130 of file system.h.

#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 major ( dev   )     (((dev) >> 8) & 0xff)

Definition at line 60 of file system.h.

#define makedev ( maj,
min   )     (((maj) << 8) | (min))

Definition at line 62 of file system.h.

#define minor ( dev   )     ((dev) & 0xff)

Definition at line 61 of file system.h.

#define MOUNTED   "/etc/mnttab"

Definition at line 409 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 PATH_MAX   256

Definition at line 190 of file system.h.

#define R_OK   4

Definition at line 133 of file system.h.

#define SEEK_CUR   1

Definition at line 126 of file system.h.

#define SEEK_END   2

Definition at line 127 of file system.h.

#define SEEK_SET   0

Definition at line 125 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 W_OK   2

Definition at line 132 of file system.h.

#define X_OK   1

Definition at line 131 of file system.h.

#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

Generated on 8 Jan 2010 for rpm by  doxygen 1.6.1