littleutils  1.2.4
About: littleutils are a collection of small and simple utilities (rename files, search for duplicate files, ...).
  Fossies Dox: littleutils-1.2.4.tar.lz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

tempname.c File Reference
#include <config.h>
#include <stdio.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
Include dependency graph for tempname.c:

Go to the source code of this file.


#define OPTEND   EOF
#define GT_FILE   1
#define GT_DIR   2
#define GT_NOCREATE   3


static void help (FILE *where)
static int good_dir (const char *path, int verbose)
static void rand_seed ()
static int mkstemp_custom (char *tmpl, int kind)
int main (int argc, char *argv[])

Macro Definition Documentation


#define GT_DIR   2

Definition at line 62 of file tempname.c.


#define GT_FILE   1

Definition at line 61 of file tempname.c.


#define GT_NOCREATE   3

Definition at line 63 of file tempname.c.


#define OPTEND   EOF

Definition at line 47 of file tempname.c.

Function Documentation

◆ good_dir()

static int good_dir ( const char *  path,
int  verbose 

Definition at line 84 of file tempname.c.

References verbose.

Referenced by main().

◆ help()

static void help ( FILE *  where)

Definition at line 69 of file tempname.c.

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 

Definition at line 300 of file tempname.c.

References good_dir(), GT_DIR, GT_FILE, GT_NOCREATE, help(), mkstemp_custom(), OPTEND, suffix, and verbose.

◆ mkstemp_custom()

static int mkstemp_custom ( char *  tmpl,
int  kind 

Definition at line 191 of file tempname.c.

References GT_DIR, GT_FILE, GT_NOCREATE, letters, rand_seed(), and TMP_MAX.

Referenced by main().

◆ rand_seed()

static void rand_seed ( )

Definition at line 148 of file tempname.c.

Referenced by mkstemp_custom().