[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ioctl(upsfd, TIOCMSET, status) or ioctl(upsfd, TIOCMSET, &status)



On Tue, May 29, 2001 at 03:49:05AM +0300, Shaul Karl wrote:
> The question is about having the address of operator (&) in:
> 
>     ioctl(upsfd, TIOCMSET, status)

It is critical here to know how status is declared.  In the way you use it
above, it must be an int *.  If you use &status, it must be an int.

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



Reply to: