osprey-gcc-4.2.0/libiberty/make-temp-file.c File Reference

#include <stdio.h>
#include <sys/types.h>
#include "libiberty.h"

Include dependency graph for make-temp-file.c:

Go to the source code of this file.

Defines

#define R_OK   4
#define W_OK   2
#define X_OK   1
#define DIR_SEPARATOR   '/'
#define TEMP_FILE   "ccXXXXXX"
#define TEMP_FILE_LEN   (sizeof(TEMP_FILE) - 1)

Functions/Subroutines

int mkstemps (char *, int)
static const char * try_dir (const char *, const char *)
char * choose_tmpdir (void)
char * make_temp_file (const char *suffix)

Variables

static const char tmp [] = { DIR_SEPARATOR, 't', 'm', 'p', 0 }
static const char usrtmp []
static const char vartmp []
static char * memoized_tmpdir


Define Documentation

#define DIR_SEPARATOR   '/'

Definition at line 50 of file make-temp-file.c.

#define R_OK   4

Definition at line 40 of file make-temp-file.c.

#define TEMP_FILE   "ccXXXXXX"

Definition at line 55 of file make-temp-file.c.

#define TEMP_FILE_LEN   (sizeof(TEMP_FILE) - 1)

Definition at line 56 of file make-temp-file.c.

#define W_OK   2

Definition at line 41 of file make-temp-file.c.

#define X_OK   1

Definition at line 42 of file make-temp-file.c.


Function Documentation

char* choose_tmpdir ( void   ) 

char* make_temp_file ( const char *  suffix  ) 

int mkstemps ( char *  ,
int   
)

Definition at line 78 of file mkstemps.c.

static const char * try_dir ( const char *  dir,
const char *  base 
) [inline, static]

Definition at line 67 of file make-temp-file.c.

References access, R_OK, W_OK, and X_OK.

Referenced by choose_tmpdir().


Variable Documentation

char* memoized_tmpdir [static]

Definition at line 83 of file make-temp-file.c.

const char tmp[] = { DIR_SEPARATOR, 't', 'm', 'p', 0 } [static]

Definition at line 77 of file make-temp-file.c.

const char usrtmp[] [static]

Initial value:

{ DIR_SEPARATOR, 'u', 's', 'r', DIR_SEPARATOR, 't', 'm', 'p', 0 }

Definition at line 78 of file make-temp-file.c.

const char vartmp[] [static]

Initial value:

{ DIR_SEPARATOR, 'v', 'a', 'r', DIR_SEPARATOR, 't', 'm', 'p', 0 }

Definition at line 80 of file make-temp-file.c.


Generated on Wed Apr 8 15:03:03 2009 for Open64 by  doxygen 1.5.6