Home
last modified time | relevance | path

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

12345678

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
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_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_solarnet.c83 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()
225 (void) getxdr_string(buff, in interpret_solarnet_fw()
230 "\t%s = %s", buff, op); in interpret_solarnet_fw()
263 "Error message: %s", buff); in interpret_solarnet_fw()
282 (void) getxdr_string(buff, in interpret_solarnet_fw()
[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.c134 char buff[NFS_MAXPATHLEN + 1]; local
238 getxdr_string(buff,
504 static char buff[16]; in sum_nfsfh() local
508 return (buff); in sum_nfsfh()
624 static char buff[4]; local
626 buff[0] = n & 4 ? 'r' : '-';
627 buff[1] = n & 2 ? 'w' : '-';
629 buff[3] = '\0';
630 return (buff);
641 return (buff); in sum_readdirres()
[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_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_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_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_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()
103 char buff[LUA_IDSIZE]; in lexerror() local
104 luaO_chunkid(buff, getstr(ls->source), LUA_IDSIZE); in lexerror()
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()
305 luaZ_resetbuffer(ls->buff); /* prepare error message */ in escerror()
400 luaZ_resetbuffer(ls->buff); in llex()
493 ts = luaX_newstring(ls, luaZ_buffer(ls->buff), in llex()
[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()
77 for (p = buff; *p; p++) { in doref()
82 for (p = buff; *p; p++) { in doref()
125 if (buff[0]) in doref()
134 p = buff; in doref()
156 assert(strlen(buff) < QLEN); in doref()
187 choices(char *buff) in choices() argument
[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()
234 if (fgets(buff, sizeof (buff), fp_zone) == NULL) { in get_tz_countries()
320 if (fgets(buff, sizeof (buff), fp_cc) == NULL) { in get_tz_countries()
451 char buff[1024]; in get_timezones_by_country() local
463 if (fgets(buff, sizeof (buff), fp_zone) == NULL) { in get_timezones_by_country()
944 char buff[512]; in get_system_tz() local
958 while (fgets(buff, sizeof (buff), ifp) != NULL) { in get_system_tz()
961 p = &buff[3]; in get_system_tz()
1087 while (fgets(buff, sizeof (buff), ifp) != NULL) { in set_system_tz()
[all …]
/illumos-gate/usr/src/cmd/backup/lib/
H A Dgetdate.y616 LookupWord(buff) in LookupWord() argument
617 char *buff; in LookupWord()
630 if (strcmp(buff, "am") == 0 || strcmp(buff, "a.m.") == 0) {
634 if (strcmp(buff, "pm") == 0 || strcmp(buff, "p.m.") == 0) {
642 else if (strlen(buff) == 4 && buff[3] == '.') {
644 buff[3] = '\0';
677 buff[i] = '\0';
692 if (buff[1] == '\0' && isalpha((u_char)*buff)) {
797 char buff[20]; in yylex() local
828 if (p < &buff[sizeof (buff) - 1]) in yylex()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/
H A Dgetdate.y739 LookupWord(buff) in LookupWord() argument
740 char *buff; in LookupWord()
766 else if (strlen(buff) == 4 && buff[3] == '.') {
768 buff[3] = '\0';
802 i = strlen(buff) - 1;
803 if (buff[i] == 's') {
804 buff[i] = '\0';
842 char buff[20]; in yylex() local
869 if (p < &buff[sizeof buff - 1]) in yylex()
1073 char buff[128]; local
[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/edit/
H A Dhistory.c382 char buff[SF_BUFSIZE]; in sh_histinit() local
540 c = cp-buff; in hist_trim()
732 char buff[HIST_MARKSZ]; in hist_eof() local
770 register char *buff; in hist_flush() local
846 stakputs(buff); in hist_write()
891 *buff++ = HIST_CMDNO; in hist_marker()
892 *buff++ = 0; in hist_marker()
893 *buff++ = (cmdno>>16); in hist_marker()
894 *buff++ = (cmdno>>8); in hist_marker()
895 *buff++ = cmdno; in hist_marker()
[all …]
/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()
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
344 const char *p = buff, *eol; in dst_hmac_md5_key_from_file_format()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcdos.c53 void *buff; member
113 void *buff;
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);
190 if(!dp->buff)
193 memcpy(dp->buff, cp, count);
259 cp = (char*)dp->buff;
[all …]

12345678