如果我打开同一个文件两次,它会给出错误,还是会创建两个不同的文件描述符?例如
a = open("teste.txt", O_RDONLY); b = open("teste.txt", O_RDONLY);
c file-descriptor
c ×1
file-descriptor ×1