From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Nasser To: ±èµæÁß Cc: gdb@sources.redhat.com Subject: Re: About struct bpp_transfer_params... Date: Fri, 08 Jun 2001 07:43:00 -0000 Message-id: <3B20E3E3.C2788841@redhat.com> References: <4.2.0.58.20010608095444.01b7aa40@ics.u-strasbg.fr> <002c01c0eff5$092f61a0$4e0366d2@adc.co.kr> X-SW-Source: 2001-06/msg00049.html ±èµæÁß wrote: > > Hi.. > > i'm studying a gdb parallel port source that is gdb/rdi-share/ directory.. > > but, i dont know about struct bpp_transfer_parms.. > and i couldn't find any infomation about that.. > so., who tell me a method? or give me a infomation about struct bpp_transfer_parms.. > > Have a nice day! bpp_transfer_parms only exists on Sun machines. It is either under /usr/include/sys or /usr/include/sbusdev in a header file called bpp_io.h Note that you can figure this things out by yourself. If you looked at the start of that source file you would have seen: #ifdef sun # include # ifdef __svr4__ # include # else # include # endif #endif Always remember that there is no magic. If the compiler did not complain about a symbol and it was not defined in that source file, so it must have been defined in something that it included -- probably in the header files. Also, if you look at the lines where it is used, like: struct bpp_transfer_parms tp; /* * we need to set the parallel port up for BUSY handshaking, * and select the timeout */ if (ioctl(parpfd, BPPIOC_GETPARMS, &tp) < 0) you can determine that it is associated with the ioctl() in some way, in particular with parallel ports ad the operation BPPIOC_GETPARMS. Good luck with your project. -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9