OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [libiberty/] [mkstemps.c] - Diff between revs 157 and 225

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 125... Line 125...
 
 
      fd = open (pattern, O_BINARY|O_RDWR|O_CREAT|O_EXCL, 0600);
      fd = open (pattern, O_BINARY|O_RDWR|O_CREAT|O_EXCL, 0600);
      if (fd >= 0)
      if (fd >= 0)
        /* The file does not exist.  */
        /* The file does not exist.  */
        return fd;
        return fd;
 
      if (errno != EEXIST
 
#ifdef EISDIR
 
          && errno != EISDIR
 
#endif
 
         )
 
        /* Fatal error (EPERM, ENOSPC etc).  Doesn't make sense to loop.  */
 
        break;
 
 
      /* This is a random value.  It is only necessary that the next
      /* This is a random value.  It is only necessary that the next
         TMP_MAX values generated by adding 7777 to VALUE are different
         TMP_MAX values generated by adding 7777 to VALUE are different
         with (module 2^32).  */
         with (module 2^32).  */
      value += 7777;
      value += 7777;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.