diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 12:04:45 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 12:04:45 +0300 |
commit | dbd583bd2b8a6dd40c622875a4e197360cb5aba7 (patch) | |
tree | d9fb7b6595cb44fefb4e32d70af9ac6d057af14a /missing/tmpnam.c | |
parent | b8c608200919aa3f7b3fef289a7bece2d2961412 (diff) | |
download | egawk-dbd583bd2b8a6dd40c622875a4e197360cb5aba7.tar.gz egawk-dbd583bd2b8a6dd40c622875a4e197360cb5aba7.tar.bz2 egawk-dbd583bd2b8a6dd40c622875a4e197360cb5aba7.zip |
Move to 2.13.3 (from 2.13.tar.gz - sigh).
Diffstat (limited to 'missing/tmpnam.c')
-rw-r--r-- | missing/tmpnam.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/missing/tmpnam.c b/missing/tmpnam.c deleted file mode 100644 index 8f49859a..00000000 --- a/missing/tmpnam.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * tmpnam - an implementation for systems lacking a library version - * this version does not rely on the P_tmpdir and L_tmpnam constants. - */ - -#ifndef NULL -#define NULL 0 -#endif - -static char template[] = "/tmp/gawkXXXXXX"; - -char * -tmpnam(tmp) -char *tmp; -{ - static char tmpbuf[sizeof(template)]; - - if (tmp == NULL) { - (void) strcpy(tmpbuf, template); - (void) mktemp(tmpbuf); - return tmpbuf; - } else { - (void) strcpy(tmp, template); - (void) mktemp(tmp); - return tmp; - } -} |