Home
last modified time | relevance | path

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

12345678

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_mount.c102 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 Dsnoop_display.c147 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 Dsnoop_nfs3.c164 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 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()
118 (void) getxdr_string(buff, CTXTLEN); in interpret_solarnet_fw()
125 (void) getxdr_context(buff, CTXTLEN); in interpret_solarnet_fw()
128 (void) getxdr_context(buff, CTXTLEN); in interpret_solarnet_fw()
129 sscanf(buff, "%*s %*s %s.%*s", op); in interpret_solarnet_fw()
[all …]
H A Dsnoop_nfs.c132 char buff[NFS_MAXPATHLEN + 1]; local
162 getxdr_string(buff, NFS_MAXNAMLEN));
177 getxdr_string(buff, NFS_MAXNAMLEN));
182 getxdr_string(buff, NFS_MAXNAMLEN));
191 getxdr_string(buff, NFS_MAXNAMLEN));
197 getxdr_string(buff, NFS_MAXNAMLEN));
200 getxdr_string(buff, NFS_MAXPATHLEN));
236 getxdr_string(buff,
502 static char buff[16]; in sum_nfsfh() local
505 (void) sprintf(buff, " FH=%04X", fh & 0xFFFF); in sum_nfsfh()
[all …]
H A Dsnoop_icmp.c73 char buff[67627]; /* Router adv. can have 256 routers .... */ in interpret_icmp() local
90 (void) sprintf(buff, "ID: %d Sequence number: %d", in interpret_icmp()
92 pc = buff; in interpret_icmp()
99 (void) sprintf(buff, "Net %s unreachable", in interpret_icmp()
102 pc = buff; in interpret_icmp()
109 (void) sprintf(buff, "Host %s unreachable", in interpret_icmp()
112 pc = buff; in interpret_icmp()
119 (void) sprintf(buff, "Bad protocol %d", in interpret_icmp()
121 pc = buff; in interpret_icmp()
132 (void) sprintf(buff, "TCP port %d" in interpret_icmp()
[all …]
H A Dsnoop_nis.c128 char buff[YPMAXDOMAIN + 1]; in interpret_nisbind() local
150 getxdr_string(buff, YPMAXDOMAIN)); in interpret_nisbind()
154 getxdr_string(buff, YPMAXDOMAIN)); in interpret_nisbind()
521 static char buff [16]; in sum_ypxfrstat() local
541 (void) sprintf(buff, "(%d)", status); in sum_ypxfrstat()
542 return (buff); in sum_ypxfrstat()
552 char buff[16]; in sum_ypstat() local
567 default: (void) sprintf(buff, "(%lu)", status); in sum_ypstat()
568 str = buff; in sum_ypstat()
579 char buff[32]; in detail_ypstat() local
[all …]
H A Dsnoop_nlm.c335 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 Dsnoop_pmap.c279 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 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()
639 (void) strcat(buff, "read,"); in sum_access2()
641 (void) strcat(buff, "lookup,"); in sum_access2()
[all …]
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,
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlzio.h29 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) argument
31 #define luaZ_buffer(buff) ((buff)->buffer) argument
32 #define luaZ_sizebuffer(buff) ((buff)->buffsize) argument
33 #define luaZ_bufflen(buff) ((buff)->n) argument
35 #define luaZ_resetbuffer(buff) ((buff)->n = 0) argument
38 #define luaZ_resizebuffer(L, buff, size) \ argument
39 (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \
40 (buff)->buffsize = size)
42 #define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) argument
45 LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n);
H A Dlzio.c24 const char *buff; in luaZ_fill() local
26 buff = z->reader(L, z->data, &size); in luaZ_fill()
28 if (buff == NULL || size == 0) in luaZ_fill()
31 z->p = buff; in luaZ_fill()
68 char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n) { in luaZ_openspace() argument
69 if (n > buff->buffsize) { in luaZ_openspace()
71 luaZ_resizebuffer(L, buff, n); in luaZ_openspace()
73 return buff->buffer; in luaZ_openspace()
H A Dllex.c51 Mbuffer *b = ls->buff; in save()
95 return luaO_pushfstring(ls->L, LUA_QS, luaZ_buffer(ls->buff)); in txtToken()
103 char buff[LUA_IDSIZE]; in lexerror() local
104 luaO_chunkid(buff, getstr(ls->source), LUA_IDSIZE); in lexerror()
105 msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg); in lexerror()
170 luaZ_resizebuffer(ls->L, ls->buff, LUA_MINBUFFER); /* initialize buffer */ in luaX_setinput()
195 size_t n = luaZ_bufflen(ls->buff); in buffreplace()
196 char *p = luaZ_buffer(ls->buff); in buffreplace()
217 if (!buff2d(ls->buff, &seminfo->r)) { in trydecpoint()
246 if (!buff2d(ls->buff, &seminfo->r)) /* format error? */ in read_numeral()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtint.c88 char *buff; in fmtint() local
100 buff = fmtbuf(k=3); in fmtint()
101 buff[--k] = 0; in fmtint()
102 buff[--k] = '0' + n; in fmtint()
105 buff = fmtbuf(k); in fmtint()
106 buff[--k] = 0; in fmtint()
112 memcpy(buff+k,table+3*m,3); in fmtint()
116 while(buff[k]=='0') in fmtint()
120 buff[--k] = '-'; in fmtint()
121 return(&buff[k]); in fmtint()
/illumos-gate/usr/src/cmd/refer/
H A Drefer4.c22 static char buff[BUFSIZ]; variable
32 fputs(buff, ftemp); in output()
35 strcpy(buff, s); in output()
36 if (strlen(buff) > BUFSIZ) in output()
46 trimnl(buff); in append()
47 for (p = buff; *p; p++) in append()
63 strcat(buff, s); in append()
72 for (p = buff; *p; p++) in append()
80 if (strlen(buff) > BUFSIZ) in append()
88 fputs(buff, ftemp); in flout()
H A Drefer2.c44 char buff[QLEN], dbuff[3*QLEN]; in doref() local
50 buff[0] = dbuff[0] = '\0'; in doref()
63 strcat(query ? dbuff : buff, line); in doref()
64 if (strlen(buff) > QLEN) in doref()
65 err(gettext("query too long (%d)"), strlen(buff)); in doref()
71 if (strcmp(buff, "$LIST$\n") == 0) { in doref()
77 for (p = buff; *p; p++) { in doref()
82 for (p = buff; *p; p++) { in doref()
107 if (buff[0]) { /* do not search if no query */ in doref()
110 corout(buff, temp, "hunt", *sr, TLEN); in doref()
[all …]
/illumos-gate/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c103 char buff[BUFFLEN]; in get_tz_continents() local
119 if (fgets(buff, sizeof (buff), fp) == NULL) { in get_tz_continents()
128 if ((status = skipline(buff)) != 0) { in get_tz_continents()
138 lp = skipwhite(&buff[0]); in get_tz_continents()
209 char buff[BUFFLEN], ccbuf[_CCBUFLEN], *ptr; in get_tz_countries() local
234 if (fgets(buff, sizeof (buff), fp_zone) == NULL) { in get_tz_countries()
243 if ((status = skipline(buff)) != 0) { in get_tz_countries()
259 lp_cc = skipwhite(&buff[0]); in get_tz_countries()
320 if (fgets(buff, sizeof (buff), fp_cc) == NULL) { in get_tz_countries()
329 if ((status = skipline(buff)) != 0) { in get_tz_countries()
[all …]
/illumos-gate/usr/src/cmd/backup/lib/
H A Dgetdate.y614 LookupWord(buff) in LookupWord() argument
615 char *buff; in LookupWord()
624 for (p = buff; *p; p++)
628 if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) {
632 if (strcmp(buff, "pm") == 0 || strcmp(buff, "p.m.") == 0) {
638 if (strlen(buff) == 3)
640 else if (strlen(buff) == 4 && buff[3] == '.') {
642 buff[3] = '\0';
649 if (strncmp(buff, tp->name, 3) == 0) {
654 else if (strcmp(buff, tp->name) == 0) {
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/
H A Dgetdate.y737 LookupWord(buff) in LookupWord() argument
738 char *buff; in LookupWord()
747 for (p = buff; *p; p++)
751 if (strcmp(buff, gettext("am")) == 0 || strcmp(buff, gettext("a.m.")) == 0) {
755 if (strcmp(buff, gettext("pm")) == 0 ||
756 strcmp(buff, gettext("p.m.")) == 0) {
762 if (strlen(buff) == 3)
764 else if (strlen(buff) == 4 && buff[3] == '.') {
766 buff[3] = '\0';
773 if (strncmp(buff, GETTEXT(tp->name), 3) == 0) {
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dhistory.c382 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
528 if(!(buff=(char*)sfreserve(hist_old->histfp,SF_UNBOUND,0))) in hist_trim()
530 *(endbuff=(cp=buff)+sfvalue(hist_old->histfp)) = 0; in hist_trim()
540 c = cp-buff; in hist_trim()
542 sfwrite(hist_new->histfp,buff,c); in hist_trim()
562 unsigned char *buff, marker[4]; in hist_nearend() local
567 while(cp=buff=(unsigned char*)sfreserve(iop,SF_UNBOUND,SF_LOCKR)) in hist_nearend()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Drevlib.c40 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()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dfcin.c42 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()
161 unsigned char buff[2*MB_LEN_MAX]; member
192 memcpy(extra.buff, _Fcin.fcptr, n); in _fcmbget()
196 if((extra.buff[i] = fcgetc(c))==0) in _fcmbget()
200 extra.next = extra.buff; in _fcmbget()
/illumos-gate/usr/src/lib/libresolv2/common/dst/
H A Dhmac_link.c278 dst_hmac_md5_key_to_file_format(const DST_KEY *dkey, char *buff, in dst_hmac_md5_key_to_file_format() argument
291 if (buff == NULL || in dst_hmac_md5_key_to_file_format()
296 memset(buff, 0, buff_len); /*%< just in case */ in dst_hmac_md5_key_to_file_format()
298 sprintf(buff, key_file_fmt_str, KEY_FILE_FORMAT, KEY_HMAC_MD5, "HMAC"); in dst_hmac_md5_key_to_file_format()
300 bp = buff + strlen(buff); in dst_hmac_md5_key_to_file_format()
310 if (buff_len - (bp - buff) < 6) in dst_hmac_md5_key_to_file_format()
315 len = b64_ntop(key, key_len, bp, buff_len - (bp - buff)); in dst_hmac_md5_key_to_file_format()
319 if (buff_len - (bp - buff) < 2) in dst_hmac_md5_key_to_file_format()
324 return (bp - buff); in dst_hmac_md5_key_to_file_format()
341 dst_hmac_md5_key_from_file_format(DST_KEY *dkey, const char *buff, in dst_hmac_md5_key_from_file_format() argument
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcdos.c53 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 …]

12345678