Home
last modified time | relevance | path

Searched refs:lbuf (Results 1 – 25 of 53) sorted by relevance

123

/titanic_41/usr/src/cmd/ipf/lib/common/
H A Dipft_td.c100 char lbuf[160], *s; local
103 if (!fgets(lbuf, sizeof(lbuf) - 1, tfp))
106 if ((s = strchr(lbuf, '\n')))
108 lbuf[sizeof(lbuf)-1] = '\0';
112 if ((n = sscanf(lbuf, "%31s > %31s: %255s", src, dst, misc)) != 3)
113 if ((n = sscanf(lbuf, "%31s %31s > %31s: %255s",
115 if ((n = sscanf(lbuf, "%31s %31s: %31s > %31s: %255s",
117 n = sscanf(lbuf,
H A Dipft_ef.c77 char lbuf[128], len[8], prot[8], time[8], *s; local
80 if (!fgets(lbuf, sizeof(lbuf) - 1, efp))
83 if ((s = strchr(lbuf, '\n')))
85 lbuf[sizeof(lbuf)-1] = '\0';
89 if (sscanf(lbuf, "%7s %7s %15s %15s %15s %15s", len, prot, src, dst,
91 if (sscanf(lbuf, "%7s %7s %7s %15s %15s %15s %15s", time,
/titanic_41/usr/src/ucbcmd/from/
H A Dfrom.c28 char lbuf[BUFSIZ]; in main() local
84 while (fgets(lbuf, sizeof (lbuf), stdin) != NULL) in main()
85 if (lbuf[0] == '\n' && stashed) { in main()
88 } else if (strncmp(lbuf, "From ", 5) == 0 && in main()
89 (sender == NULL || match(&lbuf[4], sender))) { in main()
90 (void) strcpy(lbuf2, lbuf); in main()
/titanic_41/usr/src/cmd/head/
H A Dhead.c176 char lbuf[BUFSIZ]; in copyout() local
179 while (cnt > 0 && fgets(lbuf, sizeof (lbuf), input) != 0) { in copyout()
180 len = strlen(lbuf); in copyout()
182 (void) printf("%s", lbuf); in copyout()
187 if (lbuf[len - 1] == '\n') { in copyout()
194 lbuf[cnt] = '\0'; in copyout()
197 (void) printf("%s", lbuf); in copyout()
/titanic_41/usr/src/lib/libc/port/locale/
H A Dldpart.c54 char *lbuf, *p; in __part_load_locale() local
79 if ((lbuf = libc_malloc(bufsize)) == NULL) { in __part_load_locale()
83 (void) strcpy(lbuf, name); in __part_load_locale()
84 p = lbuf + namesize; in __part_load_locale()
108 *locale_buf = lbuf; in __part_load_locale()
118 free(lbuf); in __part_load_locale()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsafechown.c28 struct stat lbuf; in safechown() local
44 if (lstat(src, &lbuf)) { in safechown()
50 if (fdbuf.st_ino != lbuf.st_ino || fdbuf.st_dev != lbuf.st_dev || in safechown()
51 fdbuf.st_mode != lbuf.st_mode) { in safechown()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Denc_des.c416 char lbuf[ENCR_LBUF_BUFSIZ]; in cfb64_printsub() local
426 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, "%s_IV", type); in cfb64_printsub()
427 cp = lbuf; in cfb64_printsub()
431 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, "%s_IV_OK", type); in cfb64_printsub()
432 cp = lbuf; in cfb64_printsub()
436 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, "%s_IV_BAD", type); in cfb64_printsub()
437 cp = lbuf; in cfb64_printsub()
441 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, " %d (unknown)", in cfb64_printsub()
443 cp = lbuf; in cfb64_printsub()
448 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, " %d", data[i]); in cfb64_printsub()
[all …]
H A Dkerberos5.c522 char lbuf[AUTH_LBUF_BUFSIZ]; in kerberos5_printsub() local
568 (void) snprintf(lbuf, AUTH_LBUF_BUFSIZ, in kerberos5_printsub()
571 (void) strncpy((char *)buf, lbuf, buflen); in kerberos5_printsub()
575 (void) snprintf(lbuf, AUTH_LBUF_BUFSIZ, " %d", data[i]); in kerberos5_printsub()
576 (void) strncpy((char *)buf, lbuf, buflen); in kerberos5_printsub()
H A Dauth.c471 uchar_t lbuf[AUTH_LBUF_BUFSIZ]; in auth_gen_printsub() local
481 (void) snprintf((char *)lbuf, AUTH_LBUF_BUFSIZ, " %d", *data); in auth_gen_printsub()
482 for (cp = lbuf; (*cp != '\0') && (buflen > 0); --buflen) in auth_gen_printsub()
/titanic_41/usr/src/lib/libzonecfg/common/
H A Dscratchops.c86 struct stat lbuf, fbuf; in zonecfg_open_scratch() local
102 if (lstat(mapfile, &lbuf) == -1) in zonecfg_open_scratch()
104 if (!S_ISREG(lbuf.st_mode) || lbuf.st_nlink != 1 || in zonecfg_open_scratch()
105 lbuf.st_uid != 0) { in zonecfg_open_scratch()
114 if (lbuf.st_ino != fbuf.st_ino || lbuf.st_dev != fbuf.st_dev) { in zonecfg_open_scratch()
/titanic_41/usr/src/cmd/ls/
H A Dls.c184 struct lbuf { struct
236 static struct lbuf *nxtlbf; /* ptr to next lbuf to be assigned */
237 static struct lbuf **flist; /* ptr to list of lbuf pointers */
238 static struct lbuf *gstat(char *, int, struct ditem *);
242 static void pentry(struct lbuf *);
249 static void pem(struct lbuf **, struct lbuf **, int);
254 static int compar(struct lbuf **pp1, struct lbuf **pp2);
258 static void record_ancestry(char *, struct stat *, struct lbuf *,
365 static int get_sysxattr(char *, struct lbuf *);
366 static void set_sysattrb_display(char *, boolean_t, struct lbuf *);
[all …]
/titanic_41/usr/src/cmd/vi/misc/
H A Dctags.c138 static char lbuf[LINE_MAX]; variable
156 static char *dbp = lbuf;
464 lbuf[50] = 0;
465 (void) strcat(lbuf, "$");
466 lbuf[50] = 0;
468 np->pat = savestr(lbuf);
905 (void) strcpy(lbuf, line); in Y_entries()
906 lbuf[strlen(lbuf) - 1] = '\0'; in Y_entries()
957 (void) fgets(lbuf, sizeof (lbuf), inf);
959 cp = strrchr(lbuf, '\n');
[all …]
/titanic_41/usr/src/lib/udapl/libdat/include/dat/
H A Ddat_redirection.h205 #define DAT_EP_POST_SEND(ep, size, lbuf, cookie, flags) \ argument
209 (lbuf),\
213 #define DAT_EP_POST_RECV(ep, size, lbuf, cookie, flags) \ argument
217 (lbuf),\
221 #define DAT_EP_POST_RDMA_READ(ep, size, lbuf, cookie, rbuf, flags) \ argument
225 (lbuf),\
230 #define DAT_EP_POST_RDMA_WRITE(ep, size, lbuf, cookie, rbuf, flags) \ argument
234 (lbuf),\
276 #define DAT_LMR_SYNC_RDMA_READ(ia, lbuf, size) \ argument
279 (lbuf), \
[all …]
/titanic_41/usr/src/cmd/grep/
H A Dgrep.c299 char *lbuf, *p; in execute() local
404 for (lbuf = linebuf; p < ptrend; ) in execute()
405 *lbuf++ = (char)tolower((int) in execute()
407 *lbuf = '\0'; in execute()
408 lbuf = linebuf; in execute()
413 lbuf = ptr; in execute()
416 if ((step(lbuf, expbuf) ^ vflag) && succeed(file) == 1) in execute()
/titanic_41/usr/src/lib/mpss/common/
H A Dmpss.c73 static char lbuf[MAXLINELEN]; variable
386 while (fgets(lbuf, MAXLINELEN, fp)) { in __mpssmain()
388 if (empty(lbuf)) in __mpssmain()
393 if (strlen(lbuf) >= MAXLINELEN - 1) { in __mpssmain()
405 if (!(tokstack = strrchr(lbuf, CFGDELIMITER))) { in __mpssmain()
417 if (!(tokheap = strrchr(lbuf, CFGDELIMITER))) { in __mpssmain()
428 if (tokarg = strrchr(lbuf, ARGDELIMITER)) { in __mpssmain()
432 tok = lbuf; in __mpssmain()
/titanic_41/usr/src/lib/libwrap/
H A Dfix_options.c47 char lbuf[BUFFER_SIZE], *lp; local
107 lp = lbuf;
112 eval_client(request), lbuf);
/titanic_41/usr/src/cmd/sed/
H A Dcompile.c154 static char lbuf[_POSIX2_LINE_MAX + 1]; /* To save stack */ in compile_stream() local
162 if ((p = cu_fgets(lbuf, sizeof (lbuf), NULL)) == NULL) { in compile_stream()
463 static char lbuf[_POSIX2_LINE_MAX + 1]; in compile_subst() local
518 if (cu_fgets(lbuf, sizeof (lbuf), in compile_subst()
520 p = lbuf; in compile_subst()
540 } while (cu_fgets(p = lbuf, sizeof (lbuf), &more)); in compile_subst()
723 char lbuf[_POSIX2_LINE_MAX + 1]; in compile_text() local
729 while (cu_fgets(lbuf, sizeof (lbuf), NULL)) { in compile_text()
731 p = lbuf; in compile_text()
/titanic_41/usr/src/cmd/bnu/
H A Duuxqt.c828 char lbuf[BUFSIZ]; local
1095 (void) snprintf(lbuf, sizeof (lbuf), "%s!%s XQT DENIED",
1100 (void) snprintf(lbuf, sizeof (lbuf),
1106 logent(incmd, lbuf);
1119 (void) snprintf(lbuf, sizeof (lbuf), "%s!%s XQT", Rmtname, user);
1120 logent(_Cmd, lbuf);
1164 (void) snprintf(lbuf, sizeof (lbuf), "%s - %s", incmd, msgbuf);
1165 logent(lbuf, "COMMAND FAIL");
/titanic_41/usr/src/cmd/tip/
H A Dremcap.c93 char lbuf[BUFSIZ], *cp, *p; in tgetent() local
106 rc2 = getent(lbuf, name, cp, sizeof (lbuf)); in tgetent()
110 p = lbuf; in tgetent()
/titanic_41/usr/src/lib/madv/common/
H A Dmadv.c83 static char lbuf[MAXLINELEN]; variable
509 while (fgets(lbuf, MAXLINELEN, fp)) { in __madvmain()
515 if (strlen(lbuf) >= MAXLINELEN - 1) { in __madvmain()
524 if (empty(lbuf)) in __madvmain()
531 if (!(tokadv = strrchr(lbuf, CFGDELIMITER))) { in __madvmain()
549 if (tokarg = strrchr(lbuf, ARGDELIMITER)) { in __madvmain()
556 tok = lbuf; in __madvmain()
/titanic_41/usr/src/cmd/dladm/
H A Ddladm.c2632 datalink_class_t class, link_fields_buf_t *lbuf) in print_link_topology() argument
2638 lbuf->link_over[0] = '\0'; in print_link_topology()
2639 lbuf->link_bridge[0] = '\0'; in print_link_topology()
2645 status = dladm_bridge_getlink(handle, linkid, lbuf->link_bridge, in print_link_topology()
2646 sizeof (lbuf->link_bridge)); in print_link_topology()
2649 (void) strcpy(lbuf->link_bridge, "?"); in print_link_topology()
2659 (void) strcpy(lbuf->link_over, "?"); in print_link_topology()
2663 NULL, lbuf->link_over, sizeof (lbuf->link_over)) != in print_link_topology()
2665 (void) strcpy(lbuf->link_over, "?"); in print_link_topology()
2674 (void) strcpy(lbuf->link_over, "?"); in print_link_topology()
[all …]
/titanic_41/usr/src/cmd/csh/
H A Dsh.dol.c632 tchar obuf[BUFSIZ], lbuf[BUFSIZ], mbuf[BUFSIZ]; in heredoc() local
655 lbp = lbuf; lcnt = BUFSIZ - 4; in heredoc()
677 if (eq(lbuf, term)) { in heredoc()
688 for (lbp = lbuf; c = *lbp++; ) { in heredoc()
702 Dcp = lbuf; Dvp = Dv + 1; mbp = mbuf; mcnt = BUFSIZ - 4; in heredoc()
/titanic_41/usr/src/lib/libtecla/common/
H A Dhistory.c186 char *lbuf; /* The array in which _glh_lookup_history() returns */ member
279 glh->lbuf = NULL; in _new_GlHistory()
332 glh->lbuf = (char *) malloc(glh->lbuf_dim); in _new_GlHistory()
333 if(!glh->lbuf) { in _new_GlHistory()
379 if(glh->lbuf) in _del_GlHistory()
380 free(glh->lbuf); in _del_GlHistory()
1983 char *lbuf = realloc(glh->lbuf, lbuf_dim); in _glh_lookup_history() local
1984 if(!lbuf) { in _glh_lookup_history()
1989 glh->lbuf = lbuf; in _glh_lookup_history()
1994 _glh_return_line(node->line, glh->lbuf, glh->lbuf_dim); in _glh_lookup_history()
[all …]
/titanic_41/usr/src/cmd/zfs/
H A Dzfs_iter.c272 char lbuf[ZFS_MAXPROPLEN], rbuf[ZFS_MAXPROPLEN]; in zfs_sort() local
304 lvalid = (zfs_prop_get(l, psc->sc_prop, lbuf, in zfs_sort()
305 sizeof (lbuf), NULL, NULL, 0, B_TRUE) == 0); in zfs_sort()
309 lstr = lbuf; in zfs_sort()
/titanic_41/usr/src/cmd/idmap/idmapd/
H A Dserver.c654 char lbuf[30], rbuf[30]; in idmap_list_mappings_1_svc() local
686 (void) snprintf(lbuf, sizeof (lbuf), in idmap_list_mappings_1_svc()
689 lbuf[0] = '\0'; in idmap_list_mappings_1_svc()
706 rbuf, curtime, lbuf); in idmap_list_mappings_1_svc()
806 char lbuf[30], rbuf[30]; in idmap_list_namerules_1_svc() local
835 (void) snprintf(lbuf, sizeof (lbuf), in idmap_list_namerules_1_svc()
838 lbuf[0] = '\0'; in idmap_list_namerules_1_svc()
850 rbuf, expr, lbuf); in idmap_list_namerules_1_svc()

123