Back to index

glibc  2.9
Defines
utmp_file.c File Reference
#include <string.h>
#include <unistd.h>
#include <login/utmp_file.c>

Go to the source code of this file.

Defines

#define TRANSFORM_UTMP_FILE_NAME(file_name)

Define Documentation

Value:
((strcmp (file_name, _PATH_UTMP) == 0 \
      && __access (_PATH_UTMP "x", F_OK) == 0) ? (_PATH_UTMP "x") : \
     ((strcmp (file_name, _PATH_WTMP) == 0 \
       && __access ( _PATH_WTMP "x", F_OK) == 0) ? (_PATH_WTMP "x") : \
      ((strcmp (file_name, _PATH_UTMP "x") == 0 \
       && __access (_PATH_UTMP "x", F_OK) != 0) ? _PATH_UTMP : \
       ((strcmp (file_name, _PATH_WTMP "x") == 0 \
        && __access (_PATH_WTMP "x", F_OK) != 0) ? _PATH_WTMP : \
       file_name))))

Definition at line 23 of file utmp_file.c.