Searched refs:rbuflen (Results 1 – 3 of 3) sorted by relevance
/external/selinux/libselinux/src/ |
D | seusers.c | 100 long rbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); in get_default_gid() local 101 if (rbuflen <= 0) return -1; in get_default_gid() 102 char *rbuf = malloc(rbuflen); in get_default_gid() 105 int retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in get_default_gid() 119 long rbuflen = sysconf(_SC_GETGR_R_SIZE_MAX); in check_group() local 120 if (rbuflen <= 0) in check_group() 125 rbuf = malloc(rbuflen); in check_group() 129 rbuflen, &grent); in check_group() 133 rbuflen = rbuflen * 2; in check_group()
|
/external/toybox/toys/pending/ |
D | tftpd.c | 239 int fd = 0, recvmsg_len, rbuflen, opcode, blksize = TFTPD_BLKSIZE, tsize = 0, set =1; in tftpd_main() local 287 rbuflen = toybuf + recvmsg_len - buf; in tftpd_main() 288 if (rbuflen) { in tftpd_main() 291 for (; rbuflen; rbuflen -= jump, buf += jump) { in tftpd_main()
|
/external/selinux/libsemanage/src/ |
D | genhomedircon.c | 972 long rbuflen; in add_user() local 982 rbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); in add_user() 983 if (rbuflen == -1 && errno == 0) in add_user() 985 rbuflen = 1024; in add_user() 986 else if (rbuflen <= 0) in add_user() 988 rbuf = malloc(rbuflen); in add_user() 1008 retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in add_user()
|