Lines Matching refs:str
102 usr_add(char *str)
112 if ((str == NULL) || (*str == '\0'))
123 if (str[0] != '#') {
127 if ((str[0] == '\\') && (str[1] == '#'))
128 ++str;
129 if ((pw = getpwnam(str)) == NULL) {
130 paxwarn(1, "Unable to find uid for user: %s", str);
136 uid = (uid_t)atoi(str+1);
138 uid = (uid_t)strtoul(str+1, NULL, 10);
203 grp_add(char *str)
213 if ((str == NULL) || (*str == '\0'))
224 if (str[0] != '#') {
228 if ((str[0] == '\\') && (str[1] == '#'))
229 ++str;
230 if ((gr = getgrnam(str)) == NULL) {
231 paxwarn(1,"Cannot determine gid for group name: %s", str);
237 gid = (gid_t)atoi(str+1);
239 gid = (gid_t)strtoul(str+1, NULL, 10);
326 trng_add(char *str)
337 if ((str == NULL) || (*str == '\0')) {
345 if ((flgpt = strrchr(str, '/')) != NULL)
348 for (stpt = str; *stpt != '\0'; ++stpt) {
365 paxwarn(1, "Improperly specified time range: %s", str);
397 *flgpt, str);
409 if (*str != '\0') {
413 if (str_sec(str, &(pt->low_time)) < 0) {
414 paxwarn(1, "Illegal lower time range %s", str);
438 up_pt, str);
536 str_sec(char *str, time_t *tval)
542 if ((dot = strchr(str, '.')) != NULL) {
554 switch (strlen(str)) {
560 if ((lt->tm_year = ATOI2(str)) < 69)
562 str += 2;
569 if ((lt->tm_mon = ATOI2(str)) > 12)
572 str += 2;
578 if ((lt->tm_mday = ATOI2(str)) > 31)
580 str += 2;
586 if ((lt->tm_hour = ATOI2(str)) > 23)
588 str += 2;
594 if ((lt->tm_min = ATOI2(str)) > 59)