Defines | Functions | Variables

tempname.c File Reference

#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include "statdefs.h"
Include dependency graph for tempname.c:

Go to the source code of this file.

Defines

#define FILENAME_MAX   1024
#define P_tmpdir   "/usr/tmp/"

Functions

char__stdio_gen_tempname (const char *dir, const char *pfx, int dir_search, size_t *lenptr, FILE **streamptr)
static int diraccess (const char *dir)
static int exists (const char *file)

Variables

static const char letters [] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

Define Documentation

#define FILENAME_MAX   1024

Definition at line 42 of file tempname.c.

#define P_tmpdir   "/usr/tmp/"

Definition at line 47 of file tempname.c.


Function Documentation

char* __stdio_gen_tempname ( const char dir,
const char pfx,
int  dir_search,
size_t *  lenptr,
FILE **  streamptr 
)

Definition at line 100 of file tempname.c.

References d, diraccess(), and exists().

Referenced by tempnam().

static int diraccess ( const char dir  )  [static]

Definition at line 52 of file tempname.c.

Referenced by __stdio_gen_tempname().

static int exists ( const char file  )  [static]

Definition at line 60 of file tempname.c.

Referenced by __stdio_gen_tempname().


Variable Documentation

const char letters[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" [static]

Definition at line 82 of file tempname.c.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines