Home
last modified time | relevance | path

Searched refs:obuf (Results 1 – 25 of 92) sorted by relevance

1234

/titanic_44/usr/src/cmd/mailx/
H A Dquit.c66 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 = fdopen(fd, "a")) == NULL) { in quit()
[all …]
H A Dcollect.c56 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()
[all …]
H A Dcmd1.c57 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()
[all …]
H A Dedit.c100 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 Dsend.c51 static void statusput(register struct message *mp, register FILE *obuf, int doign, int (*fp)(const…
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, doign, fp); in msend()
186 (*fp)(line, obuf); in msend()
[all …]
H A Dcmd2.c56 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()
[all …]
H A Dfio.c493 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_44/usr/src/cmd/ul/
H A Dul.c60 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[col].c_char = c; in ul_filter()
[all …]
/titanic_44/usr/src/lib/libsmbfs/smb/
H A Dutf_str.c95 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_44/usr/src/psm/promif/ieee1275/common/
H A Dprom_key.c49 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 Dprom_io.c100 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 Dprom_2path.c52 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_44/usr/src/lib/libwrap/
H A Dpercent_m.c23 char *percent_m(obuf, ibuf) in percent_m() argument
24 char *obuf; in percent_m()
27 char *bp = obuf;
38 return (obuf);
/titanic_44/usr/src/cmd/sendmail/src/
H A Dheaders.c1679 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), "%.200s:", h->h_field);
1952 obp = obuf + strlen(obuf);
1964 if (SPACELEFT(obuf, obp) - 1 < (size_t) l)
1965 l = SPACELEFT(obuf, obp) - 1;
[all …]
H A Dalias.c63 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, sizeof(obuf), 2, "owner-", a->q_user);
174 owner = aliaslookup(obuf, &status, a->q_host);
180 owner = obuf;
/titanic_44/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc676 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_44/usr/src/lib/libast/common/sfio/
H A Dsfsetbuf.c105 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_44/usr/src/cmd/fs.d/autofs/
H A Dmount.c75 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_44/usr/src/uts/common/syscall/
H A Dgetdents.c80 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_44/usr/src/cmd/script/
H A Dscript.c184 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_44/usr/src/cmd/csh/
H A Dsh.dol.c632 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_44/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c740 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, 3) != 3) in atelnet()
[all …]
/titanic_44/usr/src/cmd/krb5/kadmin/server/
H A Dipropd_svc.c122 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_44/usr/src/cmd/getent/
H A Ddogetipnodes.c43 char obuf[INET6_ADDRSTRLEN]; in puthostent() local
70 res = inet_ntop(af, addr, obuf, sizeof (obuf)); in puthostent()
/titanic_44/usr/src/uts/common/io/fcoe/
H A Dfcoe.c112 void **ibuf, void **abuf, void **obuf);
114 void *obuf);
563 void **ibuf, void **abuf, void **obuf) in fcoe_copyin_iocdata() argument
569 *obuf = NULL; in fcoe_copyin_iocdata()
602 *obuf = kmem_zalloc((*fcoeio)->fcoeio_olen, KM_SLEEP); in fcoe_copyin_iocdata()
622 fcoe_copyout_iocdata(intptr_t data, int mode, fcoeio_t *fcoeio, void *obuf) in fcoe_copyout_iocdata() argument
625 if (ddi_copyout(obuf, in fcoe_copyout_iocdata()
644 void *obuf = NULL; in fcoe_iocmd() local
648 ret = fcoe_copyin_iocdata(data, mode, &fcoeio, &ibuf, &abuf, &obuf); in fcoe_iocmd()
771 uint64_t *is_target = (uint64_t *)obuf; in fcoe_iocmd()
[all …]

1234