Home
last modified time | relevance | path

Searched refs:cbuf (Results 1 – 25 of 78) sorted by relevance

1234

/titanic_41/usr/src/lib/libc/port/gen/
H A Dctime.c109 __posix_asctime_r(const struct tm *t, char *cbuf) in __posix_asctime_r() argument
119 cp = cbuf; in __posix_asctime_r()
123 cp = cbuf; in __posix_asctime_r()
145 return (cbuf); in __posix_asctime_r()
153 asctime_r(const struct tm *t, char *cbuf, int buflen) in asctime_r() argument
159 return (__posix_asctime_r(t, cbuf)); in asctime_r()
165 char *cbuf = tsdalloc(_T_CTIME, CBUFSIZ, NULL); in ctime() local
168 if (cbuf == NULL) in ctime()
173 return (__posix_asctime_r(p, cbuf)); in ctime()
179 char *cbuf = tsdalloc(_T_CTIME, CBUFSIZ, NULL); in asctime() local
[all …]
H A Dgetopt.c62 char cbuf[2]; \
63 cbuf[0] = c; \
64 cbuf[1] = '\0'; \
66 (i ? argv[i]+2 : cbuf)); \
/titanic_41/usr/src/cmd/oawk/
H A Dawk.lx.l53 #define CADD { cbuf[clen++]=yytext[0]; if (clen>=CBUFLEN-1) { yyerror(\
54 "string too long", cbuf); BEGIN A; } }
56 wchar_t cbuf[CBUFLEN]; variable
188 <str>\" { wchar_t *s; BEGIN A; cbuf[clen]=0; s = tostring(cbuf);
189 cbuf[clen] = ' '; cbuf[++clen] = 0;
190 yylval = (int)setsymtab(cbuf, s, 0.0, CON|STR, symtab);
193 <str>"\\\"" { cbuf[clen++]='"'; }
194 <str>"\\"n { cbuf[clen++]='\n'; }
195 <chc>"\\"n { cbuf[clen++]='\n'; }
196 <str>"\\"t { cbuf[clen++]='\t'; }
[all …]
/titanic_41/usr/src/cmd/tip/aculib/
H A Dbiz22.c36 char cbuf[40]; in biz_dialer() local
48 (void) strcpy(cbuf, "\02.\r"); in biz_dialer()
49 cbuf[1] = *mod; in biz_dialer()
50 if (cmd(cbuf)) { in biz_dialer()
54 (void) strcpy(cbuf, "\02D"); in biz_dialer()
55 (void) strlcat(cbuf, num, sizeof (cbuf)); in biz_dialer()
56 (void) strlcat(cbuf, "\r", sizeof (cbuf)); in biz_dialer()
57 (void) write(FD, cbuf, strlen(cbuf)); in biz_dialer()
/titanic_41/usr/src/cmd/awk/
H A Dawk.lx.l73 #define CADD cbuf[clen++] = yytext[0]; \
75 ERROR "string/reg expr %.10s... too long", cbuf SYNTAX; \
79 static uchar cbuf[CBUFLEN]; variable
218 <reg>\\. { cbuf[clen++] = '\\'; cbuf[clen++] = yytext[1]; }
219 <reg>\n { ERROR "newline in regular expression %.10s...", cbuf SYNTAX; lineno++; BEGIN A; }
221 cbuf[clen] = 0;
222 yylval.s = tostring(cbuf);
228 cbuf[clen] = 0; s = tostring(cbuf);
229 cbuf[clen] = ' '; cbuf[++clen] = 0;
230 yylval.cp = setsymtab(cbuf, s, 0.0, CON|STR, symtab);
[all …]
H A Dtran.c458 uchar *cbuf, *ret; in qstring() local
462 init_buf(&cbuf, &cbufsz, LINE_INCR); in qstring()
466 ERROR "newline in string %.10s...", cbuf SYNTAX; in qstring()
468 expand_buf(&cbuf, &cbufsz, cnt); in qstring()
469 cbuf[cnt++] = c; in qstring()
471 expand_buf(&cbuf, &cbufsz, cnt); in qstring()
473 case '\\': cbuf[cnt++] = '\\'; break; in qstring()
474 case 'n': cbuf[cnt++] = '\n'; break; in qstring()
475 case 't': cbuf[cnt++] = '\t'; break; in qstring()
476 case 'b': cbuf[cnt++] = '\b'; break; in qstring()
[all …]
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dddt_zap.c61 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_lookup() local
71 ASSERT(csize <= sizeof (cbuf)); in ddt_zap_lookup()
74 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_lookup()
78 ddt_decompress(cbuf, dde->dde_phys, csize, sizeof (dde->dde_phys)); in ddt_zap_lookup()
93 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_update() local
96 csize = ddt_compress(dde->dde_phys, cbuf, in ddt_zap_update()
97 sizeof (dde->dde_phys), sizeof (cbuf)); in ddt_zap_update()
100 DDT_KEY_WORDS, 1, csize, cbuf, tx)); in ddt_zap_update()
119 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_walk() local
123 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_walk()
[all …]
/titanic_41/usr/src/cmd/mdb/common/libstand/
H A Dctime.c157 __posix_asctime_r(const struct tm *t, char *cbuf) in __posix_asctime_r() argument
169 cp = cbuf; in __posix_asctime_r()
173 cp = cbuf; in __posix_asctime_r()
197 return (cbuf); in __posix_asctime_r()
205 asctime_r(const struct tm *t, char *cbuf, int buflen) in asctime_r() argument
211 return (__posix_asctime_r(t, cbuf)); in asctime_r()
224 static char cbuf[CBUFSIZ]; in asctime() local
226 return (asctime_r(t, cbuf, CBUFSIZ)); in asctime()
/titanic_41/usr/src/lib/libxcurses/src/libc/stdio/
H A Dvfscanf.c543 char cbuf[CBUFSIZ]; /* char buffer for number */ in getnum() local
553 width = sizeof cbuf; in getnum()
579 s = cbuf; in getnum()
580 while (w < width && w < sizeof cbuf) { in getnum()
604 ret = strtol(cbuf, (char **)0, 10); in getnum()
609 s = cbuf; in getnum()
610 while (w < width && w < sizeof cbuf) { in getnum()
632 ret = strtol(cbuf, (char **)0, 8); in getnum()
637 s = cbuf; in getnum()
638 while (w < width && w < sizeof cbuf) { in getnum()
[all …]
/titanic_41/usr/src/lib/efcode/engine/
H A Denv.c397 char *cbuf; in fmt_args() local
435 cbuf = MALLOC(cbsize); in fmt_args()
437 if (snprintf(cbuf, cbsize, snf, *arg) < 0) in fmt_args()
440 while ((cbuf[ndigits] != NULL) && in fmt_args()
446 cbuf[cw] = 0; in fmt_args()
452 *arg = strtol(cbuf, in fmt_args()
455 free(cbuf); in fmt_args()
466 cbuf = MALLOC(cbsize); in fmt_args()
471 if (snprintf(cbuf, cbsize, "%p", *llarg) < 0) in fmt_args()
477 if (snprintf(cbuf, cbsize, "%lx", *llarg) < 0) in fmt_args()
[all …]
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dasctime.c19 static char cbuf[26]; variable
29 cp = cbuf; in asctime()
32 cp = cbuf; in asctime()
49 return (cbuf); in asctime()
/titanic_41/usr/src/uts/common/io/lvm/raid/
H A Draid.c624 md_raidcbuf_t *cbuf; in raid_cancel_pwslot() local
649 for (cbuf = cs->cs_buflist; cbuf; cbuf = cbuf->cbuf_next) { in raid_cancel_pwslot()
650 if (cbuf->cbuf_pwslot == -1) in raid_cancel_pwslot()
652 col = &un->un_column_ic[cbuf->cbuf_column]; in raid_cancel_pwslot()
654 sb = &pw->pw_sb[cbuf->cbuf_pwslot]; in raid_cancel_pwslot()
673 md_raidcbuf_t *cbuf; in raid_free_pwinvalidate() local
681 cbuf = cs->cs_pw_inval_list; in raid_free_pwinvalidate()
682 ASSERT(cbuf); in raid_free_pwinvalidate()
684 while (cbuf) { in raid_free_pwinvalidate()
685 pw = un->un_column_ic[cbuf->cbuf_column].un_pw_reserve; in raid_free_pwinvalidate()
[all …]
/titanic_41/usr/src/lib/libcurses/screen/
H A Dwinwstr.c48 char *cp, cbuf[CSMAX+1]; in winwstr() local
58 cp = cbuf; in winwstr()
71 if (_curs_mbtowc(&wc, cbuf, CSMAX) <= 0) in winwstr()
H A Dwinnwstr.c52 char cbuf[CSMAX+1]; in winnwstr() local
66 cp = (wchar_t *)cbuf; in winnwstr()
77 if (_curs_mbtowc(&wc, cbuf, CSMAX) <= 0) in winnwstr()
/titanic_41/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_syslog.c37 char cbuf[CBUFSIZ]; in smb_svc_log() local
51 ctime_r(&ts, cbuf, sizeof (cbuf))); in smb_svc_log()
/titanic_41/usr/src/stand/lib/sa/
H A Dtime.c172 static char cbuf[CBUFSIZ]; in asctime() local
174 cp = cbuf; in asctime()
177 cp = cbuf; in asctime()
204 return (cbuf); in asctime()
/titanic_41/usr/src/cmd/streams/log/
H A Dstrace.c178 char cbuf[CTLSIZE]; in main() local
182 struct log_ctl *lp = (struct log_ctl *)cbuf; in main()
189 ctl.buf = cbuf; in main()
231 lp = (struct log_ctl *)cbuf; in main()
/titanic_41/usr/src/cmd/mail/
H A Dgendeliv.c38 char buf[1024], cbuf[256], ybuf[10]; local
176 cbuf[0] = '\0';
179 getcomment(hptr->value, cbuf);
183 thissys, name, cbuf, buf);
192 ((p == (char *)NULL) ? cbuf : ""));
232 fprintf(outfile, "En-Route-To: %s %s\n", name, cbuf);
/titanic_41/usr/src/lib/libslp/javalib/com/sun/slp/
H A DStderrLog.java57 public void write(char[] cbuf, int off, int len) throws IOException { in write() argument
58 buf.append(cbuf, off, len); in write()
H A DSyslog.java67 public void write(char[] cbuf, int off, int len) throws IOException { in write() argument
68 buf.append(cbuf, off, len); in write()
/titanic_41/usr/src/cmd/syseventd/modules/datalink_mod/
H A Ddatalink_mod.c75 struct sigaction cbuf, dfl; in datalink_notify_thread() local
83 (void) sigaction(SIGCHLD, &dfl, &cbuf); in datalink_notify_thread()
94 (void) sigaction(SIGCHLD, &cbuf, NULL); in datalink_notify_thread()
/titanic_41/usr/src/uts/common/syscall/
H A Drw.c75 read(int fdes, void *cbuf, size_t count) in read() argument
103 aiov.iov_base = cbuf; in read()
211 write(int fdes, void *cbuf, size_t count) in write() argument
239 aiov.iov_base = cbuf; in write()
337 pread(int fdes, void *cbuf, size_t count, off_t offset) in pread() argument
414 aiov.iov_base = cbuf; in pread()
477 pwrite(int fdes, void *cbuf, size_t count, off_t offset) in pwrite() argument
568 aiov.iov_base = cbuf; in pwrite()
1322 pread64(int fdes, void *cbuf, size32_t count, uint32_t offset_1, in pread64() argument
1394 aiov.iov_base = cbuf; in pread64()
[all …]
H A Dsysfs.c114 sysfstyp(int index, char *cbuf) in sysfstyp() argument
133 if (copyout(osrc, cbuf, src - osrc)) in sysfstyp()
/titanic_41/usr/src/cmd/refer/
H A Dmkey3.c25 static char cbuf[COMNUM*9]; variable
51 cbp = cbuf; in cominit()
/titanic_41/usr/src/cmd/syseventd/modules/devfsadmd_mod/
H A Ddevfsadmd_mod.c86 struct sigaction cbuf, ibuf, qbuf, ignore, dfl; in system1() local
118 (void) sigaction(SIGCHLD, &dfl, &cbuf); in system1()
124 (void) sigaction(SIGCHLD, &cbuf, NULL); in system1()
151 (void) sigaction(SIGCHLD, &cbuf, NULL); in system1()

1234