rpm  4.8.1
Data Structures | Macros | Typedefs | Functions | Variables
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 dependency graph for system.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  our_mntent
 

Macros

#define major(dev)   (((dev) >> 8) & 0xff)
 
#define minor(dev)   ((dev) & 0xff)
 
#define makedev(maj, min)   (((maj) << 8) | (min))
 
#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 dirent   direct
 
#define NLENGTH(direct)   ((direct)->d_namlen)
 
#define PATH_MAX   256
 
#define freecon(_c)
 
#define getfilecon(_fn, _c)   (-1)
 
#define lgetfilecon(_fn, _c)   (-1)
 
#define fgetfilecon(_fd, _c)   (-1)
 
#define setfilecon(_fn, _c)   (-1)
 
#define lsetfilecon(_fn, _c)   (-1)
 
#define fsetfilecon(_fd, _c)   (-1)
 
#define security_check_context(_c)   (0)
 
#define is_selinux_enabled()   (0)
 
#define matchpathcon_init(_fn)   (-1)
 
#define matchpathcon_fini()   (0)
 
#define matchpathcon(_fn, _fm, _c)   (-1)
 
#define rpm_execcon(_v, _fn, _av, _envp)   (0)
 
#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 setlocale(Category, Locale)   /* empty */
 
#define bindtextdomain(Domain, Directory)   /* empty */
 
#define textdomain(Domain)   /* empty */
 
#define _(Text)   Text
 
#define dgettext(DomainName, Text)   Text
 
#define N_(Text)   Text
 
#define S_IFSOCK   (0xc000)
 
#define S_ISLNK(mode)   ((mode & 0xf000) == S_IFLNK)
 
#define S_ISSOCK(mode)   ((mode & 0xf000) == S_IFSOCK)
 
#define lchown   chown
 
#define our_mntent   struct our_mntent
 
#define GETMNTENT_ONE   1
 
#define GETMNTENT_TWO   0
 
#define MOUNTED   "/etc/mnttab"
 

Typedefs

typedef char * security_context_t
 
typedef void * cap_t
 

Functions

char * memchr ()
 
char * stpcpy (char *dest, const char *src)
 
char * stpncpy (char *dest, const char *src, size_t n)
 
char * getenv (const char *name)
 
char * realpath (const char *path, char resolved_path [])
 
int setenv (const char *name, const char *value, int replace)
 
void unsetenv (const char *name)
 
struct our_mntentgetmntent (FILE *filep)
 

Variables

int errno
 
const char * program_name
 

Macro Definition Documentation

◆ _

#define _ (   Text)    Text

◆ __progname

#define __progname   program_name

Definition at line 258 of file system.h.

Referenced by argerror(), and main().

◆ _constfree

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

Definition at line 249 of file system.h.

◆ _free

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

Definition at line 248 of file system.h.

Referenced by main().

◆ bindtextdomain

#define bindtextdomain (   Domain,
  Directory 
)    /* empty */

Definition at line 288 of file system.h.

Referenced by main().

◆ dgettext

#define dgettext (   DomainName,
  Text 
)    Text

Definition at line 293 of file system.h.

◆ dirent

#define dirent   direct

Definition at line 140 of file system.h.

◆ EXIT_FAILURE

#define EXIT_FAILURE   1

Definition at line 115 of file system.h.

Referenced by argerror(), and main().

◆ F_OK

#define F_OK   0

Definition at line 130 of file system.h.

◆ fgetfilecon

#define fgetfilecon (   _fd,
  _c 
)    (-1)

Definition at line 211 of file system.h.

◆ freecon

#define freecon (   _c)

Definition at line 207 of file system.h.

◆ fsetfilecon

#define fsetfilecon (   _fd,
  _c 
)    (-1)

Definition at line 215 of file system.h.

◆ getfilecon

#define getfilecon (   _fn,
  _c 
)    (-1)

Definition at line 209 of file system.h.

◆ GETMNTENT_ONE

#define GETMNTENT_ONE   1

Definition at line 395 of file system.h.

◆ GETMNTENT_TWO

#define GETMNTENT_TWO   0

Definition at line 396 of file system.h.

◆ is_selinux_enabled

#define is_selinux_enabled ( )    (0)

Definition at line 219 of file system.h.

◆ lchown

#define lchown   chown

Definition at line 358 of file system.h.

◆ lgetfilecon

#define lgetfilecon (   _fn,
  _c 
)    (-1)

Definition at line 210 of file system.h.

◆ lsetfilecon

#define lsetfilecon (   _fn,
  _c 
)    (-1)

Definition at line 214 of file system.h.

◆ major

#define major (   dev)    (((dev) >> 8) & 0xff)

Definition at line 60 of file system.h.

◆ makedev

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

Definition at line 62 of file system.h.

◆ matchpathcon

#define matchpathcon (   _fn,
  _fm,
  _c 
)    (-1)

Definition at line 223 of file system.h.

◆ matchpathcon_fini

#define matchpathcon_fini ( )    (0)

Definition at line 222 of file system.h.

◆ matchpathcon_init

#define matchpathcon_init (   _fn)    (-1)

Definition at line 221 of file system.h.

◆ minor

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

Definition at line 61 of file system.h.

◆ MOUNTED

#define MOUNTED   "/etc/mnttab"

Definition at line 409 of file system.h.

◆ N_

#define N_ (   Text)    Text

Definition at line 296 of file system.h.

◆ NLENGTH

#define NLENGTH (   direct)    ((direct)->d_namlen)

Definition at line 141 of file system.h.

◆ our_mntent

#define our_mntent   struct our_mntent

Definition at line 393 of file system.h.

◆ PATH_MAX

#define PATH_MAX   256

Definition at line 190 of file system.h.

◆ R_OK

#define R_OK   4

Definition at line 133 of file system.h.

◆ rpm_execcon

#define rpm_execcon (   _v,
  _fn,
  _av,
  _envp 
)    (0)

Definition at line 225 of file system.h.

◆ S_IFSOCK

#define S_IFSOCK   (0xc000)

Definition at line 314 of file system.h.

◆ S_ISLNK

#define S_ISLNK (   mode)    ((mode & 0xf000) == S_IFLNK)

Definition at line 318 of file system.h.

◆ S_ISSOCK

#define S_ISSOCK (   mode)    ((mode & 0xf000) == S_IFSOCK)

Definition at line 322 of file system.h.

◆ security_check_context

#define security_check_context (   _c)    (0)

Definition at line 217 of file system.h.

◆ SEEK_CUR

#define SEEK_CUR   1

Definition at line 126 of file system.h.

◆ SEEK_END

#define SEEK_END   2

Definition at line 127 of file system.h.

◆ SEEK_SET

#define SEEK_SET   0

Definition at line 125 of file system.h.

◆ setfilecon

#define setfilecon (   _fn,
  _c 
)    (-1)

Definition at line 213 of file system.h.

◆ setlocale

#define setlocale (   Category,
  Locale 
)    /* empty */

Definition at line 280 of file system.h.

Referenced by main().

◆ setprogname

#define setprogname (   pn)
Value:
{ if ((__progname = strrchr(pn, '/')) != NULL) __progname++; \
else __progname = pn; \
}
#define __progname
Definition: system.h:258

Definition at line 259 of file system.h.

Referenced by main().

◆ textdomain

#define textdomain (   Domain)    /* empty */

Definition at line 290 of file system.h.

Referenced by main().

◆ W_OK

#define W_OK   2

Definition at line 132 of file system.h.

◆ X_OK

#define X_OK   1

Definition at line 131 of file system.h.

◆ xcalloc

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

Definition at line 245 of file system.h.

◆ xmalloc

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

Definition at line 244 of file system.h.

Referenced by build(), and main().

◆ xrealloc

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

Definition at line 246 of file system.h.

Referenced by main().

◆ xstrdup

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

Definition at line 247 of file system.h.

Referenced by buildForTarget(), and main().

Typedef Documentation

◆ cap_t

typedef void* cap_t

Definition at line 231 of file system.h.

◆ security_context_t

typedef char* security_context_t

Definition at line 205 of file system.h.

Function Documentation

◆ getenv()

char* getenv ( const char *  name)

◆ getmntent()

struct our_mntent* getmntent ( FILE *  filep)

◆ memchr()

char* memchr ( )

◆ realpath()

char* realpath ( const char *  path,
char  resolved_path[] 
)

◆ setenv()

int setenv ( const char *  name,
const char *  value,
int  replace 
)

◆ stpcpy()

char* stpcpy ( char *  dest,
const char *  src 
)

◆ stpncpy()

char* stpncpy ( char *  dest,
const char *  src,
size_t  n 
)

◆ unsetenv()

void unsetenv ( const char *  name)

Variable Documentation

◆ errno

int errno

Referenced by isSpecFile().

◆ program_name

const char* program_name

Definition at line 4 of file rpm2cpio.c.