Explorar el Código

ANSI/ISO specifies that no library function sets errno to 0.

Manuel Novoa III hace 25 años
padre
commit
ca7088108b
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      libc/misc/dirent/readdir.c

+ 0 - 2
libc/misc/dirent/readdir.c

@@ -55,7 +55,5 @@ struct dirent *readdir(DIR * dir)
 	/* We have to save the next offset here. */
 	dir->dd_nextoff = de->d_off;
 
-	__set_errno(0);
-
 	return de;
 }