xref: /original-bsd/lib/libc/stdio/tmpnam.3 (revision 5cf7f382)
Copyright (c) 1988 Regents of the University of California.
All rights reserved.

Redistribution and use in source and binary forms are permitted
provided that the above copyright notice and this paragraph are
duplicated in all such forms and that any documentation,
advertising materials, and other materials related to such
distribution and use acknowledge that the software was developed
by the University of California, Berkeley. The name of the
University may not be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

@(#)tmpnam.3 5.6 (Berkeley) 08/03/88

COMPATS5 3 ""
C 7
NAME
memccpy, memchr, memcmp, memcpy, memset, strchr, strcspn, strpbrk, strrchr, strspn, strtok, tempnam, tmpfile, tmpnam - System V compatibility routines
SYNOPSIS
 char *memccpy(from, to, ch, count)  char *from, *to;  int ch, count; 

char *memchr(str, ch, count) char *str; int ch, count;

int memcmp(str1, str2, count) char *str1, *str2; int count;

char *memcpy(from, to, count) char *from, to; int count;

char *memset(str, ch, count) char *str; int ch, count;

char *strchr(str, ch); char *str; int ch;

int strcspn(str, chars) char *str, *chars;

char *strpbrk(str, chars) char *str, *chars;

char *strrchr(str, ch); char *str; int ch;

int strspn(str, chars) char *str, *chars;

char *strtok(str, sep) char *str, *sep;

char *strtol(str, ptr, base) char *str, **ptr; int base;

char *tempnam(tmpdir, prefix) char *tmpdir, *prefix;

char *tmpfile()

char *tmpnam(str) char *str;

COMMENT
The #defines P_tmpdir and L_tmpnam, used by the routines tempnam, tmpfile, and tmpnam are not available in <stdio.h>. If the code requires them, just use:

#include <sys/param.h>

#define P_tmpdir "/usr/tmp" #define L_tmpnam MAXPATHLEN

Also, note that the caveat in the System V manual page that these functions can start recycling previously used names is untrue in this system.

DESCRIPTION
The above routines are available and behave as in System V.