[Python-bugs-list] [ python-Bugs-521723 ] fcntl.ioctl on openbsd

noreply@sourceforge.net noreply@sourceforge.net
Fri, 22 Feb 2002 21:34:26 -0800


Bugs item #521723, was opened at 2002-02-22 21:34
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=521723&group_id=5470

Category: Extension Modules
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Rossi (skin_pup)
Assigned to: Nobody/Anonymous (nobody)
Summary: fcntl.ioctl on openbsd

Initial Comment:
>From the OpenBSD man page -------

#include <sys/ioctl.h>
int
ioctl(int d, unsigned long request, ...);
--

On OpenBSD ioctl takes an unsigned long for the action
to be preformed on d. The function fcntl_ioctl() in
Modules/fcntlmodule.c will only accept an int for the
second argument without rasing an error. On OpenBSD
(maybe free/net also I have not checked) an unsigned
long should be the largest allowed.

>From Modules/fcntlmodule.c -------
PyArg_ParseTuple(args, "iis#:ioctl", &fd, &code, &str,
&len))
--


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=521723&group_id=5470