/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_mount.c | 102 char buff[MNTPATHLEN + 1]; local 122 getxdr_string(buff, MNTPATHLEN)); 132 getxdr_string(buff, 322 static char buff[8]; in sum_mountfh() local 325 (void) sprintf(buff, " FH=%04X", fh & 0xFFFF); in sum_mountfh() 326 return (buff); in sum_mountfh() 347 static char buff[64]; in print_auth() local 349 buff[0] = '\0'; in print_auth() 353 (void) strlcat(buff, ",", sizeof (buff)); in print_auth() 356 (void) strlcat(buff, "none", sizeof (buff)); in print_auth() [all …]
|
H A D | snoop_display.c | 147 static char buff[80]; in getflag() local 151 (void) strcpy(buff, ".... .... = "); in getflag() 155 for (p = &buff[8]; p >= buff; p--) { in getflag() 161 (void) strcat(buff, set ? s_true: s_false); in getflag() 167 return (buff); in getflag() 453 static char *buff = NULL; in showxdr_string() local 464 if (buff) in showxdr_string() 465 free(buff); in showxdr_string() 466 if ((buff = (char *)malloc(len)) == NULL) in showxdr_string() 471 getxdr_string(buff, len); in showxdr_string() [all …]
|
H A D | snoop_solarnet.c | 83 char buff[CTXTLEN + 1]; in interpret_solarnet_fw() local 110 getxdr_string(buff, CTXTLEN)); in interpret_solarnet_fw() 113 getxdr_string(buff, CTXTLEN)); in interpret_solarnet_fw() 115 getxdr_string(buff, CTXTLEN); in interpret_solarnet_fw() 116 if (strlen(buff) != 0) { in interpret_solarnet_fw() 117 (void) sprintf(line, ".%s", buff); in interpret_solarnet_fw() 120 (void) getxdr_string(buff, CTXTLEN); in interpret_solarnet_fw() 127 (void) getxdr_context(buff, CTXTLEN); in interpret_solarnet_fw() 130 (void) getxdr_context(buff, CTXTLEN); in interpret_solarnet_fw() 131 sscanf(buff, "%*s %*s %s.%*s", op); in interpret_solarnet_fw() [all …]
|
H A D | snoop_nfs3.c | 164 char buff[NFS_MAXPATHLEN + 1]; /* protocol allows longer */ local 218 fh, getxdr_string(buff, 223 name = getxdr_string(buff, NFS_MAXPATHLEN); 229 name = getxdr_string(buff, NFS_MAXPATHLEN); 251 fh, getxdr_string(buff, 256 getxdr_string(buff, NFS_MAXPATHLEN)); 261 fh, getxdr_string(buff, 266 fh, getxdr_string(buff, 275 fh, getxdr_string(buff, 314 getxdr_string(buff, [all …]
|
H A D | snoop_nfs.c | 134 char buff[NFS_MAXPATHLEN + 1]; local 164 getxdr_string(buff, NFS_MAXNAMLEN)); 179 getxdr_string(buff, NFS_MAXNAMLEN)); 184 getxdr_string(buff, NFS_MAXNAMLEN)); 193 getxdr_string(buff, NFS_MAXNAMLEN)); 199 getxdr_string(buff, NFS_MAXNAMLEN)); 202 getxdr_string(buff, NFS_MAXPATHLEN)); 238 getxdr_string(buff, 504 static char buff[16]; in sum_nfsfh() local 507 (void) sprintf(buff, " FH=%04X", fh & 0xFFFF); in sum_nfsfh() [all …]
|
H A D | snoop_icmp.c | 69 char buff[67627]; /* Router adv. can have 256 routers .... */ in interpret_icmp() local 86 (void) sprintf(buff, "ID: %d Sequence number: %d", in interpret_icmp() 88 pc = buff; in interpret_icmp() 95 (void) sprintf(buff, "Net %s unreachable", in interpret_icmp() 98 pc = buff; in interpret_icmp() 105 (void) sprintf(buff, "Host %s unreachable", in interpret_icmp() 108 pc = buff; in interpret_icmp() 115 (void) sprintf(buff, "Bad protocol %d", in interpret_icmp() 117 pc = buff; in interpret_icmp() 128 (void) sprintf(buff, "TCP port %d" in interpret_icmp() [all …]
|
H A D | snoop_nis.c | 132 char buff[YPMAXDOMAIN + 1]; local 155 getxdr_string(buff, YPMAXDOMAIN)); 159 getxdr_string(buff, YPMAXDOMAIN)); 549 static char buff [16]; local 569 (void) sprintf(buff, "(%d)", status); 570 return (buff); 581 char buff[16]; local 596 default: (void) sprintf(buff, "(%lu)", status); 597 str = buff; 608 char buff[32]; in detail_ypstat() local [all …]
|
H A D | snoop_nlm.c | 335 static char buff[32]; local 342 (void) sprintf(buff, " %s=%04X", handle, sum & 0xFFFF); 343 return (buff); 352 char buff[64]; local 361 (void) strcpy(buff, fmt); 365 (void) showxdr_hex(chunk, buff); 370 for (p = buff; *p != '%'; p++) 381 static char buff[LM_MAXSTRLEN + 1]; in sum_lock() local 382 char *cp = buff; in sum_lock() 386 (void) getxdr_string(buff, LM_MAXSTRLEN); /* Caller */ in sum_lock() [all …]
|
H A D | snoop_pmap.c | 279 static char buff[16]; in sum_pmaplist() local 282 (void) sprintf(buff, "%d+ map(s) found", maps); in sum_pmaplist() 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 618 (void) sprintf(buff, "%d+ map(s) found", maps); in sum_rpcblist() 619 return (buff); in sum_rpcblist() 625 (void) getxdr_string(buff, MAXSTRINGLEN); /* netid */ in sum_rpcblist() 626 (void) getxdr_string(buff, MAXSTRINGLEN); /* uaddr */ in sum_rpcblist() [all …]
|
H A D | snoop_nfs_acl.c | 198 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() 639 (void) strcat(buff, "read,"); in sum_access2() 641 (void) strcat(buff, "lookup,"); in sum_access2() [all …]
|
H A D | snoop_bparam.c | 71 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 D | snoop_apple.c | 113 char buff [32]; in interpret_at() local 152 (void) snprintf(buff, sizeof (buff), "(%s)", pname); in interpret_at() 153 pname = buff; in interpret_at() 163 (void) snprintf(buff, sizeof (buff), "(%s)", pname); in interpret_at() 164 pname = buff; in interpret_at()
|
H A D | snoop_ntp.c | 407 static char buff[MAXHOSTNAMELEN + 32]; in show_ref() local 414 (void) strncpy(buff, (char *)&refid, 4); in show_ref() 415 buff[4] = '\0'; in show_ref() 420 (void) sprintf(buff, "%s (%s)", in show_ref() 426 return (buff); in show_ref() 472 static char buff[32]; in show_time() local 475 buff[0] = '\0'; in show_time() 476 return (buff); in show_time() 484 (void) strlcpy(buff, iso_date_time(net_time.int_part), sizeof (buff)); in show_time() 485 (void) snprintf(buff, sizeof (buff), "%s.%05lu", buff, fracsec); in show_time() [all …]
|
/titanic_50/usr/src/cmd/refer/ |
H A D | refer4.c | 24 static char buff[BUFSIZ]; variable 34 fputs(buff, ftemp); in output() 37 strcpy(buff, s); in output() 38 if (strlen(buff) > BUFSIZ) in output() 48 trimnl(buff); in append() 49 for (p = buff; *p; p++) in append() 65 strcat(buff, s); in append() 74 for (p = buff; *p; p++) in append() 82 if (strlen(buff) > BUFSIZ) in append() 90 fputs(buff, ftemp); in flout()
|
H A D | refer2.c | 46 char buff[QLEN], dbuff[3*QLEN]; in doref() local 52 buff[0] = dbuff[0] = NULL; in doref() 65 strcat(query ? dbuff : buff, line); in doref() 66 if (strlen(buff) > QLEN) in doref() 67 err(gettext("query too long (%d)"), strlen(buff)); in doref() 73 if (strcmp(buff, "$LIST$\n") == 0) { in doref() 79 for (p = buff; *p; p++) { in doref() 84 for (p = buff; *p; p++) { in doref() 109 if (buff[0]) { /* do not search if no query */ in doref() 112 corout(buff, temp, "hunt", *sr, TLEN); in doref() [all …]
|
H A D | hunt3.c | 24 static char buff[BSIZ]; in getq() local 31 p = buff; in getq() 49 if (p > buff + BSIZ) in getq() 52 assert(p < buff + BSIZ); in getq()
|
/titanic_50/usr/src/lib/libzoneinfo/common/ |
H A D | libzone.c | 101 char buff[BUFFLEN]; in get_tz_continents() local 117 if (fgets(buff, sizeof (buff), fp) == NULL) { in get_tz_continents() 126 if ((status = skipline(buff)) != 0) { in get_tz_continents() 136 lp = skipwhite(&buff[0]); in get_tz_continents() 207 char buff[BUFFLEN], ccbuf[_CCBUFLEN], *ptr; in get_tz_countries() local 236 if (fgets(buff, sizeof (buff), fp_zone) == NULL) { in get_tz_countries() 245 if ((status = skipline(buff)) != 0) { in get_tz_countries() 261 lp_cc = skipwhite(&buff[0]); in get_tz_countries() 322 if (fgets(buff, sizeof (buff), fp_cc) == NULL) { in get_tz_countries() 331 if ((status = skipline(buff)) != 0) { in get_tz_countries() [all …]
|
/titanic_50/usr/src/cmd/backup/lib/ |
H A D | getdate.y | 616 LookupWord(buff) in LookupWord() argument 617 char *buff; in LookupWord() 626 for (p = buff; *p; p++) 630 if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) { 634 if (strcmp(buff, "pm") == 0 || strcmp(buff, "p.m.") == 0) { 640 if (strlen(buff) == 3) 642 else if (strlen(buff) == 4 && buff[3] == '.') { 644 buff[3] = '\0'; 651 if (strncmp(buff, tp->name, 3) == 0) { 656 else if (strcmp(buff, tp->name) == 0) { [all …]
|
/titanic_50/usr/src/cmd/krb5/kadmin/cli/ |
H A D | getdate.y | 739 LookupWord(buff) in LookupWord() argument 740 char *buff; in LookupWord() 749 for (p = buff; *p; p++) 753 if (strcmp(buff, gettext("am")) == 0 || strcmp(buff, gettext("a.m.")) == 0) { 757 if (strcmp(buff, gettext("pm")) == 0 || 758 strcmp(buff, gettext("p.m.")) == 0) { 764 if (strlen(buff) == 3) 766 else if (strlen(buff) == 4 && buff[3] == '.') { 768 buff[3] = '\0'; 775 if (strncmp(buff, GETTEXT(tp->name), 3) == 0) { [all …]
|
/titanic_50/usr/src/lib/libcmd/common/ |
H A D | revlib.c | 40 char buff[BUFSIZE]; in rev_line() local 66 if((n=sfread(in, buff, n)) <=0) in rev_line() 68 cp = buff+n; in rev_line() 69 n = *buff; in rev_line() 70 *buff = '\n'; in rev_line() 76 if(cp==buff) in rev_line() 82 if(cp==buff && n!='\n') in rev_line()
|
/titanic_50/usr/src/lib/libshell/common/sh/ |
H A D | fcin.c | 42 char *buff; in fcfopen() local 48 if(!(buff=(char*)sfreserve(f,SF_UNBOUND,SF_LOCKR))) in fcfopen() 59 sfread(f,buff,0); in fcfopen() 61 buff = (char*)sfreserve(f,SF_UNBOUND,SF_LOCKR); in fcfopen() 62 _Fcin.fclast = (_Fcin.fcptr=_Fcin.fcbuff=(unsigned char*)buff)+n; in fcfopen() 155 unsigned char buff[2*MB_LEN_MAX]; member 189 memcpy(extra.buff, _Fcin.fcptr, n); in fcmbstate() 193 if((extra.buff[i] = fcgetc(c))==0) in fcmbstate() 197 extra.next = extra.buff; in fcmbstate()
|
/titanic_50/usr/src/lib/libshell/common/edit/ |
H A D | history.c | 181 char *buff, *cp, *last; in sh_checkaudit() local 382 char buff[SF_BUFSIZE]; in sh_histinit() local 384 …h_isstate(SH_INTERACTIVE) && (hp->auditmask=sh_checkaudit(hp,SHOPT_AUDITFILE, buff, sizeof(buff)))) in sh_histinit() 386 if((fd=sh_open(buff,O_BINARY|O_WRONLY|O_APPEND|O_CREAT,S_IRUSR|S_IWUSR))>=0 && fd < 10) in sh_histinit() 464 char *buff, *endbuff, *tmpname=0; in hist_trim() local 525 if(!(buff=(char*)sfreserve(hist_old->histfp,SF_UNBOUND,0))) in hist_trim() 527 *(endbuff=(cp=buff)+sfvalue(hist_old->histfp)) = 0; in hist_trim() 537 c = cp-buff; in hist_trim() 539 sfwrite(hist_new->histfp,buff,c); in hist_trim() 559 unsigned char *buff, marker[4]; in hist_nearend() local [all …]
|
/titanic_50/usr/src/lib/libresolv2/common/dst/ |
H A D | hmac_link.c | 281 dst_hmac_md5_key_to_file_format(const DST_KEY *dkey, char *buff, in dst_hmac_md5_key_to_file_format() argument 294 if (buff == NULL || in dst_hmac_md5_key_to_file_format() 299 memset(buff, 0, buff_len); /*%< just in case */ in dst_hmac_md5_key_to_file_format() 301 sprintf(buff, key_file_fmt_str, KEY_FILE_FORMAT, KEY_HMAC_MD5, "HMAC"); in dst_hmac_md5_key_to_file_format() 303 bp = buff + strlen(buff); in dst_hmac_md5_key_to_file_format() 313 if (buff_len - (bp - buff) < 6) in dst_hmac_md5_key_to_file_format() 318 len = b64_ntop(key, key_len, bp, buff_len - (bp - buff)); in dst_hmac_md5_key_to_file_format() 322 if (buff_len - (bp - buff) < 2) in dst_hmac_md5_key_to_file_format() 327 return (bp - buff); in dst_hmac_md5_key_to_file_format() 344 dst_hmac_md5_key_from_file_format(DST_KEY *dkey, const char *buff, in dst_hmac_md5_key_from_file_format() argument [all …]
|
/titanic_50/usr/src/lib/libast/common/disc/ |
H A D | sfdcdos.c | 53 void *buff; member 109 static ssize_t dos_read(Sfio_t *iop, void *buff, size_t size, Sfdisc_t* disc) in dos_read() argument 111 static ssize_t dos_read(iop, buff, size, disc) in dos_read() 113 void *buff; 119 register char *cp = (char*)buff, *first, *cpmax; 129 if((n = sfrd(iop,buff,size,disc)) <= 0) 159 dp->skip = cp-1 - (char*)buff; 172 dp->begin += cp - (char*)buff-1; 186 dp->buff = malloc(count); 188 dp->buff = realloc(dp->buff,count); [all …]
|
/titanic_50/usr/src/cmd/avs/dscfg/ |
H A D | dscfg.c | 165 char *buff; in parse_parse_config() local 171 buff = (input_file[0]) ? input_file : DEFAULT_PARSER_LOC; in parse_parse_config() 172 if ((fp = fopen(buff, "r")) == NULL) { in parse_parse_config() 174 gettext("parser config file (%s) not found\n"), buff); in parse_parse_config() 183 while (((buff = fgets(inbuf, (sizeof (inbuf) - 1), fp)) != NULL)) { in parse_parse_config() 184 if (*buff == '#' || *buff == '%') in parse_parse_config() 187 buff[strlen(buff) - 1] = '\0'; in parse_parse_config() 188 rc = cfg_update_parser_config(cfg, buff, CFG_PARSE_CONF); in parse_parse_config() 192 rc, buff); in parse_parse_config() 206 char *buff; in parse_text_config() local [all …]
|