Re: Mostly portable strnlen_user()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 25, 2012 at 4:06 PM, David Miller <davem@xxxxxxxxxxxxx> wrote:
>
> Maybe something like:
>
> #define HAS_ZERO_CONST_DECLARE  ...
> #define HAS_ZERO_VAR_DECLARE    ...
> #define HAS_ZERO_ARGS           ...

Ugh. I'd rather then have a opaque typedef that may be a single word
or a couple of words. Then it just declares that (without knowing what
it is), and passes it around to the "find zeroes" and "get length from
mask" functions.

For x86, it would be that single "mask" variable, for sparc it would
be a struct of the "v" and "rhs" variables.

Hmm?

                             Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux