~ubuntu-branches/ubuntu/quantal/uclibc/quantal

« back to all changes in this revision

Viewing changes to libc/stdio/tempnam.c

  • Committer: Bazaar Package Importer
  • Author(s): Hector Oron
  • Date: 2011-06-11 03:06:20 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110611030620-ywjfvyuqvrpsm282
Tags: 0.9.32-1
* New upstream release
* Add myself as maintainer
* Bump standards version 
* Add Vcs-Git, Vcs-Browser and Homepage fields
* Add watch file 

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <string.h>
21
21
#include "../misc/internals/tempname.h"
22
22
 
23
 
/* Experimentally off - libc_hidden_proto(strdup) */
24
23
 
25
24
/* Generate a unique temporary filename using up to five characters of PFX
26
25
   if it is not NULL.  The directory to put this file in is searched for
37
36
  if (__path_search (buf, FILENAME_MAX, dir, pfx, 1))
38
37
    return NULL;
39
38
 
40
 
  if (__gen_tempname (buf, __GT_NOCREATE))
 
39
  if (__gen_tempname (buf, __GT_NOCREATE, 0))
41
40
    return NULL;
42
41
 
43
42
  return strdup (buf);