Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <stdio.h>
  3. #include <fcntl.h>
  4. #include <errno.h>
  5.  
  6. int
  7. mkstemp (char *_template)
  8. {
  9.   if (mktemp (_template))
  10.     return creat (_template, 0666);
  11.   else {
  12.     errno = ENOENT;
  13.     return -1;
  14.   }
  15. }
  16.