From: Sinelnikov Evgeny <linux4sin@mail.ru>
To: cpb@log2.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: util-linux-2.12: did you find a fix?
Date: Sun, 19 Oct 2003 22:26:11 +0400 [thread overview]
Message-ID: <200310192226.11583.linux4sin@mail.ru> (raw)
In-Reply-To: <20031019060328.25277.qmail@log2.net>
> I read your email on LKML about the problem compiling util-linux-2.12
> with linux-2.6.0-test5 headers (the problem with _IOC_TYPECHECK).
> Did you find a way to fix the problem? If you solved it, could you tell
> me how to fix the util-linux problem?
I solved it so:
asm/ioctl.h:
...............
/* used to create numbers */
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)
#define _IOR(type,nr,size)
_IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
#define _IOW(type,nr,size)
_IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
#define _IOWR(type,nr,size)
_IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
#define _IOR_BAD(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
#define _IOW_BAD(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),sizeof(size))
#define _IOWR_BAD(type,nr,size)
_IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
.....................
I patched all files that contains next defines:
_IOR, _IOW or _IOWR
with
_IOR_BAD, _IOW_BAD, _IOWR_BAD
Really it is not right.
But it would be so if I complie with 2.4.x headers
sizeof(sizeof(anymore)) is sizeof(int). And threre was int. Thus it was right
only there.
Sin (Sinelnikov Evgeny)
parent reply other threads:[~2003-10-19 18:21 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20031019060328.25277.qmail@log2.net>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200310192226.11583.linux4sin@mail.ru \
--to=linux4sin@mail.ru \
--cc=cpb@log2.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.