I just discovered that the open() (man 2 open) system call has two versions:
int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
And indeed, one can use either in a single C file and both would work. How can standard C achieve this?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With