Searched refs:obuf (Results 1 - 25 of 90) sorted by relevance

1234

/illumos-gate/usr/src/lib/libwrap/
H A Dpercent_m.c23 char *percent_m(obuf, ibuf)
24 char *obuf;
27 char *bp = obuf;
38 return (obuf);
/illumos-gate/usr/src/cmd/mailx/
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *readstat; local
173 (obuf = fdopen(fd, "w")) == NULL) {
180 fclose(obuf);
186 putc(c, obuf);
189 fflush(obuf);
190 if (fferror(obuf)) {
193 fclose(obuf);
196 fclose(obuf);
198 (obuf = fdopen(fd, "r+")) == NULL) {
207 (obuf
276 FILE *obuf = 0, *fbuf = 0, *rbuf = 0; local
[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; local
107 ibuf = obuf = NULL;
110 (obuf = fdopen(fd, "w")) == NULL) {
114 newo = obuf;
118 fclose(obuf);
835 mesedit(FILE *ibuf, FILE *obuf, int c, struct header *hp) argument
996 mespipe(FILE *ibuf, FILE *obuf, char cmd[]) argument
1082 forward(char ms[], FILE *obuf, int f) argument
1121 tabputs(const char *line, FILE *obuf) argument
[all...]
H A Dedit.c100 FILE *ibuf, *obuf; local
136 (obuf = fdopen(fd, "w")) == NULL) {
140 if (msend(mp, obuf, 0, fputs) < 0) {
142 fclose(obuf);
146 fflush(obuf);
147 if (fferror(obuf)) {
149 fclose(obuf);
153 fclose(obuf);
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; local
448 obuf = stdout;
450 if (obuf != stdout) {
452 npclose(obuf);
465 obuf = npopen(MORE, "w");
466 if (obuf == NULL) {
468 obuf = stdout;
470 pipef = obuf;
519 print(register struct message *mp, FILE *obuf, int doign) argument
579 topputs(const char *line, FILE *obuf) argument
[all...]
H A Dsend.c51 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,
93 clearerr(obuf);
115 statusput(mailp, obuf, doign, fp);
123 (*fp)(field, obuf);
124 if (ferror(obuf))
149 statusput(mailp, obuf, doign, fp);
152 (*fp)("\n", obuf);
176 statusput(mailp, obuf, doig
66 msend( struct message *mailp, FILE *obuf, int flag, int (*fp)(const char *, FILE *)) argument
252 statusput( register struct message *mp, register FILE *obuf, int doign, int (*fp)(const char *, FILE *)) argument
[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; local
276 if ((obuf = fopen(file, "a")) == NULL) {
300 t = msend(mp, obuf, 0, wrputs);
302 t = msend(mp, obuf, mflag, svputs);
306 fclose(obuf);
316 fflush(obuf);
317 if (fferror(obuf))
319 fclose(obuf);
328 svputs(const char *line, FILE *obuf) argument
336 wrputs(const char *line, FILE *obuf) argument
[all...]
H A Dfio.c493 FILE *obuf, *ibuf, *tbuf = 0, *readstat; local
535 if ((obuf = fdopen(tmpfd, "w")) == NULL) {
545 putc(c, obuf);
546 fclose(obuf);
556 if ((obuf = fopen(editfile, "r+")) == NULL) {
557 if ((obuf = fopen(editfile, "w")) == NULL) {
573 if (msend(mp, obuf, 0, fputs) < 0) {
576 fclose(obuf);
586 putc(c, obuf);
589 fflush(obuf);
[all...]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dutf_str.c95 char *obuf, *optr; local
112 obuf = malloc(obsize);
113 if (!obuf)
115 optr = obuf;
121 "iconv(%s) failed"), errno, obuf);
125 "iconv(%s) failed"), -1, obuf);
132 return (obuf);
170 uint16_t *obuf, *optr; local
186 obuf = malloc(obsize);
187 if (!obuf)
[all...]
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_key.c49 char *obuf = NULL; local
66 obuf = buf;
72 promplat_bcopy(obuf, buf, buflen);
104 if (obuf != NULL)
131 char *obuf = NULL; local
143 obuf = buf;
180 if (obuf != NULL) {
181 promplat_bcopy(buf, obuf, buflen);
H A Dprom_2path.c52 char *obuf = NULL; local
55 obuf = buf;
76 if (obuf != NULL) {
77 promplat_bcopy(buf, obuf, len);
H A Dprom_io.c100 caddr_t obuf = NULL; local
103 obuf = buf;
127 if (obuf != NULL) {
128 promplat_bcopy(buf, obuf, len);
150 caddr_t obuf = NULL; local
182 obuf = buf;
187 promplat_bcopy(obuf, buf, len);
233 if (obuf != NULL)
/illumos-gate/usr/src/cmd/ul/
H A Dul.c60 struct CHAR obuf[LINE_MAX]; variable in typeref:struct:CHAR
236 if (obuf[col].c_char)
237 obuf[col].c_mode |= UNDERL | mode;
239 obuf[col].c_char = '_';
255 if (obuf[col].c_char == L'\0') {
256 obuf[col].c_char = c;
257 obuf[col].c_mode = mode;
260 obuf[++col].c_char = CDUMMY;
261 } else if (obuf[col].c_char == L'_') {
262 obuf[co
[all...]
/illumos-gate/usr/src/cmd/vi/misc/
H A Dfold.c57 char obuf[BUFSIZ]; local
60 setbuf(stdout, obuf);
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dmount.c75 char obuf[MAX_MNTOPT_STR]; local
143 strcpy(obuf, options);
144 if (*obuf != '\0')
145 strcat(obuf, ",");
146 strcat(obuf,
155 MNTTYPE_AUTOFS, &fni, sizeof (fni), obuf, MAX_MNTOPT_STR);
/illumos-gate/usr/src/cmd/getent/
H A Ddogetipnodes.c43 char obuf[INET6_ADDRSTRLEN]; local
70 res = inet_ntop(af, addr, obuf, sizeof (obuf));
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc676 AudioBuffer* obuf; local
737 if (!(obuf = new AudioBuffer(cvtlen, MGET("Audio Convert Buffer")))) {
745 if ((err = obuf->SetHeader(ihdr)) != AUDIO_SUCCESS) {
750 if (obuf->GetSize() < cvtlen)
751 obuf->SetSize(0.);
752 obuf->SetSize(cvtlen);
756 if (err = ifp->ReadData(obuf->GetAddress(), len, pos))
758 obuf->SetLength(ihdr.Bytes_to_Time(len));
765 err = lp->conv->Convert(obuf, lp->hdr);
767 multibuf = (AudioBuffer**)obuf;
[all...]
/illumos-gate/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
[all...]
/illumos-gate/usr/src/lib/libmp/common/
H A Dmout.c82 char *obuf; local
101 obuf = malloc(7 * (size_t)xlen);
102 bp = obuf + 7 * xlen - 1;
115 free(obuf);
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_fio.c158 caddr_t obuf = NULL; local
161 obuf = buf;
184 if (obuf != NULL) {
185 promplat_bcopy(buf, obuf, len);
/illumos-gate/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), "
2016 char obuf[MAXLINE + 3]; local
[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, sizeo
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dgetdents.c80 char *obuf; local
109 obuf = kmem_alloc(bufsize, KM_SLEEP);
129 op = (struct dirent32 *)obuf;
168 ASSERT((char *)op <= (char *)obuf + bufsize);
171 if ((error = copyout(obuf, buf, osize)) < 0)
175 kmem_free(obuf, bufsize);
/illumos-gate/usr/src/cmd/iconv/
H A Diconv_main.c184 static char obuf[OBUFSIZ]; local
203 optr = obuf;
219 nw = fwrite(obuf, 1, ocnt, stdout);
225 optr = obuf;
299 optr = obuf;
304 nw = fwrite(obuf, 1, ocnt, stdout);
/illumos-gate/usr/src/cmd/csh/
H A Dsh.dol.c632 tchar obuf[BUFSIZ], lbuf[BUFSIZ], mbuf[BUFSIZ]; local
650 ocnt = BUFSIZ; obp = obuf;
678 (void) write_(0, obuf, BUFSIZ - ocnt);
691 (void) write_(0, obuf, BUFSIZ);
692 obp = obuf; ocnt = BUFSIZ;
754 (void) write_(0, obuf, BUFSIZ);
755 obp = obuf; ocnt = BUFSIZ;
760 (void) write_(0, obuf, BUFSIZ);
761 obp = obuf; ocnt = BUFSIZ;

Completed in 106 milliseconds

1234