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/login-utils/sulogin-consoles.c
static __attribute__((__malloc__)) char* actattr(const char* const tty)
{
    char *ret, *path;

    if (!tty || !*tty)
        return NULL;
    if (asprintf(&path, "/sys/class/tty/%s/active", tty) < 0)
        return NULL;

    ret = oneline(path);
    free(path);
    return ret;
}
/*
 *  Read and determine active attribute for tty below
 *  /sys/class/tty, the caller has to free the result.
 */
Read and determine active attribute for tty below
/sys/class/tty, the caller has to free the result.
Read and determine active attribute for tty below / sys / class / tty the caller has to free the result .
static __attribute__((__malloc__)) char* actattr(const char* const tty)
{
    char *ret, *path;
    if (!tty || !*tty)
        return NULL;
    if (asprintf(&path, "/sys/class/tty/%s/active", tty) < 0)
        return NULL;
    ret = oneline(path);
    free(path);
    return ret;
}
static __attribute__ ( ( __malloc__ ) ) char * actattr ( const char * const tty ) { char * ret , * path ; if ( ! tty || ! * tty ) return NULL ; if ( asprintf ( & path , " " , tty ) < 0 ) return NULL ; ret = oneline ( path ) ; free ( path ) ; return ret ; }
Read and determine active attribute for tty below
  /sys/class/tty, the caller has to free the result.
Read and determine active attribute for tty below / sys / class / tty the caller has to free the result .