|
|
Log in / Subscribe / Register

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).


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds