/titanic_51/usr/src/cmd/mailx/ |
H A D | quit.c | 66 FILE *ibuf, *obuf, *fbuf, *readstat; in quit() local 173 (obuf = fdopen(fd, "w")) == NULL) { in quit() 180 fclose(obuf); in quit() 186 putc(c, obuf); in quit() 189 fflush(obuf); in quit() 190 if (fferror(obuf)) { in quit() 193 fclose(obuf); in quit() 196 fclose(obuf); in quit() 198 (obuf = fdopen(fd, "r+")) == NULL) { in quit() 207 (obuf in quit() 276 FILE *obuf = 0, *fbuf = 0, *rbuf = 0; writeback() local [all...] |
H A D | collect.c | 56 static int forward(char ms[], FILE *obuf, int f); 58 static int forward(char ms[], FILE *obuf, int f); 59 static FILE *mesedit(FILE *ibuf, FILE *obuf, int c, struct header *hp); 60 static FILE *mespipe(FILE *ibuf, FILE *obuf, char cmd[]); 65 static int tabputs(const char *line, FILE *obuf); 95 FILE *ibuf, *fbuf, *obuf; in collect() local 107 ibuf = obuf = NULL; in collect() 110 (obuf = fdopen(fd, "w")) == NULL) { in collect() 114 newo = obuf; in collect() 118 fclose(obuf); in collect() 835 mesedit(FILE * ibuf,FILE * obuf,int c,struct header * hp) mesedit() argument 996 mespipe(FILE * ibuf,FILE * obuf,char cmd[]) mespipe() argument 1082 forward(char ms[],FILE * obuf,int f) forward() argument 1121 tabputs(const char * line,FILE * obuf) tabputs() argument [all...] |
H A D | cmd1.c | 57 static void print(register struct message *mp, FILE *obuf, int doign); 59 static int topputs(const char *line, FILE *obuf); 444 FILE *obuf; in type1() local 448 obuf = stdout; in type1() 450 if (obuf != stdout) { in type1() 452 npclose(obuf); in type1() 465 obuf = npopen(MORE, "w"); in type1() 466 if (obuf == NULL) { in type1() 468 obuf = stdout; in type1() 470 pipef = obuf; in type1() 519 print(register struct message * mp,FILE * obuf,int doign) print() argument 579 topputs(const char * line,FILE * obuf) topputs() argument [all...] |
H A D | edit.c | 100 FILE *ibuf, *obuf; in edit1() local 136 (obuf = fdopen(fd, "w")) == NULL) { in edit1() 140 if (msend(mp, obuf, 0, fputs) < 0) { in edit1() 142 fclose(obuf); in edit1() 146 fflush(obuf); in edit1() 147 if (fferror(obuf)) { in edit1() 149 fclose(obuf); in edit1() 153 fclose(obuf); in edit1()
|
H A D | send.c | 51 static void statusput(register struct message *mp, register FILE *obuf, int doign, int (*fp)(const char *, FILE *)); 63 * Call (*fp)(line, obuf) to print the line. 68 FILE *obuf, in msend() argument 93 clearerr(obuf); in msend() 115 statusput(mailp, obuf, doign, fp); in msend() 123 (*fp)(field, obuf); in msend() 124 if (ferror(obuf)) in msend() 149 statusput(mailp, obuf, doign, fp); in msend() 152 (*fp)("\n", obuf); in msend() 176 statusput(mailp, obuf, doig in msend() 254 statusput(register struct message * mp,register FILE * obuf,int doign,int (* fp)(const char *,FILE *)) statusput() argument [all...] |
H A D | cmd2.c | 56 static int svputs(const char *line, FILE *obuf); 57 static int wrputs(const char *line, FILE *obuf); 265 FILE *obuf; in savemsglist() local 276 if ((obuf = fopen(file, "a")) == NULL) { in savemsglist() 300 t = msend(mp, obuf, 0, wrputs); in savemsglist() 302 t = msend(mp, obuf, mflag, svputs); in savemsglist() 306 fclose(obuf); in savemsglist() 316 fflush(obuf); in savemsglist() 317 if (fferror(obuf)) in savemsglist() 319 fclose(obuf); in savemsglist() 328 svputs(const char * line,FILE * obuf) svputs() argument 336 wrputs(const char * line,FILE * obuf) wrputs() argument [all...] |
H A D | fio.c | 493 FILE *obuf, *ibuf, *tbuf = 0, *readstat; in edstop() local 535 if ((obuf = fdopen(tmpfd, "w")) == NULL) { in edstop() 545 putc(c, obuf); in edstop() 546 fclose(obuf); in edstop() 556 if ((obuf = fopen(editfile, "r+")) == NULL) { in edstop() 557 if ((obuf = fopen(editfile, "w")) == NULL) { in edstop() 573 if (msend(mp, obuf, 0, fputs) < 0) { in edstop() 576 fclose(obuf); in edstop() 586 putc(c, obuf); in edstop() 589 fflush(obuf); in edstop() [all...] |
/titanic_51/usr/src/cmd/ul/ |
H A D | ul.c | 60 struct CHAR obuf[LINE_MAX]; variable 236 if (obuf[col].c_char) in ul_filter() 237 obuf[col].c_mode |= UNDERL | mode; in ul_filter() 239 obuf[col].c_char = '_'; in ul_filter() 255 if (obuf[col].c_char == L'\0') { in ul_filter() 256 obuf[col].c_char = c; in ul_filter() 257 obuf[col].c_mode = mode; in ul_filter() 260 obuf[++col].c_char = CDUMMY; in ul_filter() 261 } else if (obuf[col].c_char == L'_') { in ul_filter() 262 obuf[co in ul_filter() [all...] |
/titanic_51/usr/src/lib/libsmbfs/smb/ |
H A D | utf_str.c | 95 char *obuf, *optr; in convert_ucs2xx_to_utf8() local 112 obuf = malloc(obsize); in convert_ucs2xx_to_utf8() 113 if (!obuf) in convert_ucs2xx_to_utf8() 115 optr = obuf; in convert_ucs2xx_to_utf8() 121 "iconv(%s) failed"), errno, obuf); in convert_ucs2xx_to_utf8() 125 "iconv(%s) failed"), -1, obuf); in convert_ucs2xx_to_utf8() 132 return (obuf); in convert_ucs2xx_to_utf8() 170 uint16_t *obuf, *optr; in convert_utf8_to_ucs2xx() local 186 obuf = malloc(obsize); in convert_utf8_to_ucs2xx() 187 if (!obuf) in convert_utf8_to_ucs2xx() [all...] |
/titanic_51/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_key.c | 49 char *obuf = NULL; in prom_set_security_key() local 66 obuf = buf; in prom_set_security_key() 72 promplat_bcopy(obuf, buf, buflen); in prom_set_security_key() 104 if (obuf != NULL) in prom_set_security_key() 131 char *obuf = NULL; in prom_get_security_key() local 143 obuf = buf; in prom_get_security_key() 180 if (obuf != NULL) { in prom_get_security_key() 181 promplat_bcopy(buf, obuf, buflen); in prom_get_security_key()
|
H A D | prom_io.c | 100 caddr_t obuf = NULL; in prom_read() local 103 obuf = buf; in prom_read() 127 if (obuf != NULL) { in prom_read() 128 promplat_bcopy(buf, obuf, len); in prom_read() 150 caddr_t obuf = NULL; in prom_write() local 182 obuf = buf; in prom_write() 187 promplat_bcopy(obuf, buf, len); in prom_write() 233 if (obuf != NULL) in prom_write()
|
H A D | prom_2path.c | 52 char *obuf = NULL; in token2path() local 55 obuf = buf; in token2path() 76 if (obuf != NULL) { in token2path() 77 promplat_bcopy(buf, obuf, len); in token2path()
|
/titanic_51/usr/src/lib/libwrap/ |
H A D | percent_m.c | 23 char *percent_m(obuf, ibuf) in percent_m() argument 24 char *obuf; in percent_m() 27 char *bp = obuf; 38 return (obuf);
|
/titanic_51/usr/src/cmd/sendmail/src/ |
H A D | headers.c | 1679 char obuf[MAXLINE]; local 1863 (void) sm_strlcpyn(obuf, sizeof(obuf), 2, 1865 if (!putline(obuf, mci)) 1908 (void) sm_snprintf(obuf, sizeof(obuf), 1911 if (!putline(obuf, mci)) 1946 char obuf[MAXLINE + 256]; /* additional length for h_field */ local 1951 (void) sm_snprintf(obuf, sizeof(obuf), " 2016 char obuf[MAXLINE + 3]; global() local [all...] |
H A D | alias.c | 63 char obuf[MAXNAME + 7]; local 95 (void) sm_strlcpyn(obuf, sizeof(obuf), 2, "owner-", a->q_user); 96 if (aliaslookup(obuf, &status, a->q_host) != NULL) 101 a->q_user, obuf); 102 a->q_user = sm_rpool_strdup_x(e->e_rpool, obuf); 170 strlen(a->q_user) > sizeof(obuf) - 7) 171 (void) sm_strlcpy(obuf, "owner-owner", sizeof(obuf)); 173 (void) sm_strlcpyn(obuf, sizeo [all...] |
/titanic_51/usr/src/cmd/audio/audioconvert/ |
H A D | convert.cc | 676 AudioBuffer* obuf; in do_convert() local 737 if (!(obuf = new AudioBuffer(cvtlen, MGET("Audio Convert Buffer")))) { in do_convert() 745 if ((err = obuf->SetHeader(ihdr)) != AUDIO_SUCCESS) { in do_convert() 750 if (obuf->GetSize() < cvtlen) in do_convert() 751 obuf->SetSize(0.); in do_convert() 752 obuf->SetSize(cvtlen); in do_convert() 756 if (err = ifp->ReadData(obuf->GetAddress(), len, pos)) in do_convert() 758 obuf->SetLength(ihdr.Bytes_to_Time(len)); in do_convert() 765 err = lp->conv->Convert(obuf, lp->hdr); in do_convert() 767 multibuf = (AudioBuffer**)obuf; in do_convert() [all...] |
/titanic_51/usr/src/lib/libast/common/sfio/ |
H A D | sfsetbuf.c | 105 uchar* obuf = NIL(uchar*); local 161 { obuf = f->data; 190 obuf = f->data; 342 if(obuf && size == (size_t)osize && init) 343 { buf = (Void_t*)obuf; 344 obuf = NIL(uchar*); 382 if(obuf && obuf != f->data && osize > 0 && (oflags&SF_MALLOC)) 383 { free((Void_t*)obuf); 384 obuf = NIL(uchar*); 388 _Sfi = f->val = obuf ? osize : 0; [all …]
|
/titanic_51/usr/src/cmd/fs.d/autofs/ |
H A D | mount.c | 75 char obuf[MAX_MNTOPT_STR]; in main() local 143 strcpy(obuf, options); in main() 144 if (*obuf != '\0') in main() 145 strcat(obuf, ","); in main() 146 strcat(obuf, in main() 155 MNTTYPE_AUTOFS, &fni, sizeof (fni), obuf, MAX_MNTOPT_STR); in main()
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfsetbuf.c | 117 uchar* obuf = NIL(uchar*); local 173 { obuf = f->data; 202 obuf = f->data; 364 if(obuf && size == (size_t)osize && init) 365 { buf = (Void_t*)obuf; 366 obuf = NIL(uchar*); 404 if(obuf && obuf != f->data && osize > 0 && (oflags&SF_MALLOC)) 405 { free((Void_t*)obuf); 406 obuf [all...] |
/titanic_51/usr/src/uts/common/syscall/ |
H A D | getdents.c | 80 char *obuf; in getdents32() local 109 obuf = kmem_alloc(bufsize, KM_SLEEP); in getdents32() 129 op = (struct dirent32 *)obuf; in getdents32() 168 ASSERT((char *)op <= (char *)obuf + bufsize); in getdents32() 171 if ((error = copyout(obuf, buf, osize)) < 0) in getdents32() 175 kmem_free(obuf, bufsize); in getdents32()
|
/titanic_51/usr/src/cmd/script/ |
H A D | script.c | 184 char obuf[BUFSIZ]; in dooutput() local 193 cc = read(master, obuf, sizeof (obuf)); in dooutput() 196 (void) write(1, obuf, cc); in dooutput() 197 (void) fwrite(obuf, 1, cc, fscript); in dooutput()
|
/titanic_51/usr/src/cmd/csh/ |
H A D | sh.dol.c | 632 tchar obuf[BUFSIZ], lbuf[BUFSIZ], mbuf[BUFSIZ]; in heredoc() local 650 ocnt = BUFSIZ; obp = obuf; in heredoc() 678 (void) write_(0, obuf, BUFSIZ - ocnt); in heredoc() 691 (void) write_(0, obuf, BUFSIZ); in heredoc() 692 obp = obuf; ocnt = BUFSIZ; in heredoc() 754 (void) write_(0, obuf, BUFSIZ); in heredoc() 755 obp = obuf; ocnt = BUFSIZ; in heredoc() 760 (void) write_(0, obuf, BUFSIZ); in heredoc() 761 obp = obuf; ocnt = BUFSIZ; in heredoc()
|
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/nc/ |
H A D | netcat.c | 740 unsigned char obuf[4]; in atelnet() local 743 obuf[0] = '\0'; in atelnet() 749 obuf[0] = IAC; in atelnet() 750 obuf[1] = 0; in atelnet() 754 obuf[1] = DONT; in atelnet() 756 obuf[1] = WONT; in atelnet() 757 if (obuf[1]) { in atelnet() 759 obuf[2] = *p; in atelnet() 760 obuf[3] = '\0'; in atelnet() 761 if (atomicio(vwrite, nfd, obuf, in atelnet() [all...] |
/titanic_51/usr/src/cmd/krb5/kadmin/server/ |
H A D | ipropd_svc.c | 122 char obuf[256] = {0}; in iprop_get_updates_1() local 171 (void) snprintf(obuf, sizeof (obuf), in iprop_get_updates_1() 177 (void) snprintf(obuf, sizeof (obuf), in iprop_get_updates_1() 185 obuf, client_name, kret); in iprop_get_updates_1() 188 obuf, in iprop_get_updates_1()
|
/titanic_51/usr/src/cmd/getent/ |
H A D | dogetipnodes.c | 43 char obuf[INET6_ADDRSTRLEN]; in puthostent() local 70 res = inet_ntop(af, addr, obuf, sizeof (obuf)); in puthostent()
|