1: /*
2: * Copyright (c) 1984 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: */
6:
7: #if defined(LIBC_SCCS) && !defined(lint)
8: static char sccsid[] = "@(#)fputs.c 5.2 (Berkeley) 3/9/86";
9: #endif LIBC_SCCS and not lint
10:
11: #include <stdio.h>
12:
13: fputs(s, iop)
14: register char *s;
15: register FILE *iop;
16: {
17: register r = 0;
18: register c;
19: int unbuffered;
20: char localbuf[BUFSIZ];
21:
22: unbuffered = iop->_flag & _IONBF;
23: if (unbuffered) {
24: iop->_flag &= ~_IONBF;
25: iop->_ptr = iop->_base = localbuf;
26: iop->_bufsiz = BUFSIZ;
27: }
28:
29: while (c = *s++)
30: r = putc(c, iop);
31:
32: if (unbuffered) {
33: fflush(iop);
34: iop->_flag |= _IONBF;
35: iop->_base = NULL;
36: iop->_bufsiz = NULL;
37: iop->_cnt = 0;
38: }
39:
40: return(r);
41: }
Defined functions
fputs
defined in line
13; used 585 times
- in /usr/src/bin/diff/diffreg.c line
71
- in /usr/src/bin/echo.c line
17
- in /usr/src/bin/mail.c line
196,
361,
511
- in /usr/src/bin/nice.c line
33
- in /usr/src/bin/od.c line
370,
397,
682
- in /usr/src/bin/rmail.c line
117-119(2)
- in /usr/src/etc/htable/htable.c line
367,
430
- in /usr/src/etc/named/tools/ns.lookup/src/debug.c line
175
- in /usr/src/etc/vipw.c line
71
- in /usr/src/games/backgammon/extra.c line
102
- in /usr/src/games/backgammon/move.c line
399,
408-411(2)
- in /usr/src/games/battlestar/getcom.c line
21
- in /usr/src/games/boggle/comp.c line
35
- in /usr/src/games/fortune/strfile.c line
175
- in /usr/src/games/fortune/unstr.c line
64-68(2),
118-122(2)
- in /usr/src/games/hunt/hunt.c line
71,
109
- in /usr/src/games/rain.c line
128,
134-138(3)
- in /usr/src/lib/libc/compat-sys5/getopt.c line
23(2)
- in /usr/src/lib/libc/net/res_debug.c line
178
- in /usr/src/lib/pcc/VMS/filter.c line
7
- in /usr/src/lib/pcc/code.c line
17
- in /usr/src/lib/pcc/local2.c line
12
- in /usr/src/new/B/src/bed/bobj.c line
508,
516,
532
- in /usr/src/new/B/src/bed/comm.c line
278
- in /usr/src/new/B/src/bed/getc.c line
681
- in /usr/src/new/B/src/bed/save.c line
48,
72,
175
- in /usr/src/new/B/src/bed/spos.c line
92
- in /usr/src/new/B/src/bint/b1nuC.c line
319,
329
- in /usr/src/new/B/src/bint/b3err.c line
135
- in /usr/src/new/B/src/bsmall/B1num.c line
239-247(3)
- in /usr/src/new/X/inline/machdep.c line
320
- in /usr/src/new/X/inline/main.c line
107,
261,
273
- in /usr/src/new/X/uwm/uwm.c line
584,
750
- in /usr/src/new/X/xterm/main.c line
355
- in /usr/src/new/bib/src/bib.c line
156-159(2),
166,
194-196(2),
486-494(5),
509-512(2)
- in /usr/src/new/bib/src/bibargs.c line
204,
359
- in /usr/src/new/bib/src/invert.c line
84(2)
- in /usr/src/new/dipress/src/bin/iptotext/iptotext.c line
107,
173,
210,
218,
240-244(2),
252,
262-266(2),
288,
302-307(2)
- in /usr/src/new/emacs/etc/fakemail.c line
321,
386,
399
- in /usr/src/new/emacs/man/texindex.c line
756,
1046,
1070-1080(4),
1106-1113(3),
1129,
1140
- in /usr/src/new/help/help.c line
284-285(2),
764-766(3),
773,
1095,
1102,
1110,
1140,
1400,
1451,
1461
- in /usr/src/new/jove/recover.c line
502
- in /usr/src/new/kermit/ckufio.c line
285,
293-294(2)
- in /usr/src/new/kermit/ckuus2.c line
317
- in /usr/src/new/mh/miscellany/mem/getopt.c line
13(2)
- in /usr/src/new/mh/miscellany/patch/patch.c line
533-540(3),
549-557(3),
574-579(2),
585-593(3),
608-622(4),
650-653(2),
1133
- in /usr/src/new/mh/mts/sendmail/smail.c line
531,
551
- in /usr/src/new/mh/sbr/help.c line
39
- in /usr/src/new/mh/uip/ap.c line
199
- in /usr/src/new/mh/uip/distsbr.c line
71,
174,
198
- in /usr/src/new/mh/uip/dp.c line
148
- in /usr/src/new/mh/uip/forw.c line
603
- in /usr/src/new/mh/uip/inc.c line
551-554(2),
619,
632-635(2),
825
- in /usr/src/new/mh/uip/mshcmds.c line
2638,
2647,
2673
- in /usr/src/new/mh/uip/post.c line
582,
968-972(2),
1006-1010(2)
- in /usr/src/new/mh/uip/rcvdist.c line
242
- in /usr/src/new/mh/uip/replsbr.c line
191-194(3)
- in /usr/src/new/mh/uip/rmail.c line
124-125(2),
180-182(2),
379-380(2),
387,
495,
503,
510,
540
- in /usr/src/new/mh/uip/scansbr.c line
45,
249
- in /usr/src/new/mh/uip/slocal.c line
1105
- in /usr/src/new/mh/uip/spost.c line
378,
674-677(2)
- in /usr/src/new/mh/uip/umhook.c line
307
- in /usr/src/new/mh/zotnet/mf/mmdfI/src/uucp/rmail.c line
160-161(2),
217-219(2),
315,
331,
353,
463
- in /usr/src/new/mh/zotnet/mf/mmuu.c line
175,
391-396(2)
- in /usr/src/new/mh/zotnet/mf/uumm.c line
182,
262,
301-305(2),
382-387(2),
633,
643
- in /usr/src/new/news/src/batch.c line
147
- in /usr/src/new/news/src/berknews.c line
107
- in /usr/src/new/news/src/expire.c line
620,
713,
736
- in /usr/src/new/news/src/inews.c line
665
- in /usr/src/new/news/src/postnews.c line
922,
934,
1126,
1135
- in /usr/src/new/news/src/recmail.c line
68,
83
- in /usr/src/new/news/src/recnews.c line
118,
163,
189,
215
- in /usr/src/new/news/src/rfuncs2.c line
143
- in /usr/src/new/news/src/sendnews.c line
78
- in /usr/src/new/news/src/uurec.c line
108-109(2),
117
- in /usr/src/new/news/src/visual.c line
201
- in /usr/src/new/nntp/xmit/remote.c line
293-295(2)
- in /usr/src/new/patch/patch.c line
547-554(3),
563-571(3),
588-593(2),
599-607(3),
622-636(4),
664-667(2),
1147
- in /usr/src/new/pathalias/mapaux.c line
76-78(2),
94-97(2)
- in /usr/src/new/pathalias/mapit.c line
128-132(2)
- in /usr/src/new/pathalias/printit.c line
155,
209
- in /usr/src/new/rn/art.c line
139,
164,
245,
258,
403,
665,
871
- in /usr/src/new/rn/artsrch.c line
131-135(2),
187
- in /usr/src/new/rn/bits.c line
51,
61,
566
- in /usr/src/new/rn/cheat.c line
65,
83
- in /usr/src/new/rn/init.c line
180-185(2),
250,
257,
276,
282,
306,
321-326(2)
- in /usr/src/new/rn/intrp.c line
267-271(2),
532,
937,
1066
- in /usr/src/new/rn/kfile.c line
63,
128-134(3),
161,
195,
275
- in /usr/src/new/rn/ng.c line
263,
285,
314-318(2),
326,
514,
520,
636,
646,
653,
706,
714,
726,
938
- in /usr/src/new/rn/ngsrch.c line
64
- in /usr/src/new/rn/ngstuff.c line
135,
184,
236,
245,
254,
299,
306
- in /usr/src/new/rn/only.c line
112
- in /usr/src/new/rn/rcln.c line
42
- in /usr/src/new/rn/rcstuff.c line
91,
157,
189,
285-287(2),
298,
329-331(2),
341,
539,
672-677(2),
690-693(2),
701-706(2),
723,
730,
741,
750-755(2),
828,
834,
840,
846
- in /usr/src/new/rn/respond.c line
64,
70,
106-111(2),
179,
197,
228,
260,
266,
283-288(2),
297,
322,
369,
414-418(2)
- in /usr/src/new/rn/rn.c line
72,
125-135(3),
200,
277-281(2),
291-296(2),
444-449(2),
458,
489
- in /usr/src/new/rn/search.c line
497,
509,
561
- in /usr/src/new/rn/sw.c line
301,
375,
429-446(5)
- in /usr/src/new/rn/term.c line
146,
455,
603,
749,
800-804(2),
822-826(2),
861,
994,
1015
- in /usr/src/new/rn/util.c line
91,
111
- in /usr/src/new/spms/src/bin/plog/Plog.c line
257,
263,
337,
379
- in /usr/src/new/spms/src/lib/libslist/src/slprint.c line
63
- in /usr/src/new/spms/src/lib/libslist/src/slsprint.c line
63
- in /usr/src/new/tools/src/jot.c line
266
- in /usr/src/new/tools/src/lam.c line
49-50(2)
- in /usr/src/new/xns/examples/filing/xnftp.c line
643
- in /usr/src/new/xns/examples/print/getopt.c line
14(2)
- in /usr/src/old/berknet/header.c line
51-53(2)
- in /usr/src/old/berknet/mwrite.c line
135
- in /usr/src/old/berknet/prmail.c line
177
- in /usr/src/ucb/Mail/cmd2.c line
241
- in /usr/src/ucb/Mail/fio.c line
66,
125
- in /usr/src/ucb/Mail/send.c line
128
- in /usr/src/ucb/Mail/tty.c line
128,
139
- in /usr/src/ucb/dbx/printsym.c line
604
- in /usr/src/ucb/error/errortouch.c line
527,
537-542(2)
- in /usr/src/ucb/lisp/franz/io.c line
738-741(2),
750,
756,
770-774(2),
784-793(3),
836-838(2),
853,
871-876(2),
912
- in /usr/src/ucb/lisp/franz/lam1.c line
897-899(2)
- in /usr/src/ucb/lisp/franz/lisp.c line
74,
82
- in /usr/src/ucb/lisp/franz/vax/fixmask.c line
32
- in /usr/src/ucb/more/more.c line
173-175(3)
- in /usr/src/ucb/msgs/msgs.c line
337,
467,
593
- in /usr/src/ucb/pascal/px/int.c line
142
- in /usr/src/ucb/pascal/px/interp.c line
1199
- in /usr/src/ucb/pascal/px/utilities.c line
76,
97,
108-110(2)
- in /usr/src/ucb/pascal/utilities/pmerge.c line
94,
130,
149-154(2),
170-171(2),
303
- in /usr/src/ucb/sccs.c line
1222
- in /usr/src/ucb/sendbug/bugfiler.c line
247,
678,
716
- in /usr/src/ucb/sendbug/unixtomh.c line
70,
91,
107-110(2)
- in /usr/src/ucb/ul.c line
486-487(2)
- in /usr/src/ucb/users.c line
75
- in /usr/src/usr.bin/at/at.c line
369,
433-438(3),
487-489(2)
- in /usr/src/usr.bin/at/atrm.c line
315
- in /usr/src/usr.bin/efl/main.c line
609,
642
- in /usr/src/usr.bin/f77/src/fpr/fpr.c line
363
- in /usr/src/usr.bin/find/code.c line
88
- in /usr/src/usr.bin/learn/copy.c line
236
- in /usr/src/usr.bin/learn/list.c line
25
- in /usr/src/usr.bin/refer/addbib.c line
139-144(2),
163
- in /usr/src/usr.bin/refer/annobib.c line
68,
80
- in /usr/src/usr.bin/refer/deliv1.c line
46
- in /usr/src/usr.bin/refer/hunt1.c line
229
- in /usr/src/usr.bin/refer/hunt6.c line
103
- in /usr/src/usr.bin/refer/inv2.c line
33,
39-44(3)
- in /usr/src/usr.bin/refer/lookbib.c line
24-26(2),
68,
87-93(4)
- in /usr/src/usr.bin/refer/mkey2.c line
139
- in /usr/src/usr.bin/refer/refer4.c line
15,
70
- in /usr/src/usr.bin/sort.c line
364,
429,
556-559(4)
- in /usr/src/usr.bin/spell/spellout.c line
45
- in /usr/src/usr.bin/tc.c line
283,
294
- in /usr/src/usr.bin/tk.c line
166,
174
- in /usr/src/usr.bin/uniq.c line
101
- in /usr/src/usr.bin/uucp/acucntrl.c line
432,
501
- in /usr/src/usr.bin/uucp/anlwrk.c line
75
- in /usr/src/usr.bin/uucp/cfgets.c line
58
- in /usr/src/usr.bin/uucp/gnxseq.c line
61,
80
- in /usr/src/usr.bin/uucp/uulog.c line
83
- in /usr/src/usr.bin/uucp/vms/startuucp.c line
112
- in /usr/src/usr.lib/libI77/open.c line
130
- in /usr/src/usr.lib/libpc/CATCHERR.c line
14
- in /usr/src/usr.lib/libpc/HALT.c line
10
- in /usr/src/usr.lib/libpc/PERROR.c line
20
- in /usr/src/usr.lib/libplot/aed/circle.c line
32
- in /usr/src/usr.lib/libplot/aed/close.c line
26
- in /usr/src/usr.lib/libplot/aed/label.c line
32
- in /usr/src/usr.lib/libplot/aed/linemod.c line
29-36(5)
- in /usr/src/usr.lib/libplot/aed/open.c line
69-77(4)
- in /usr/src/usr.lib/libplot/aed/point.c line
30
- in /usr/src/usr.lib/libplot/aed/subr.c line
96
- in /usr/src/usr.lib/lpr/startdaemon.c line
70
- in /usr/src/usr.lib/sendmail/aux/arpa.c line
302-314(12),
341,
348,
359,
381,
397,
441,
467-480(5),
486,
521-524(3),
656-658(3),
677-679(3)
- in /usr/src/usr.lib/sendmail/aux/mconnect.c line
144
- in /usr/src/usr.lib/sendmail/aux/rmail.c line
134-136(2)
- in /usr/src/usr.lib/sendmail/src/collect.c line
166-167(2),
241
- in /usr/src/usr.lib/sendmail/src/savemail.c line
189
- in /usr/src/usr.lib/sendmail/src/util.c line
537-539(2),
549-550(2)
Defined variables
sccsid
defined in line
8;
never used