Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 184) sorted by path

12345678

/illumos-gate/usr/src/cmd/backup/lib/
H A Dgetdate.y615 LookupWord(buff) in LookupWord() argument
616 char *buff; in LookupWord()
629 if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) {
633 if (strcmp(buff, "pm") == 0 || strcmp(buff, "p.m.") == 0) {
641 else if (strlen(buff) == 4 && buff[3] == '.') {
643 buff[3] = '\0';
676 buff[i] = '\0';
691 if (buff[1] == '\0' && isalpha((u_char)*buff)) {
796 char buff[20]; in yylex() local
827 if (p < &buff[sizeof (buff) - 1]) in yylex()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dconn.c740 char buff[BUFSIZ]; local
743 while((rval = read(dcf, buff, BUFSIZ)) > 0);
H A Dcu.c411 struct stat buff; in main() local
412 if(fstat(TTYIN, &buff) < 0) { in main()
415 } else if ( (buff.st_mode & S_IFMT) == S_IFCHR && buff.st_rdev == 0 ) { in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_apple.c111 char buff [32]; in interpret_at() local
150 (void) snprintf(buff, sizeof (buff), "(%s)", pname); in interpret_at()
151 pname = buff; in interpret_at()
161 (void) snprintf(buff, sizeof (buff), "(%s)", pname); in interpret_at()
162 pname = buff; in interpret_at()
H A Dsnoop_arp.c189 static char buff[MAXHOSTNAMELEN + 32]; in printip() local
196 (void) snprintf(buff, MAXHOSTNAMELEN, "%s, %s", ap, np); in printip()
197 return (buff); in printip()
H A Dsnoop_bparam.c71 char buff[MAX_PATH_LEN + 1]; local
96 (void) getxdr_string(buff,
99 getxdr_string(buff,
111 (void) getxdr_string(buff,
116 buff, buff2);
119 (void) getxdr_string(buff,
123 getxdr_string(buff,
H A Dsnoop_display.c155 for (p = &buff[8]; p >= buff; p--) { in getflag()
167 return (buff); in getflag()
464 if (buff) in showxdr_string()
465 free(buff); in showxdr_string()
474 return (buff); in showxdr_string()
590 strftime(buff, sizeof (buff), "%d-%h-%y %T.", &my_time); in getxdr_date()
591 p = buff + strlen(buff); in getxdr_date()
594 return (buff); in getxdr_date()
648 strftime(buff, sizeof (buff), "%d-%h-%y %T.", &my_time); in format_time()
649 p = buff + strlen(buff); in format_time()
[all …]
H A Dsnoop_icmp.c88 pc = buff; in interpret_icmp()
98 pc = buff; in interpret_icmp()
108 pc = buff; in interpret_icmp()
117 pc = buff; in interpret_icmp()
218 pc = buff; in interpret_icmp()
224 pc = buff; in interpret_icmp()
254 if (strlcat(buff, ra_buf, sizeof (buff)) >= in interpret_icmp()
256 buff[sizeof (buff) - in interpret_icmp()
360 pc = buff; in interpret_icmp()
546 pc = buff;
[all …]
H A Dsnoop_ip.c86 char buff[24]; in interpret_ip() local
139 (void) strlcpy(buff, inet_ntoa(ip->ip_dst), in interpret_ip()
140 sizeof (buff)); in interpret_ip()
144 buff, in interpret_ip()
H A Dsnoop_ipsec.c109 char *line, *buff; in interpret_ah() local
169 buff = malloc(auth_data_len * 2 + 1); in interpret_ah()
170 if (buff != NULL) { in interpret_ah()
174 sprintf(buff + i * 2, "%02x", auth_data[i]); in interpret_ah()
179 (buff == NULL) ? "<out of memory>" : buff); in interpret_ah()
182 free(buff); in interpret_ah()
H A Dsnoop_mount.c326 return (buff); in sum_mountfh()
353 (void) strlcat(buff, ",", sizeof (buff)); in print_auth()
356 (void) strlcat(buff, "none", sizeof (buff)); in print_auth()
359 (void) strlcat(buff, "unix", sizeof (buff)); in print_auth()
362 (void) strlcat(buff, "short", sizeof (buff)); in print_auth()
365 (void) strlcat(buff, "des", sizeof (buff)); in print_auth()
368 p = buff + strlen(buff); in print_auth()
369 if (p < &buff[sizeof (buff)]) in print_auth()
370 (void) snprintf(p, sizeof (buff) - strlen(buff), in print_auth()
375 return (buff); in print_auth()
[all …]
H A Dsnoop_nfs.c132 char buff[NFS_MAXPATHLEN + 1]; local
236 getxdr_string(buff,
502 static char buff[16]; in sum_nfsfh() local
506 return (buff); in sum_nfsfh()
622 static char buff[4]; local
624 buff[0] = n & 4 ? 'r' : '-';
625 buff[1] = n & 2 ? 'w' : '-';
627 buff[3] = '\0';
628 return (buff);
639 return (buff); in sum_readdirres()
[all …]
H A Dsnoop_nfs3.c736 char buff[64]; in detail_nfsstat3() local
743 status, buff); in detail_nfsstat3()
793 return (buff); in sum_nfsfh3()
823 buff[0] = '\0'; in sum_access()
838 buff[strlen(buff) - 1] = '\0'; in sum_access()
840 return (buff); in sum_access()
1000 buff[3] = '\0';
1001 return (buff);
1060 return (buff); in sum_readdirres()
1073 return (buff); in sum_readdirres()
[all …]
H A Dsnoop_nfs_acl.c198 char buff[2048]; in interpret_nfs_acl2() local
292 char buff[2048]; in interpret_nfs_acl3() local
367 char buff[2048]; in interpret_nfs_acl4() local
442 char buff[64]; in detail_nfsstat4() local
446 status = sum_nfsstat4(buff); in detail_nfsstat4()
449 status, buff); in detail_nfsstat4()
633 static char buff[22]; in sum_access2() local
636 buff[0] = '\0'; in sum_access2()
650 if (buff[0] != '\0') in sum_access2()
651 buff[strlen(buff) - 1] = '\0'; in sum_access2()
[all …]
H A Dsnoop_nis.c128 char buff[YPMAXDOMAIN + 1]; in interpret_nisbind() local
521 static char buff [16]; in sum_ypxfrstat() local
542 return (buff); in sum_ypxfrstat()
552 char buff[16]; in sum_ypstat() local
568 str = buff; in sum_ypstat()
579 char buff[32]; in detail_ypstat() local
582 status = sum_ypstat(buff); in detail_ypstat()
596 return (buff); in sum_ypmaplist()
605 return (buff); in sum_ypmaplist()
632 static char buff[16]; in ypbind_error() local
[all …]
H A Dsnoop_nlm.c343 return (buff);
352 char buff[64]; local
382 char *cp = buff; in sum_lock()
388 cp += strlen(buff); in sum_lock()
394 return (buff); in sum_lock()
678 char *cp = buff; in sum_share()
688 return (buff); in sum_share()
730 char *cp = buff; in sum_notify()
737 return (buff); in sum_notify()
1017 char *cp = buff; in sum_lock4()
[all …]
H A Dsnoop_ntp.c405 static char buff[MAXHOSTNAMELEN + 32]; in show_ref() local
412 (void) strncpy(buff, (char *)&refid, 4); in show_ref()
413 buff[4] = '\0'; in show_ref()
418 (void) sprintf(buff, "%s (%s)", in show_ref()
424 return (buff); in show_ref()
470 static char buff[32]; in show_time() local
473 buff[0] = '\0'; in show_time()
474 return (buff); in show_time()
482 (void) snprintf(buff, sizeof (buff), "%s.%05lu", in show_time()
485 return (buff); in show_time()
H A Dsnoop_pmap.c279 static char buff[16]; in sum_pmaplist() local
283 return (buff); in sum_pmaplist()
294 (void) sprintf(buff, "%d map(s) found", maps); in sum_pmaplist()
295 return (buff); in sum_pmaplist()
615 static char buff[MAXSTRINGLEN + 1]; in sum_rpcblist() local
619 return (buff); in sum_rpcblist()
631 (void) sprintf(buff, "%d map(s) found", maps); in sum_rpcblist()
632 return (buff); in sum_rpcblist()
675 static char buff[MAXSTRINGLEN + 1]; in sum_rpcb_entry_list() local
679 return (buff); in sum_rpcb_entry_list()
[all …]
H A Dsnoop_rquota.c70 char buff[RQ_PATHLEN + 1]; local
85 (void) getxdr_string(buff, RQ_PATHLEN);
90 uid, buff);
H A Dsnoop_sctp.c1069 char buff[32]; in interpret_sctp() local
1123 (void) snprintf(buff, sizeof (buff), "(%s)", pn); in interpret_sctp()
1124 pn = buff; in interpret_sctp()
1133 (void) snprintf(buff, sizeof (buff), "(%s)", pn); in interpret_sctp()
1134 pn = buff; in interpret_sctp()
H A Dsnoop_slp.c1037 static char buff[128]; in convert_ts() local
1039 strcpy(buff, ctime((time_t *)&timestamp)); in convert_ts()
1040 buff[strlen(buff) - 1] = '\0'; in convert_ts()
1041 return (buff); in convert_ts()
H A Dsnoop_smb.c792 char buff[80]; in output_bytes() local
795 (void) strlcpy(buff, " ", sizeof (buff)); in output_bytes()
798 (void) strlcat(buff, word, sizeof (buff)); in output_bytes()
800 show_line(buff); in output_bytes()
801 (void) strlcpy(buff, " ", sizeof (buff)); in output_bytes()
1964 char buff[80]; in interpret_default() local
1993 buff[0] = '\0'; in interpret_default()
1999 (void) strlcat(buff, word, sizeof (buff)); in interpret_default()
2001 show_line(buff); in interpret_default()
2002 strcpy(buff, ""); in interpret_default()
H A Dsnoop_solarnet.c81 char buff[CTXTLEN + 1]; in interpret_solarnet_fw() local
108 getxdr_string(buff, CTXTLEN)); in interpret_solarnet_fw()
111 getxdr_string(buff, CTXTLEN)); in interpret_solarnet_fw()
113 getxdr_string(buff, CTXTLEN); in interpret_solarnet_fw()
114 if (strlen(buff) != 0) { in interpret_solarnet_fw()
115 (void) sprintf(line, ".%s", buff); in interpret_solarnet_fw()
223 (void) getxdr_string(buff, in interpret_solarnet_fw()
228 "\t%s = %s", buff, op); in interpret_solarnet_fw()
261 "Error message: %s", buff); in interpret_solarnet_fw()
280 (void) getxdr_string(buff, in interpret_solarnet_fw()
[all …]
H A Dsnoop_tcp.c81 char buff[32]; in interpret_tcp() local
148 (void) sprintf(buff, "(%s)", pname); in interpret_tcp()
149 pname = buff; in interpret_tcp()
H A Dsnoop_udp.c54 char buff [32]; in interpret_udp() local
90 (void) sprintf(buff, "(%s)", pname); in interpret_udp()
91 pname = buff; in interpret_udp()

12345678