Searched defs:linebuf (Results 1 - 25 of 54) sorted by relevance

123

/illumos-gate/usr/src/lib/libsocket/inet/
H A Dbootparams_getbyname.c48 char *linebuf, /* buffer to put the answer in */
49 int linelen /* max # of bytes to put into linebuf */
55 NSS_XbyY_INIT(&arg, linebuf, linebuf, linelen, str2bootent);
46 bootparams_getbyname( char *name, char *linebuf, int linelen ) argument
/illumos-gate/usr/src/tools/ctf/dwarf/common/
H A Ddwarf_line2.c67 Dwarf_Line *linebuf; local
69 res = _dwarf_internal_srclines(die, &linebuf, &lcount, /* addrlist=
78 dwarf_srclines_dealloc(dbg, linebuf, lcount);
85 dwarf_srclines_dealloc(dbg, linebuf, lcount);
95 laddrs[i] = linebuf[i]->li_address;
96 loffsets[i] = linebuf[i]->li_addr_line.li_offset;
98 dwarf_srclines_dealloc(dbg, linebuf, lcount);
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A Dfksmbd_shr.c66 char linebuf[1024]; local
77 while ((p = fgets(linebuf, sizeof (linebuf), fp)) != NULL) {
/illumos-gate/usr/src/cmd/sgs/rtld.4.x/
H A Drtsubrs.c124 char linebuf[128]; local
126 doprf(fd, fmt, adx, linebuf);
130 doprf(fd, fmt, adx, linebuf)
134 char *linebuf;
143 if (lbp >= &linebuf[128]) { \
144 _write(fd, linebuf, lbp - &linebuf[0]); \
145 lbp = &linebuf[0]; \
150 lbp = &linebuf[0];
154 _write(fd, linebuf, lb
[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/fm/libdiskstatus/common/
H A Dds_util.c58 char linebuf[LINEBUFLEN]; local
69 linep = linebuf;
136 linebuf[LINEBUFLEN - bufleft] = 0;
138 dprintf("%s\n", linebuf);
140 linep = linebuf;
/illumos-gate/usr/src/cmd/mailx/
H A Dhead.c64 is_headline(const char *linebuf) argument
69 if (strncmp("From ", linebuf, 5) != 0) {
73 if (headline_alloc(&hl) != 0 || parse_headline(linebuf, hl) != 0) {
H A Dcmd2.c409 snarf(char linebuf[], int *flag, int erf) argument
422 for (line_beg = linebuf;
H A Dfio.c67 char linebuf[LINESIZE]; local
103 while ((n = getln(linebuf, sizeof (linebuf), ibuf)) > 0) {
108 hdr = inhead && (headerp(linebuf) ||
109 (linebuf[0] == ' ' || linebuf[0] == '\t'));
117 if (fwrite(linebuf, 1, (int)clen, otf) !=
122 l += linecount(linebuf, clen);
128 memcpy(linebuf, linebuf
398 readline(FILE *ibuf, char *linebuf) argument
[all...]
/illumos-gate/usr/src/cmd/msgfmt/
H A Dcheck_header.c89 char *linebuf; local
99 linebuf = NULL;
103 ln_size = get_one_line(&linebuf, &mbuf, &size);
108 p = linebuf;
111 ln_size = get_one_line(&linebuf, &mbuf, &size);
116 p = linebuf;
152 ln_size = get_one_line(&linebuf, &mbuf, &size);
157 p = linebuf;
295 ln_size = get_one_line(&linebuf, &mbuf, &size);
300 p = linebuf;
[all...]
/illumos-gate/usr/src/psm/stand/bootlst/common/
H A Dbootlst.c139 char linebuf[MAX_CMDLINE]; local
154 while (fgets(linebuf, MAX_CMDLINE, file)) {
155 cp = trim_white_space(linebuf);
191 while (cons_gets(linebuf, MAX_CMDLINE)) {
193 cp = trim_white_space(linebuf);
/illumos-gate/usr/src/cmd/dumpcs/
H A Ddumpcs.c51 static char linebuf[SCRWID / 2 * (MB_LEN_MAX + 1)]; variable
165 (void) strcpy(linebuf, "");
168 (void) printf("\n%s", linebuf);
209 if (*linebuf) {
211 (void) printf("\n%s", linebuf);
219 (void) sprintf(linebuf, "%lx ",
224 (void) sprintf(linebuf, "%lx ", wc);
237 (void) strcat(linebuf, prep);
239 (void) strcat(linebuf, " ");
241 (void) strcat(linebuf, pre
[all...]
/illumos-gate/usr/src/lib/fm/libdiagcode/common/
H A Ddiagcode_test.c336 char linebuf[MAXLINE]; local
351 while (fgets(linebuf, MAXLINE, fp) != NULL) {
358 if (strncmp(linebuf, "#TEST:", 6))
361 if ((endp = strchr(linebuf, '\n')) != NULL)
364 beginp = &linebuf[6];
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkuserok.c274 char linebuf[BUFSIZ]; local
347 while (!isok && (fgets(linebuf, BUFSIZ, fp) != NULL)) {
349 linebuf[BUFSIZ-1] = '\0';
352 if ((newline = strchr(linebuf, '\n')))
354 if (!strcmp(linebuf, princname)) {
/illumos-gate/usr/src/cmd/vi/misc/
H A Dxstr.c141 char linebuf[BUFSIZ]; local
147 if (fgets(linebuf, sizeof (linebuf), stdin) == NULL) {
155 if (linebuf[0] == '#') {
156 if (linebuf[1] == ' ' && isdigit(linebuf[2]))
157 printf("#line%s", &linebuf[1]);
159 printf("%s", linebuf);
162 for (cp = linebuf; c = *cp++; ) {
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_vadj.c581 linebuf[0] = 0; local
667 CP(temp, linebuf);
876 CP(temp, linebuf);
/illumos-gate/usr/src/cmd/xstr/
H A Dxstr.c123 char linebuf[BUFSIZ]; variable
135 if (fgets(linebuf, sizeof (linebuf), stdin) == NULL) {
143 if (linebuf[0] == '#') {
144 if (linebuf[1] == ' ' && isdigit(linebuf[2]))
145 (void) printf("#line%s", &linebuf[1]);
147 (void) printf("%s", linebuf);
150 for (cp = linebuf; (c = *cp++) != 0; ) {
217 if (fgets(linebuf, sizeo
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/
H A Dfc_led_parse.c490 char linebuf[160]; local
502 while ((ptr = fgets(linebuf, sizeof (linebuf), fp)) != NULL) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_import.c265 static char *linebuf = NULL; local
274 if (linebuf == NULL)
275 if ((linebuf = (char *)malloc(LINESZ)) == NULL)
278 stringp = currp = linebuf;
281 if (fgets(currp, STR_ADJ_SZ(LINESZ, linebuf, currp), fp) == NULL)
/illumos-gate/usr/src/cmd/exstr/
H A Dexstr.c243 char linebuf[BUFSIZ]; local
262 inp = linebuf;
264 linebuf[0] = '\0';
349 } else if (*linebuf != '\0')
350 (void) fputs(linebuf, stdout);
352 inp = linebuf;
353 if (fgets(linebuf,
354 sizeof (linebuf), fi) == (char *)NULL) {
379 if (fgets(linebuf,
380 sizeof (linebuf), f
[all...]
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dns_files.c85 char linebuf[LINESZ], lineqbuf[LINESZ]; local
119 rc = call_read_execout(key, &lp, fname, ml->linebuf, LINESZ);
126 if (strlen(ml->linebuf) == 0) {
131 unquote(ml->linebuf, ml->lineqbuf);
142 lp = get_line(fp, fname, linebuf, sizeof (linebuf));
196 (void) strcpy(ml->linebuf, lp);
219 char linebuf[LINESZ], lineqbuf[LINESZ]; local
264 lp = get_line(fp, fname, linebuf, sizeof (linebuf));
333 char linebuf[LINESZ]; local
424 char linebuf[LINESZ]; local
[all...]
/illumos-gate/usr/src/cmd/troff/
H A Dn9.c91 tchar linebuf[NC]; local
111 i = linebuf;
136 pushback(linebuf);
/illumos-gate/usr/src/tools/stabs/
H A Dmain.c324 static char linebuf[MAXLINE]; local
330 for (line = 1; (cp = fgets(linebuf, MAXLINE, sp)) != NULL; line++) {
373 ((cp = fgets(linebuf, MAXLINE, sp)) != NULL) &&
/illumos-gate/usr/src/cmd/iconv/
H A Diconv_list.c239 char linebuf[256]; local
242 while (fgets(linebuf, sizeof (linebuf), fh) != NULL) {
243 if (linebuf[0] == '#')
245 p1 = strchr(linebuf, ' ');
253 alias_insert(p1, linebuf);
/illumos-gate/usr/src/cmd/ucodeadm/
H A Ducodeadm.c146 char linebuf[LINESIZE]; local
157 while (fgets(linebuf, LINESIZE, infd)) {
160 if (firstline && !isprint(linebuf[0])) {
171 if (strlen(linebuf) == 1)
175 if (strcspn(linebuf, " \t") == 0)
179 if (linebuf[0] == '/')
182 if (sscanf(linebuf, "%x, %x, %x, %x",

Completed in 107 milliseconds

123