openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/sys-utils/fallocate.c
static int is_nul(void* buf, size_t bufsize)
{
    typedef uintptr_t word;
    void const* vp;
    char const *cbuf = buf, *cp;
    word const* wp = buf;

    /* set sentinel */
    memset((char*)buf + bufsize, '\1', sizeof(word));

    /* Find first nonzero *word*, or the word with the sentinel.  */
    while (*wp++ == 0)
        continue;

    /* Find the first nonzero *byte*, or the sentinel.  */
    vp = wp - 1;
    cp = vp;

    while (*cp++ == 0)
        continue;

    return cbuf + bufsize < cp;
}
/* The real buffer size has to be bufsize + sizeof(uintptr_t) */
The real buffer size has to be bufsize + sizeof(uintptr_t)
The real buffer size has to be bufsize + sizeof ( uintptr_t )
static int is_nul(void* buf, size_t bufsize)
{
    typedef uintptr_t word;
    void const* vp;
    char const *cbuf = buf, *cp;
    word const* wp = buf;
    memset((char*)buf + bufsize, '\1', sizeof(word));
    while (*wp++ == 0)
        continue;
    vp = wp - 1;
    cp = vp;
    while (*cp++ == 0)
        continue;
    return cbuf + bufsize < cp;
}
static int is_nul ( void * buf , size_t bufsize ) { typedef uintptr_t word ; void const * vp ; char const * cbuf = buf , * cp ; word const * wp = buf ; memset ( ( char * ) buf + bufsize , ' \1 ' , sizeof ( word ) ) ; while ( * wp ++ == 0 ) continue ; vp = wp - 1 ; cp = vp ; while ( * cp ++ == 0 ) continue ; return cbuf + bufsize < cp ; }
The real buffer size has to be bufsize + sizeof(uintptr_t)
The real buffer size has to be bufsize + sizeof ( uintptr_t )
/* set sentinel */ /* Find first nonzero *word*, or the word with the sentinel.  */ /* Find the first nonzero *byte*, or the sentinel.  */