Navigation

Operators and Keywords

Function List:

C++ API

openat-priv.h File Reference

#include <errno.h>
#include <limits.h>
#include <stdlib.h>
Include dependency graph for openat-priv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SAFER_ALLOCA_MAX   (4096 - 64)
#define SAFER_ALLOCA(m)   ((m) < SAFER_ALLOCA_MAX ? (m) : SAFER_ALLOCA_MAX)
#define OPENAT_BUFFER_SIZE   SAFER_ALLOCA (1024)
#define EXPECTED_ERRNO(Errno)

Functions

char * openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file)
int at_func2 (int fd1, char const *file1, int fd2, char const *file2, int(*func)(char const *file1, char const *file2))

Define Documentation

#define EXPECTED_ERRNO (   Errno  ) 
Value:
((Errno) == ENOTDIR || (Errno) == ENOENT      \
   || (Errno) == EPERM || (Errno) == EACCES     \
   || (Errno) == ENOSYS /* Solaris 8 */         \
   || (Errno) == EOPNOTSUPP /* FreeBSD */)
#define OPENAT_BUFFER_SIZE   SAFER_ALLOCA (1024)
#define SAFER_ALLOCA (   m  )     ((m) < SAFER_ALLOCA_MAX ? (m) : SAFER_ALLOCA_MAX)
#define SAFER_ALLOCA_MAX   (4096 - 64)

Function Documentation

int at_func2 ( int  fd1,
char const *  file1,
int  fd2,
char const *  file2,
int(*)(char const *file1, char const *file2)  func 
)
char* openat_proc_name ( char  buf[OPENAT_BUFFER_SIZE],
int  fd,
char const *  file 
)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines