The curious case of O_DIRECTORY|O_CREAT
The curious case of O_DIRECTORY|O_CREAT
Posted Mar 28, 2023 11:03 UTC (Tue) by aaronmdjones (subscriber, #119973)In reply to: The curious case of O_DIRECTORY|O_CREAT by jhoblitt
Parent article: The curious case of O_DIRECTORY|O_CREAT
opendir(3) is not a system call. It's a C library function implemented on top of open(2) (which returns a file descriptor referring to that directory) and getdents(2) (which takes a file descriptor referring to that directory).
