#include <config.h>
#include "openat-priv.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "dirname.h"
#include "intprops.h"
#include "same-inode.h"
Defines | |
#define | PROC_SELF_FD_FORMAT "/proc/self/fd/%d/%s" |
#define | PROC_SELF_FD_NAME_SIZE_BOUND(len) |
Functions | |
char * | openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file) |
#define PROC_SELF_FD_FORMAT "/proc/self/fd/%d/%s" |
#define PROC_SELF_FD_NAME_SIZE_BOUND | ( | len | ) |
(sizeof PROC_SELF_FD_FORMAT - sizeof "%d%s" \ + INT_STRLEN_BOUND (int) + (len) + 1)
char* openat_proc_name | ( | char | buf[OPENAT_BUFFER_SIZE], | |
int | fd, | |||
char const * | file | |||
) |