against zero. This is to improve portability.
int
mkdir (const char *dpath, int dmode)
{
int
mkdir (const char *dpath, int dmode)
{
+ pid_t cpid;
+ int status;
struct stat statbuf;
if (stat (dpath, &statbuf) == 0)
struct stat statbuf;
if (stat (dpath, &statbuf) == 0)
while (wait (&status) != cpid)
/* Do nothing. */ ;
while (wait (&status) != cpid)
/* Do nothing. */ ;
{
/* /bin/mkdir failed. */
errno = EIO;
{
/* /bin/mkdir failed. */
errno = EIO;