openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/shadow/4.6-r0/shadow-4.6/lib/subordinateio.c
static int add_range(struct commonio_db* db, const char* owner,
                     unsigned long start, unsigned long count)
{
    struct subordinate_range range;
    range.owner = owner;
    range.start = start;
    range.count = count;

    /* See if the range is already present */
    if (have_range(db, owner, start, count))
        return 1;

    /* Otherwise append the range */
    return commonio_append(db, &range);
}
/*
 * add_range: add a subuid range to an owning uid's list of authorized
 *            subuids.
 * @db: database to which to add
 * @owner: uid which owns the subuid
 * @start: the first uid in the owned range
 * @count: the number of uids in the range
 *
 * Return 1 if the range is already present or on success.  On error
 * return 0 and set errno appropriately.
 */
add a subuid range to an owning uid's list of authorized
subuids.
@db: database to which to add
@owner: uid which owns the subuid
@start: the first uid in the owned range
@count: the number of uids in the range

Return 1 if the range is already present or on success.  On error
return 0 and set errno appropriately.
add a subuid range to an owning uid ' s list of authorized subuids . @db : database to which to add @owner : uid which owns the subuid @start : the first uid in the owned range @count : the number of uids in the range Return 1 if the range is already present or on success . On error return 0 and set errno appropriately .
static int add_range(struct commonio_db* db, const char* owner,
                     unsigned long start, unsigned long count)
{
    struct subordinate_range range;
    range.owner = owner;
    range.start = start;
    range.count = count;
    if (have_range(db, owner, start, count))
        return 1;
    return commonio_append(db, &range);
}
static int add_range ( struct commonio_db * db , const char * owner , unsigned long start , unsigned long count ) { struct subordinate_range range ; range . owner = owner ; range . start = start ; range . count = count ; if ( have_range ( db , owner , start , count ) ) return 1 ; return commonio_append ( db , & range ) ; }
add_range: add a subuid range to an owning uid's list of authorized
            subuids.
add_range : add a subuid range to an owning uid ' s list of authorized subuids .
/* See if the range is already present */ /* Otherwise append the range */