URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
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;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.