Message329735
This error is specific to the C-API and not to Python,
here is an example.
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
int main(int argc, char **argv, char **environ) {
int fd;
fd = open("/tmp/toto/", O_CREAT);
printf("file descriptor: %d\n", fd);
printf(strerror(errno));
close(fd);
return 0;
}
./a.out
file descriptor: -1
Is a directory |
|
Date |
User |
Action |
Args |
2018-11-12 14:59:28 | matrixise | set | recipients:
+ matrixise, xtreak, cedricvanrompay |
2018-11-12 14:59:28 | matrixise | set | messageid: <1542034768.23.0.788709270274.issue35216@psf.upfronthosting.co.za> |
2018-11-12 14:59:28 | matrixise | link | issue35216 messages |
2018-11-12 14:59:28 | matrixise | create | |
|