It is not function overloading. C allows variadic arguments, so that you can have a function with one or more arguments. The function called is always the same, but it can be aware of the fact that there must be a third argument, and pick it. In the "open" case, it depends on "flags" argument. If you use O_CREAT, and you don't provide the third argument, the compiler can't complain, while the function "thinks" that there's...