[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
3 different interfaces to the same C procedure?
As far as I know, one can not have more then 1 interface for the same C procedure.
Yet fcntl (2) seems to have 3. How come?
[08:02:50 /tmp]$ man fcntl |head -n17
FCNTL(2) Linux Programmer's Manual FCNTL(2)
NAME
fcntl - manipulate file descriptor
SYNOPSIS
#include <unistd.h>
#include <fcntl.h>
int fcntl(int fd, int cmd);
int fcntl(int fd, int cmd, long arg);
int fcntl(int fd, int cmd, struct flock * lock);
[08:02:53 /tmp]$
A related question:
Does overloading means having more then 1 procedure with the same name?
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il