From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,47c3c23c50f4dcda X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,47c3c23c50f4dcda X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-14 23:43:53 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!john From: john@iastate.edu (John Hascall) Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Subject: Re: Strange error in STREAMS code Date: 15 Nov 1994 04:00:27 GMT Organization: Iowa State University, Ames, Iowa (USA) Message-ID: <3a9bor$51t@news.iastate.edu> References: <3a5nmv$4n4@hermes.unt.edu> <3a68l4$nf0@news.iastate.edu> <3a83il$q75@hermes.unt.edu> NNTP-Posting-Host: pooh.cc.iastate.edu Xref: nntp.gmd.de comp.sys.dec:19689 comp.unix.osf.osf1:6482 Charles M Richmond wrote: }srt@zaphod.csci.unt.edu (Steve Tate) writes: }>John Hascall (john@iastate.edu) wrote: }>> From "man ioctl": }>> #include }>> ioctl( }>> int d, }>> unsigned long request, <--- looks like it is intentional }>> char *argp ); that they are 64 bits. } }>Now isn't *THAT* interesting! Here's the prototype from }>/usr/include/sys/ioctl.h: } }> extern int ioctl(int, int, ...); } }>So that directly contradicts the man page!!!! }The man page is incorrect and I have filed a QAR to get it fixed. Not only is the man page wrong, but so are the definitions of _IOR, _IOW, & _IOWR (and hence all of the xIOCyyyy manifest constants); for example: #define _IOC(inout,group,num,len) \ (inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num)) #define _IOW(g,n,t) _IOC(IOC_IN, (g), (n), sizeof(t)) | type is "size_t", which is "unsigned long" on AXP-OSF/1 #define TIOCFLUSH _IOW('t', 16, int) /* flush buffers */ John -- John Hascall ``An ill-chosen word is the fool's messenger.'' Systems Software Engineer, ISU Comp Center + Ames, IA 50011 + 515/294-9551 & Hascall Systems - Unix/C/Internet Consulting, Training, Custom Programming