Searched refs:linelen (Results 1 - 25 of 46) sorted by relevance

12

/illumos-gate/usr/src/lib/libnsl/nss/
H A Dparse.c160 int linelen; local
163 linelen = 0;
164 while (linelen < buflen - 1) { /* "- 1" saves room for \n\0 */
166 if (linelen == 0 ||
167 buffer[linelen - 1] == '\\') {
170 buffer[linelen] = '\n';
171 buffer[linelen + 1] = '\0';
172 return (linelen);
178 if (linelen > 0 &&
179 buffer[linelen
[all...]
/illumos-gate/usr/src/lib/nsswitch/user/common/
H A Duser_common.c100 int linelen; /* 1st unused slot in buffer */ local
105 linelen = 0;
106 while (linelen < buflen - 1) { /* "- 1" saves room for \n\0 */
109 if (linelen == 0 ||
110 buffer[linelen - 1] == '\\') {
113 buffer[linelen ] = '\n';
114 buffer[linelen + 1] = '\0';
115 return (linelen);
118 if (linelen > 0 &&
119 buffer[linelen
177 int linelen; local
[all...]
H A Dgetprinter.c125 int linelen; local
133 * linelen counts the characters up to but excluding the '\n'
135 if ((linelen = _nss_user_read_line(be->f, instr,
199 int linelen; local
201 if ((linelen = _nss_user_read_line(be->f, instr,
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetspent.c35 check_spnamp(nss_XbyY_args_t *argp, const char *line, int linelen) argument
41 if (linelen == 0 || *line == '+' || *line == '-')
43 while (*keyp && linelen-- && *keyp == *linep) {
47 return (linelen && *keyp == '\0' && *linep == ':');
H A Dbootparams_getbyname.c104 int linelen; local
111 * linelen counts the characters up to but excluding the '\n'
113 if ((linelen = _nss_files_read_line(be->f, instr,
125 limit = p + linelen;
152 linelen -= (p - instr);
153 if (args->buf.buflen <= linelen) { /* not enough buffer */
157 (void) memcpy(args->buf.buffer, p, linelen);
158 args->buf.buffer[linelen] = '\0';
160 args->returnlen = linelen;
H A Dgetgrent.c36 int linelen)
48 while (linelen-- && *line++ != ':')
59 int linelen)
65 limit = line + linelen;
98 check_grname(nss_XbyY_args_t *argp, const char *line, int linelen) argument
104 limit = line + linelen;
107 if (linelen == 0 || *line == '+' || *line == '-')
125 check_grgid(nss_XbyY_args_t *argp, const char *line, int linelen) argument
131 limit = line + linelen;
134 if (linelen
35 hash_grname(nss_XbyY_args_t *argp, int keyhash, const char *line, int linelen) argument
58 hash_grgid(nss_XbyY_args_t *argp, int keyhash, const char *line, int linelen) argument
177 int linelen = *linelenp, newlinelen; local
[all...]
H A Dgetpwnam.c37 int linelen)
49 while (linelen-- && *line++ != ':')
60 int linelen)
66 limit = line + linelen;
100 check_pwname(nss_XbyY_args_t *argp, const char *line, int linelen) argument
106 limit = line + linelen;
109 if (linelen == 0 || *line == '+' || *line == '-')
127 check_pwuid(nss_XbyY_args_t *argp, const char *line, int linelen) argument
133 limit = line + linelen;
136 if (linelen
36 hash_pwname(nss_XbyY_args_t *argp, int keyhash, const char *line, int linelen) argument
59 hash_pwuid(nss_XbyY_args_t *argp, int keyhash, const char *line, int linelen) argument
180 int linelen = *linelenp, newlinelen; local
[all...]
H A Dgetprojent.c36 int linelen) {
48 while (linelen-- && *line++ != ':')
59 int linelen) {
65 limit = line + linelen;
98 check_projid(nss_XbyY_args_t *argp, const char *line, int linelen) { argument
103 limit = line + linelen;
35 hash_projname(nss_XbyY_args_t *argp, int keyhash, const char *line, int linelen) argument
58 hash_projid(nss_XbyY_args_t *argp, int keyhash, const char *line, int linelen) argument
H A Dgetprinter.c41 check_name(nss_XbyY_args_t *argp, const char *line, int linelen) argument
49 limit = line + linelen;
100 int linelen; local
102 if ((linelen = _nss_files_read_line(be->f, instr,
113 linelen--;
136 if (check != NULL && (*check)(args, instr, linelen) == 0)
140 parsestat = (*func)(instr, linelen, args->buf.result,
146 args->returnlen = linelen;
H A Dtsol_gettpent.c37 check_name(nss_XbyY_args_t *args, const char *line, int linelen) argument
42 limit = line + linelen;
H A Dfiles_common.c103 int linelen; /* 1st unused slot in buffer */ local
108 linelen = 0;
109 while (linelen < buflen - 1) { /* "- 1" saves room for \n\0 */
112 if (linelen == 0 ||
113 buffer[linelen - 1] == '\\') {
116 buffer[linelen ] = '\n';
117 buffer[linelen + 1] = '\0';
118 return (linelen);
121 if (linelen > 0 &&
122 buffer[linelen
177 int linelen; local
247 int linelen; local
[all...]
H A Dether_addr.c53 check_host(nss_XbyY_args_t *argp, const char *line, int linelen) argument
57 limit = line + linelen;
109 check_ether(nss_XbyY_args_t *argp, const char *line, int linelen) argument
118 limit = line + linelen;
H A Dgethostent6.c62 check_addr(nss_XbyY_args_t *argp, const char *line, int linelen) argument
64 return (__nss_files_check_addr(AF_INET6, argp, line, linelen));
H A Dgetprotoent.c48 check_addr(nss_XbyY_args_t *argp, const char *line, int linelen) argument
54 limit = line + linelen;
H A Dgetrpcent.c48 check_rpcnum(nss_XbyY_args_t *argp, const char *line, int linelen) argument
54 limit = line + linelen;
H A Dgetexecattr.c57 check_match(nss_XbyY_args_t *argp, const char *line, int linelen) argument
73 limit = line + linelen;
190 int linelen = 0; local
193 linelen = _readbufline(f_buf, f_size, instr, be->minbuf,
195 if (linelen < 0) {
232 last = instr + linelen;
250 linelen = last - first + 1;
257 if (check_match(argp, instr, linelen) == 0)
261 parse_stat = (*argp->str2ent)(instr, linelen, argp->buf.result,
266 argp->returnlen = linelen;
[all...]
H A Dgetservent.c40 check_name(nss_XbyY_args_t *argp, const char *line, int linelen) argument
46 limit = line + linelen;
129 check_port(nss_XbyY_args_t *argp, const char *line, int linelen) argument
136 limit = line + linelen;
H A Dgetnetent.c52 check_addr(nss_XbyY_args_t *argp, const char *line, int linelen) argument
61 limit = line + linelen;
H A Dgethostent.c48 check_name(nss_XbyY_args_t *argp, const char *line, int linelen, argument
56 limit = line + linelen;
169 int linelen)
187 limit = line + linelen;
206 check_addr(nss_XbyY_args_t *argp, const char *line, int linelen) argument
208 return (__nss_files_check_addr(AF_INET, argp, line, linelen));
389 int linelen; local
391 if ((linelen = _nss_files_read_line(be->f,
407 last = instr + linelen;
417 linelen
168 __nss_files_check_addr(int af, nss_XbyY_args_t *argp, const char *line, int linelen) argument
[all...]
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dnss_printer.c121 getprinterentry(char *linebuf, int linelen, char *ns) argument
127 NSS_XbyY_INIT(&arg, linebuf, linebuf, linelen, str2printer);
137 getprinterbyname(char *name, char *linebuf, int linelen, char *ns) argument
143 NSS_XbyY_INIT(&arg, linebuf, linebuf, linelen, str2printer);
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetpwnam.c67 int linelen = *linelenp, newlinelen; local
70 limit = linep + linelen;
73 if (linelen == 0 || *linep == '+' || *linep == '-')
102 newlinelen = linelen + idlen - olduidlen - oldgidlen - 1;
103 if (newlinelen > linelen) {
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirp.c412 u_int linelen; local
425 linelen = strlen(line);
427 if (line[linelen - 1] != '\n')
431 if (linelen > 2 && line[linelen - 2] == '\r') {
432 line[linelen - 2] = '\n';
433 line[linelen - 1] = '\0';
434 linelen--;
437 if (linelen == 2 && line[0] == '.') {
444 if (linelen > (le
[all...]
/illumos-gate/usr/src/lib/nsswitch/compat/common/
H A Dcompat_common.c276 do_merge(be, args, instr, linelen)
280 int linelen;
286 const char *end = instr + linelen;
462 int linelen; local
468 linelen = strlen(buffer);
469 /* linelen >= 1 (since fgets didn't return 0) */
471 if (buffer[linelen - 1] == '\n') {
478 buffer[--linelen] = '\0';
479 return (linelen);
483 return (linelen);
572 int linelen; local
775 int linelen; local
1018 int linelen; local
[all...]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbootparams_getbyname.c49 int linelen /* max # of bytes to put into linebuf */
55 NSS_XbyY_INIT(&arg, linebuf, linebuf, linelen, str2bootent);
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmime.c111 int linelen; local
499 linelen = 0;
562 if (linelen > 71)
567 linelen = 0;
570 linelen += 4;
651 linelen = fromstate = 0;
656 if (c2 == ' ' && linelen == 4 && fromstate == 4 &&
662 linelen += 3;
667 linelen++;
669 if (linelen > 7
[all...]

Completed in 93 milliseconds

12