/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ipft_td.c | 100 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 D | ipft_ef.c | 77 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,
|
/illumos-gate/usr/src/ucbcmd/from/ |
H A D | from.c | 26 char lbuf[BUFSIZ]; in main() local 82 while (fgets(lbuf, sizeof (lbuf), stdin) != NULL) in main() 83 if (lbuf[0] == '\n' && stashed) { in main() 86 } else if (strncmp(lbuf, "From ", 5) == 0 && in main() 87 (sender == NULL || match(&lbuf[4], sender))) { in main() 88 (void) strcpy(lbuf2, lbuf); in main()
|
/illumos-gate/usr/src/boot/common/ |
H A D | boot.c | 303 char lbuf[128], *cp, *ep, *dev, *fstyp, *options; in getrootmount() local 310 sprintf(lbuf, "%s/etc/fstab", rootdev); in getrootmount() 311 if ((fd = open(lbuf, O_RDONLY)) < 0) in getrootmount() 320 while (fgetstr(lbuf, sizeof (lbuf), fd) >= 0) { in getrootmount() 321 if ((lbuf[0] == 0) || (lbuf[0] == '#')) in getrootmount() 325 for (cp = lbuf; (*cp != 0) && !isspace(*cp); cp++) in getrootmount() 332 dev = strdup(lbuf); in getrootmount() 370 sprintf(lbuf, "%s:%s", fstyp, dev); in getrootmount() 371 setenv("vfs.root.mountfrom", lbuf, 0); in getrootmount()
|
H A D | ls.c | 64 char lbuf[128]; /* one line */ in command_ls() local 132 snprintf(lbuf, sizeof (lbuf), " %c %8d %s\n", in command_ls() 136 snprintf(lbuf, sizeof (lbuf), " %c %s\n", in command_ls() 139 if (pager_output(lbuf)) in command_ls()
|
H A D | module.c | 230 char lbuf[80]; in command_lsmod() local 254 (void) snprintf(lbuf, sizeof (lbuf), " %p: ", in command_lsmod() 256 (void) pager_output(lbuf); in command_lsmod() 258 (void) snprintf(lbuf, sizeof (lbuf), " (%s, 0x%lx)\n", in command_lsmod() 260 if (pager_output(lbuf)) in command_lsmod() 272 if (sizeof (lbuf) < dsize) in command_lsmod() 273 dsize = sizeof (lbuf); in command_lsmod() 274 (void) strlcpy(lbuf, ptov(fp->f_addr), dsize); in command_lsmod() 275 if (pager_output(lbuf)) in command_lsmod() 284 sha1(ptr, fp->f_size, (uint8_t *)lbuf); in command_lsmod() [all …]
|
H A D | misc.c | 180 char lbuf[80]; in hexdump() local 181 #define emit(fmt, args...) {sprintf(lbuf, fmt , ## args); pager_output(lbuf);} in hexdump()
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | ldpart.c | 54 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()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | safechown.c | 26 struct stat lbuf; in safechown() local 42 if (lstat(src, &lbuf)) { in safechown() 48 if (fdbuf.st_ino != lbuf.st_ino || fdbuf.st_dev != lbuf.st_dev || in safechown() 49 fdbuf.st_mode != lbuf.st_mode) { in safechown()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | enc_des.c | 417 char lbuf[ENCR_LBUF_BUFSIZ]; in cfb64_printsub() local 427 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, "%s_IV", type); in cfb64_printsub() 428 cp = lbuf; in cfb64_printsub() 432 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, "%s_IV_OK", type); in cfb64_printsub() 433 cp = lbuf; in cfb64_printsub() 437 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, "%s_IV_BAD", type); in cfb64_printsub() 438 cp = lbuf; in cfb64_printsub() 442 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, " %d (unknown)", in cfb64_printsub() 444 cp = lbuf; in cfb64_printsub() 449 (void) snprintf(lbuf, ENCR_LBUF_BUFSIZ, " %d", data[i]); in cfb64_printsub() [all …]
|
H A D | kerberos5.c | 520 char lbuf[AUTH_LBUF_BUFSIZ]; in kerberos5_printsub() local 566 (void) snprintf(lbuf, AUTH_LBUF_BUFSIZ, in kerberos5_printsub() 569 (void) strncpy((char *)buf, lbuf, buflen); in kerberos5_printsub() 573 (void) snprintf(lbuf, AUTH_LBUF_BUFSIZ, " %d", data[i]); in kerberos5_printsub() 574 (void) strncpy((char *)buf, lbuf, buflen); in kerberos5_printsub()
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 84 struct stat lbuf, fbuf; in zonecfg_open_scratch() local 100 if (lstat(mapfile, &lbuf) == -1) in zonecfg_open_scratch() 102 if (!S_ISREG(lbuf.st_mode) || lbuf.st_nlink != 1 || in zonecfg_open_scratch() 103 lbuf.st_uid != 0) { in zonecfg_open_scratch() 112 if (lbuf.st_ino != fbuf.st_ino || lbuf.st_dev != fbuf.st_dev) { in zonecfg_open_scratch()
|
/illumos-gate/usr/src/cmd/vi/misc/ |
H A D | ctags.c | 141 static char lbuf[LINEBUFSIZ]; variable 153 static char *dbp = lbuf; 438 lbuf[50] = 0; in pfnote() 439 (void) strcat(lbuf, "$"); in pfnote() 440 lbuf[50] = 0; in pfnote() 442 np->pat = savestr(lbuf); in pfnote() 881 (void) strcpy(lbuf, line); 882 lbuf[strlen(lbuf) - 1] = '\0'; 935 (void) fgets(lbuf, sizeof (lbuf), inf); 936 cp = strrchr(lbuf, '\n'); [all …]
|
/illumos-gate/usr/src/cmd/ls/ |
H A D | ls.c | 185 struct lbuf { struct 232 static struct lbuf *nxtlbf; /* ptr to next lbuf to be assigned */ 233 static struct lbuf **flist; /* ptr to list of lbuf pointers */ 234 static struct lbuf *gstat(char *, int, struct ditem *); 240 static void pentry(struct lbuf *); 247 static void pem(struct lbuf **, struct lbuf **, int); 252 static int compar(struct lbuf **pp1, struct lbuf **pp2); 253 static void record_ancestry(char *, struct stat *, struct lbuf *, 360 static int get_sysxattr(char *, struct lbuf *); 361 static void set_sysattrb_display(char *, boolean_t, struct lbuf *); [all …]
|
/illumos-gate/usr/src/lib/udapl/libdat/include/dat/ |
H A D | dat_redirection.h | 205 #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 …]
|
/illumos-gate/usr/src/cmd/head/ |
H A D | head.c | 186 char lbuf[BUFSIZ]; in copyout() local 190 len = fread(lbuf, sizeof (char), sizeof (lbuf) / sizeof (char), in copyout() 199 if (lbuf[i] == '\n') { in copyout() 215 if (fwrite(lbuf, sizeof (char), len, stdout) != len) { in copyout()
|
/illumos-gate/usr/src/lib/mpss/common/ |
H A D | mpss.c | 71 static char lbuf[MAXLINELEN]; variable 384 while (fgets(lbuf, MAXLINELEN, fp)) { in __mpssmain() 386 if (empty(lbuf)) in __mpssmain() 391 if (strlen(lbuf) >= MAXLINELEN - 1) { in __mpssmain() 403 if (!(tokstack = strrchr(lbuf, CFGDELIMITER))) { in __mpssmain() 415 if (!(tokheap = strrchr(lbuf, CFGDELIMITER))) { in __mpssmain() 426 if (tokarg = strrchr(lbuf, ARGDELIMITER)) { in __mpssmain() 430 tok = lbuf; in __mpssmain()
|
/illumos-gate/usr/src/lib/libwrap/ |
H A D | fix_options.c | 45 char lbuf[BUFFER_SIZE], *lp; local 105 lp = lbuf; 110 eval_client(request), lbuf);
|
/illumos-gate/usr/src/cmd/sed/ |
H A D | compile.c | 154 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()
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_iter.c | 289 char lbuf[ZFS_MAXPROPLEN], rbuf[ZFS_MAXPROPLEN]; in zfs_sort() local 322 (void) strlcpy(lbuf, zfs_get_name(l), sizeof (lbuf)); in zfs_sort() 325 lstr = lbuf; in zfs_sort() 328 lvalid = (zfs_prop_get(l, psc->sc_prop, lbuf, in zfs_sort() 329 sizeof (lbuf), NULL, NULL, 0, B_TRUE) == 0); in zfs_sort() 333 lstr = lbuf; in zfs_sort()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uuxqt.c | 826 char lbuf[BUFSIZ]; local 1093 (void) snprintf(lbuf, sizeof (lbuf), "%s!%s XQT DENIED", 1098 (void) snprintf(lbuf, sizeof (lbuf), 1104 logent(incmd, lbuf); 1117 (void) snprintf(lbuf, sizeof (lbuf), "%s!%s XQT", Rmtname, user); 1118 logent(_Cmd, lbuf); 1162 (void) snprintf(lbuf, sizeof (lbuf), "%s - %s", incmd, msgbuf); 1163 logent(lbuf, "COMMAND FAIL");
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | remcap.c | 90 char lbuf[BUFSIZ], *cp, *p; in tgetent() local 103 rc2 = getent(lbuf, name, cp, sizeof (lbuf)); in tgetent() 107 p = lbuf; in tgetent()
|
/illumos-gate/usr/src/lib/madv/common/ |
H A D | madv.c | 81 static char lbuf[MAXLINELEN]; variable 507 while (fgets(lbuf, MAXLINELEN, fp)) { in __madvmain() 513 if (strlen(lbuf) >= MAXLINELEN - 1) { in __madvmain() 522 if (empty(lbuf)) in __madvmain() 529 if (!(tokadv = strrchr(lbuf, CFGDELIMITER))) { in __madvmain() 547 if (tokarg = strrchr(lbuf, ARGDELIMITER)) { in __madvmain() 554 tok = lbuf; in __madvmain()
|
/illumos-gate/usr/src/cmd/dladm/ |
H A D | dladm.c | 2767 datalink_class_t class, link_fields_buf_t *lbuf) in print_link_topology() argument 2773 lbuf->link_over[0] = '\0'; in print_link_topology() 2774 lbuf->link_bridge[0] = '\0'; in print_link_topology() 2780 status = dladm_bridge_getlink(handle, linkid, lbuf->link_bridge, in print_link_topology() 2781 sizeof (lbuf->link_bridge)); in print_link_topology() 2784 (void) strcpy(lbuf->link_bridge, "?"); in print_link_topology() 2794 (void) strcpy(lbuf->link_over, "?"); in print_link_topology() 2798 NULL, lbuf->link_over, sizeof (lbuf->link_over)) != in print_link_topology() 2800 (void) strcpy(lbuf->link_over, "?"); in print_link_topology() 2809 (void) strcpy(lbuf->link_over, "?"); in print_link_topology() [all …]
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.dol.c | 641 tchar obuf[BUFSIZ], lbuf[BUFSIZ], mbuf[BUFSIZ]; in heredoc() local 664 lbp = lbuf; lcnt = BUFSIZ - 4; in heredoc() 686 if (eq(lbuf, term)) { in heredoc() 697 for (lbp = lbuf; c = *lbp++; ) { in heredoc() 711 Dcp = lbuf; Dvp = Dv + 1; mbp = mbuf; mcnt = BUFSIZ - 4; in heredoc()
|