« Return to Thread: function "open"

Re: function "open"

by James Burgess-2 :: Rate this Message:

Reply to Author | View in Thread

Hi BB,
 The function open() is a operating system call. You can learn more about it by looking at the manual page:

man 2 open

Note it's in section "2" (which contains all the system calls). Your compiler is telling you that the code is trying to pass two arguments when in fact the call takes three. This is a historical problem, open() used to take only 2. Most system's are set up to allow either, yours is set to be strict. There's probably a define or a switch to gcc that will relax the requirement.

- James






 « Return to Thread: function "open"