* [NFS] [patch] rpcgen: include sys/ioctl.h on linux systems
@ 2008-04-20 10:49 Mike Frysinger
2008-10-06 18:10 ` Fwd: " Chuck Lever
2008-10-08 15:08 ` Steve Dickson
0 siblings, 2 replies; 3+ messages in thread
From: Mike Frysinger @ 2008-04-20 10:49 UTC (permalink / raw)
To: nfs
[-- Attachment #1.1: Type: text/plain, Size: 174 bytes --]
the rpcgen tool included with nfs-utils will generate calls to ioctl() but not
actually generate the sys/ioctl.h header include. attached patch should fix
this.
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
[-- Attachment #2: nfs-utils-1.1.2-rpcgen-ioctl.patch --]
[-- Type: text/x-diff, Size: 367 bytes --]
--- tools/rpcgen/rpc_main.c
+++ tools/rpcgen/rpc_main.c
@@ -548,6 +548,9 @@
#ifndef linux
if( !tirpcflag && inetdflag )
f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n");
+#else
+ if( !tirpcflag )
+ f_print(fout, "#include <sys/ioctl.h>/* TIOCNOTTY */\n");
#endif
if( Cflag && (inetdflag || pmflag ) ) {
f_print(fout, "#ifdef __cplusplus\n");
[-- Attachment #3: Type: text/plain, Size: 320 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
[-- Attachment #4: Type: text/plain, Size: 362 bytes --]
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
http://vger.kernel.org/vger-lists.html#linux-nfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Fwd: [NFS] [patch] rpcgen: include sys/ioctl.h on linux systems
2008-04-20 10:49 [NFS] [patch] rpcgen: include sys/ioctl.h on linux systems Mike Frysinger
@ 2008-10-06 18:10 ` Chuck Lever
2008-10-08 15:08 ` Steve Dickson
1 sibling, 0 replies; 3+ messages in thread
From: Chuck Lever @ 2008-10-06 18:10 UTC (permalink / raw)
To: Steve Dickson; +Cc: Linux NFS Mailing List
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
Steve-
Resending. Is this valid for nfs-utils 1.1.4?
Begin forwarded message:
> From: Mike Frysinger <vapier@gentoo.org>
> Date: April 20, 2008 6:49:44 AM GMT-04:00
> To: nfs@lists.sourceforge.net
> Subject: [NFS] [patch] rpcgen: include sys/ioctl.h on linux systems
>
> the rpcgen tool included with nfs-utils will generate calls to
> ioctl() but not
> actually generate the sys/ioctl.h header include. attached patch
> should fix
> this.
> -mike
[-- Attachment #2: nfs-utils-1.1.2-rpcgen-ioctl.patch --]
[-- Type: text/x-diff, Size: 367 bytes --]
--- tools/rpcgen/rpc_main.c
+++ tools/rpcgen/rpc_main.c
@@ -548,6 +548,9 @@
#ifndef linux
if( !tirpcflag && inetdflag )
f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n");
+#else
+ if( !tirpcflag )
+ f_print(fout, "#include <sys/ioctl.h>/* TIOCNOTTY */\n");
#endif
if( Cflag && (inetdflag || pmflag ) ) {
f_print(fout, "#ifdef __cplusplus\n");
[-- Attachment #3: Type: text/plain, Size: 757 bytes --]
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save
> $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
> NFS maillist - NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs
> _______________________________________________
> Please note that nfs@lists.sourceforge.net is being discontinued.
> Please subscribe to linux-nfs@vger.kernel.org instead.
> http://vger.kernel.org/vger-lists.html#linux-nfs
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [NFS] [patch] rpcgen: include sys/ioctl.h on linux systems
2008-04-20 10:49 [NFS] [patch] rpcgen: include sys/ioctl.h on linux systems Mike Frysinger
2008-10-06 18:10 ` Fwd: " Chuck Lever
@ 2008-10-08 15:08 ` Steve Dickson
1 sibling, 0 replies; 3+ messages in thread
From: Steve Dickson @ 2008-10-08 15:08 UTC (permalink / raw)
To: Mike Frysinger; +Cc: nfs
Mike Frysinger wrote:
> the rpcgen tool included with nfs-utils will generate calls to ioctl()
> but not
> actually generate the sys/ioctl.h header include. attached patch should
> fix
> this.
> -mike
Committed....
steved.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
http://vger.kernel.org/vger-lists.html#linux-nfs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-08 15:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-20 10:49 [NFS] [patch] rpcgen: include sys/ioctl.h on linux systems Mike Frysinger
2008-10-06 18:10 ` Fwd: " Chuck Lever
2008-10-08 15:08 ` Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox