5
COMEDILIB - Linux Control and Measurement Device Interface Library
6
Copyright (C) 1997-2001 David A. Schleef <ds@schleef.org>
8
This library is free software; you can redistribute it and/or
9
modify it under the terms of the GNU Lesser General Public
10
License as published by the Free Software Foundation, version 2.1
13
This library is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Lesser General Public License for more details.
18
You should have received a copy of the GNU Lesser General Public
19
License along with this library; if not, write to the Free Software
20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
27
#include <sys/types.h>
31
#include <sys/ioctl.h>
35
#include "libinternal.h"
40
int _comedi_ioctl( int fd, int request, unsigned long arg )
44
ret = ioctl( fd, request, arg );
50
int _comedi_ioctl_debug(int fd, int request, unsigned long arg)
54
fprintf(stderr,"ioctl(%d,0x%08x,0x%08lx) = ",fd,request,arg);
55
ret = _comedi_ioctl(fd,request,arg);
56
fprintf(stderr,"%d\n",ret);