From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,47c3c23c50f4dcda X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,47c3c23c50f4dcda X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-11-17 17:13:07 PST Path: nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!swiss.ans.net!gatech!swrinde!cs.utexas.edu!news.unt.edu!zaphod!srt From: srt@zaphod.csci.unt.edu (Steve Tate) Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Subject: Re: Strange error in STREAMS code Followup-To: comp.sys.dec,comp.unix.osf.osf1 Date: 14 Nov 1994 16:34:29 GMT Organization: University of North Texas Distribution: world Message-ID: <3a83il$q75@hermes.unt.edu> References: <3a5nmv$4n4@hermes.unt.edu> <3a6785$agm@hermes.unt.edu> <3a68l4$nf0@news.iastate.edu> NNTP-Posting-Host: zaphod.csci.unt.edu X-Newsreader: TIN [version 1.2 PL2] Xref: nntp.gmd.de comp.sys.dec:19752 comp.unix.osf.osf1:6519 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!!!! > I guess you should declare i->ioc_cmd as "unsigned long" too. I didn't declare ioc_cmd --- it's part of a standard structure (iocblk) in /usr/include/sys/stream.h. That definition agrees with the prototype for ioctl() in the standard header file, but neither agree with the type of the constructed constants or with the man page. Anyway, the only conclusion is that there are inconsistencies in the way things are defines with respect to ioctl() --- does Digital have a e-mail address for such bugs? -- Steve Tate --- srt@cs.unt.edu | Conservatives: People who think that Dept. of Computer Sciences | nothing should be done for the first University of North Texas | time. Denton, TX 76201 |