L'erreur ne pouvait pas être ça sinon il m'aurait gueulé dessus en l'utilisant, j'y ai pensé après coup .
Donc la ligne :
printf("Erreur n° %d : %s",errno, strerror(errno));
Me donne :
Erreur n°9 : Bad File Descriptor
Mais alors :
1 2 3 4 5 6 7 8 9 10 11 12
| #include <errno.h>
#include <stdio.h>
extern char *_sys_errlist[];
int main()
{
int i = 0;
while(_sys_errlist[i++]) printf("%s\n", _sys_errlist[i]);
return 0;
} |
Me donne un nombre important d'erreur système :
Operation not permitted
No such file or directory
No such process
Interrupted system call
Input/output error
No such device or address
Argument list too long
Exec format error
Bad file descriptor
No child processes
Resource temporarily unavailable
Cannot allocate memory
Permission denied
Bad address
Block device required
Device or resource busy
File exists
Invalid cross-device link
No such device
Not a directory
Is a directory
Invalid argument
Too many open files in system
Too many open files
Inappropriate ioctl for device
Text file busy
File too large
No space left on device
Illegal seek
Read-only file system
Too many links
Broken pipe
Numerical argument out of domain
Numerical result out of range
Resource deadlock avoided
File name too long
No locks available
Function not implemented
Directory not empty
Too many levels of symbolic links
Partager