update for HEAD-2003091401
[reactos.git] / lib / msvcrt / stdio / tmpfile.c
index 2854ea2..b188dec 100644 (file)
@@ -16,6 +16,9 @@
 
 FILE *  __alloc_file(void);
 
+/*
+ * @implemented
+ */
 FILE *
 tmpfile(void)
 {
@@ -35,9 +38,9 @@ tmpfile(void)
      retries the call to `tmpnam' until we actually succeed
      to create the file which didn't exist before.  */
   do {
-   // errno = 0;
+   // __set_errno ( 0 );
     temp_fd = _open(temp_name, 0, SH_DENYRW);
-  //  if (  errno == ENOENT )
+  //  if (  *_errno() == ENOENT )
 //  break;
   } while (temp_fd == -1 && (temp_name = tmpnam(0)) != 0);