COOPY » Guide
version 0.6.5
|
#include "tempname.h"
#include <sys/types.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/time.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/stat.h>
Go to the source code of this file.
Defines | |
#define | __set_errno(Val) errno = (Val) |
#define | P_tmpdir "/tmp" |
#define | TMP_MAX 238328 |
#define | __GT_FILE 0 |
#define | __GT_DIR 1 |
#define | __GT_NOCREATE 2 |
#define | struct_stat64 struct stat |
#define | __gen_tempname gen_tempname |
#define | __getpid getpid |
#define | __gettimeofday gettimeofday |
#define | __mkdir mkdir |
#define | __open open |
#define | __lxstat64(version, file, buf) lstat (file, buf) |
#define | __secure_getenv getenv |
#define | uint64_t uintmax_t |
#define | ATTEMPTS_MIN (62 * 62 * 62) |
Functions | |
int | __gen_tempname (char *tmpl, int suffixlen, int flags, int kind) |
Variables | |
static const char | letters [] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" |
#define __gen_tempname gen_tempname |
Definition at line 65 of file tempname.c.
#define __getpid getpid |
Definition at line 66 of file tempname.c.
Referenced by __gen_tempname().
#define __gettimeofday gettimeofday |
Definition at line 67 of file tempname.c.
Referenced by __gen_tempname().
#define __GT_DIR 1 |
Definition at line 42 of file tempname.c.
Referenced by __gen_tempname().
#define __GT_FILE 0 |
Definition at line 41 of file tempname.c.
Referenced by __gen_tempname().
#define __GT_NOCREATE 2 |
Definition at line 43 of file tempname.c.
Referenced by __gen_tempname().
#define __lxstat64 | ( | version, | |
file, | |||
buf | |||
) | lstat (file, buf) |
Definition at line 70 of file tempname.c.
#define __mkdir mkdir |
Definition at line 68 of file tempname.c.
#define __open open |
Definition at line 69 of file tempname.c.
Referenced by __gen_tempname().
#define __secure_getenv getenv |
Definition at line 74 of file tempname.c.
#define __set_errno | ( | Val | ) | errno = (Val) |
Definition at line 30 of file tempname.c.
Referenced by __gen_tempname().
#define ATTEMPTS_MIN (62 * 62 * 62) |
Referenced by __gen_tempname().
#define P_tmpdir "/tmp" |
Definition at line 35 of file tempname.c.
#define struct_stat64 struct stat |
Definition at line 64 of file tempname.c.
Referenced by __gen_tempname().
#define TMP_MAX 238328 |
Definition at line 38 of file tempname.c.
Referenced by __gen_tempname().
#define uint64_t uintmax_t |
Definition at line 102 of file tempname.c.
Referenced by __gen_tempname().
int __gen_tempname | ( | char * | tmpl, |
int | suffixlen, | ||
int | flags, | ||
int | kind | ||
) |
Definition at line 196 of file tempname.c.
References __getpid, __gettimeofday, __GT_DIR, __GT_FILE, __GT_NOCREATE, __open, __set_errno, ATTEMPTS_MIN, NULL, struct_stat64, TMP_MAX, and uint64_t.
const char letters[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" [static] |
Definition at line 179 of file tempname.c.