Lines Matching refs:param

47 static int	proc_name(char *param, char *value);
48 static int proc_arch(char *param, char *value);
49 static int proc_version(char *param, char *value);
50 static int proc_category(char *param, char *value);
51 static int bad_first_char(char *param, char *value);
52 static int not_alnum(char *param, char *pt);
53 static int not_ascii(char *param, char *pt);
54 static int too_long(char *param, char *pt, int len);
55 static int isnull(char *param, char *pt);
58 ckparam(char *param, char *val) in ckparam() argument
63 if (strcmp(param, "NAME") == 0) in ckparam()
64 ret_val = proc_name(param, value); in ckparam()
66 else if (strcmp(param, "ARCH") == 0) in ckparam()
67 ret_val = proc_arch(param, value); in ckparam()
69 else if (strcmp(param, "VERSION") == 0) in ckparam()
70 ret_val = proc_version(param, value); in ckparam()
72 else if (strcmp(param, "CATEGORY") == 0) in ckparam()
73 ret_val = proc_category(param, value); in ckparam()
81 proc_name(char *param, char *value) in proc_name() argument
85 if (!(ret_val = isnull(param, value))) { in proc_name()
86 ret_val += too_long(param, value, MAXLEN); in proc_name()
87 ret_val += not_ascii(param, value); in proc_name()
94 proc_arch(char *param, char *value) in proc_arch() argument
99 if (!(ret_val = isnull(param, value))) { in proc_arch()
103 ret_val += too_long(param, token, TOKLEN); in proc_arch()
104 ret_val += not_ascii(param, token); in proc_arch()
113 proc_version(char *param, char *value) in proc_version() argument
117 if (!(ret_val = isnull(param, value))) { in proc_version()
118 ret_val += bad_first_char(param, value); in proc_version()
119 ret_val += too_long(param, value, MAXLEN); in proc_version()
120 ret_val += not_ascii(param, value); in proc_version()
127 proc_category(char *param, char *value) in proc_category() argument
132 if (!(ret_val = isnull(param, value))) { in proc_category()
136 ret_val += too_long(param, token, TOKLEN); in proc_category()
137 ret_val += not_alnum(param, token); in proc_category()
146 bad_first_char(char *param, char *value) in bad_first_char() argument
149 progerr(pkg_gt(ERR_CHAR), param); in bad_first_char()
157 isnull(char *param, char *pt) in isnull() argument
160 progerr(pkg_gt(ERR_UNDEF), param); in isnull()
167 too_long(char *param, char *pt, int len) in too_long() argument
170 progerr(pkg_gt(ERR_LEN), param); in too_long()
177 not_ascii(char *param, char *pt) in not_ascii() argument
181 progerr(pkg_gt(ERR_ASCII), param); in not_ascii()
190 not_alnum(char *param, char *pt) in not_alnum() argument
194 progerr(pkg_gt(ERR_ALNUM), param); in not_alnum()