ioctl(2) vs sys/ioctl.h

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Goyette
Date: Saturday, December 18, 2010 - 5:06 pm

Is there some reason why there is a discrepancy in the definition of 
ioctl()?

From man page ioctl(2)

 	SYNOPSIS
 	     #include <sys/ioctl.h>

 	     int
 	     ioctl(int d, unsigned long request, void *argp);


Yet, from sys/ioctl.h we have

 	__BEGIN_DECLS
 	int     ioctl(int, unsigned long, ...);
 	__END_DECLS


-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ioctl(2) vs sys/ioctl.h, Paul Goyette, (Sat Dec 18, 5:06 pm)
Re: ioctl(2) vs sys/ioctl.h, Christos Zoulas, (Sat Dec 18, 5:24 pm)
Re: ioctl(2) vs sys/ioctl.h, der Mouse, (Sat Dec 18, 7:44 pm)
Re: ioctl(2) vs sys/ioctl.h, Iain Hibbert, (Sun Dec 19, 2:35 am)
Re: ioctl(2) vs sys/ioctl.h, Paul Goyette, (Sun Dec 19, 9:00 am)
Re: ioctl(2) vs sys/ioctl.h, David Laight, (Sun Dec 19, 12:32 pm)
Re: ioctl(2) vs sys/ioctl.h, Rhialto, (Sun Dec 19, 1:06 pm)
Re: ioctl(2) vs sys/ioctl.h, David Laight, (Sun Dec 19, 1:32 pm)
Re: ioctl(2) vs sys/ioctl.h, der Mouse, (Sun Dec 19, 2:52 pm)
Re: ioctl(2) vs sys/ioctl.h, Christos Zoulas, (Sun Dec 19, 2:59 pm)