Home
last modified time | relevance | path

Searched refs:grbuflen (Results 1 – 1 of 1) sorted by relevance

/external/selinux/libsemanage/src/
Dgenhomedircon.c1062 long grbuflen; in get_group_users() local
1068 grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX); in get_group_users()
1069 if (grbuflen == -1 && errno == 0) in get_group_users()
1071 grbuflen = 1024; in get_group_users()
1072 else if (grbuflen <= 0) in get_group_users()
1074 grbuf = malloc(grbuflen); in get_group_users()
1082 (retval = getgrnam_r(grname, &grstorage, grbuf, (size_t) grbuflen, &group)) != 0 && in get_group_users()
1086 grbuflen *= 2; in get_group_users()
1087 if (grbuflen < 0) in get_group_users()
1091 new_grbuf = realloc(grbuf, grbuflen); in get_group_users()