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 435 times
- in /usr/src/bin/chflags/chflags.c line
205
- in /usr/src/bin/cmp.c line
249
- in /usr/src/bin/date.c line
77,
84,
105,
123,
263,
290,
360
- in /usr/src/bin/diff/diffreg.c line
73
- in /usr/src/bin/disklabel/disklabel.c line
1118
- in /usr/src/bin/echo.c line
17
- in /usr/src/bin/ls/ls.c line
144,
163,
295,
426,
475,
494
- in /usr/src/bin/mail.c line
177,
345,
494
- in /usr/src/bin/nice.c line
33
- in /usr/src/bin/od.c line
370,
397,
682
- in /usr/src/bin/ps.c line
641,
756,
825-830(2),
869,
978-982(2)
- in /usr/src/bin/rmail.c line
113-115(2)
- in /usr/src/bin/size.c line
70
- 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/hack/crypt.c line
754
- in /usr/src/games/hack/hack.end.c line
445
- in /usr/src/games/hack/hack.pri.c line
18-24(3),
41
- in /usr/src/games/hunt/hunt.c line
71,
109
- in /usr/src/games/phantasia/func1.c line
287
- in /usr/src/games/phantasia/setfiles.c line
89
- in /usr/src/games/rain.c line
128,
134-138(3)
- in /usr/src/games/rogue/message.c line
300
- in /usr/src/games/warp/intrp.c line
245-249(2),
456,
602,
676
- in /usr/src/games/warp/term.c line
147,
672,
781
- in /usr/src/games/warp/util.c line
106
- in /usr/src/lib/libc/gen/err.c line
84,
154,
199
- in /usr/src/lib/libc/net/res_debug.c line
184,
339
- in /usr/src/lib/pcc/code.c line
13
- in /usr/src/lib/pcc/local2.c line
3
- in /usr/src/libexec/popper/pop_msg.c line
73
- in /usr/src/libexec/popper/pop_send.c line
83,
105,
112
- in /usr/src/libexec/popper/pop_updt.c line
141-143(2),
152-164(5)
- in /usr/src/libexec/popper/pop_xmit.c line
63
- in /usr/src/libexec/talkd/announce.c line
163
- in /usr/src/libexec/tcpd/tcpdchk.c line
262-271(4)
- in /usr/src/local/qterm/options.c line
321
- in /usr/src/new/PORT/B/src/bed/bobj.c line
508,
516,
532
- in /usr/src/new/PORT/B/src/bed/comm.c line
278
- in /usr/src/new/PORT/B/src/bed/getc.c line
681
- in /usr/src/new/PORT/B/src/bed/save.c line
48,
72,
175
- in /usr/src/new/PORT/B/src/bed/spos.c line
92
- in /usr/src/new/PORT/B/src/bint/b1nuC.c line
319,
329
- in /usr/src/new/PORT/B/src/bint/b3err.c line
135
- in /usr/src/new/PORT/B/src/bsmall/B1num.c line
239-247(3)
- in /usr/src/new/PORT/perl.1.0.0/arg.c line
704
- in /usr/src/new/PORT/perl.1.0.0/form.c line
263-267(2)
- in /usr/src/new/PORT/perl.1.0.0/perly.c line
48
- in /usr/src/new/PORT/perl.1.0.0/search.c line
691,
704
- in /usr/src/new/PORT/perl.1.0.0/util.c line
42,
68
- in /usr/src/new/PORT/perl.1.0.0/x2p/a2py.c line
844
- in /usr/src/new/PORT/perl.1.0.0/x2p/util.c line
41,
67
- in /usr/src/new/PORT/perl.1.0.10/arg.c line
726
- in /usr/src/new/PORT/perl.1.0.10/form.c line
263-267(2)
- in /usr/src/new/PORT/perl.1.0.10/perly.c line
58,
1512
- in /usr/src/new/PORT/perl.1.0.10/search.c line
694,
707
- in /usr/src/new/PORT/perl.1.0.10/util.c line
45,
71
- in /usr/src/new/PORT/perl.1.0.10/x2p/a2py.c line
851
- in /usr/src/new/PORT/perl.1.0.10/x2p/util.c line
41,
67
- in /usr/src/new/PORT/perl.1.0.16/arg.c line
745
- in /usr/src/new/PORT/perl.1.0.16/form.c line
263-267(2)
- in /usr/src/new/PORT/perl.1.0.16/perly.c line
59,
1513
- in /usr/src/new/PORT/perl.1.0.16/search.c line
694,
707
- in /usr/src/new/PORT/perl.1.0.16/util.c line
45,
71
- in /usr/src/new/PORT/perl.1.0.16/x2p/a2py.c line
851
- in /usr/src/new/PORT/perl.1.0.16/x2p/util.c line
41,
67
- in /usr/src/new/crash/dispnet.c line
357,
396,
418,
478,
788,
797
- in /usr/src/new/jove/recover.c line
508
- in /usr/src/new/kermit5.188/ckucmd.c line
226
- in /usr/src/new/kermit5.188/ckufio.c line
844,
852-853(2)
- in /usr/src/new/kermit5.188/ckwart.c line
380
- in /usr/src/new/nntp/server/common.h line
93
- in /usr/src/new/nntp/server/newnews.c line
212
- in /usr/src/new/nntp/server/spawn.c line
96-98(2)
- in /usr/src/new/nntp/xfer/nntpxfer.c line
327,
379
- in /usr/src/new/nntp/xmit/nntpxmit.c line
932,
1000
- in /usr/src/new/pathalias/arpatxt.c line
319
- in /usr/src/new/pathalias/mapaux.c line
126-128(2),
154-159(2),
229-233(2)
- in /usr/src/new/pathalias/mapit.c line
117-121(2),
590-594(3),
600
- in /usr/src/new/pathalias/printit.c line
290,
334
- in /usr/src/old/shortc/shortc.c line
102
- in /usr/src/sbin/newfs/newfs.c line
237-239(2)
- in /usr/src/sys/autoconfig/do_config.c line
88-89(2),
296
- in /usr/src/sys/autoconfig/main.c line
62-64(3)
- in /usr/src/sys/conf/checksys.c line
82,
95-100(2)
- in /usr/src/ucb/Mail/main.c line
177,
194
- in /usr/src/ucb/Mail/send.c line
175,
201,
504,
511-515(2)
- in /usr/src/ucb/Mail/tty.c line
159,
170
- in /usr/src/ucb/PORT/pascal/px/int.c line
142
- in /usr/src/ucb/PORT/pascal/px/interp.c line
1199
- in /usr/src/ucb/PORT/pascal/px/utilities.c line
76,
97,
108-110(2)
- in /usr/src/ucb/PORT/pascal/utilities/pmerge.c line
94,
130,
149-154(2),
170-171(2),
303
- in /usr/src/ucb/error/errortouch.c line
527,
537-542(2)
- in /usr/src/ucb/ftp/cmds.c line
612,
2160
- in /usr/src/ucb/man/man.c line
126,
221-235(6),
329,
338,
454
- 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/sccs.c line
1224
- in /usr/src/ucb/sendbug/bugfiler.c line
245,
676,
714
- 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
72
- 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/find/code.c line
88
- in /usr/src/usr.bin/fstat/fstat.c line
142,
718
- 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/patch/patch.c line
593-600(3),
611-619(3),
636-641(2),
647-655(3),
670-684(4)
- in /usr/src/usr.bin/patch/pch.c line
87,
1093-1098(2)
- 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
142
- 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
436,
505
- in /usr/src/usr.bin/uucp/anlwrk.c line
74
- 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.lib/libI77/open.c line
130
- 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.sbin/edquota/edquota.c line
136
- in /usr/src/usr.sbin/htable/htable.c line
369,
432
- in /usr/src/usr.sbin/named/tools/nslookup/debug.c line
191,
356,
368
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line
697
- in /usr/src/usr.sbin/named/tools/nslookup/res_debug.c line
185,
285,
297,
351
- in /usr/src/usr.sbin/ntp/ntp.c line
321
- in /usr/src/usr.sbin/sendmail.MX/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.sbin/sendmail.MX/aux/mailstats.c line
48,
55,
61
- in /usr/src/usr.sbin/sendmail.MX/aux/mconnect.c line
81,
129
- in /usr/src/usr.sbin/sendmail.MX/aux/praliases.c line
45
- in /usr/src/usr.sbin/sendmail.MX/src/collect.c line
172-173(2),
247
- in /usr/src/usr.sbin/sendmail.MX/src/savemail.c line
195
- in /usr/src/usr.sbin/sendmail.MX/src/util.c line
535-537(2),
547-548(2)
- in /usr/src/usr.sbin/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.sbin/sendmail/aux/mconnect.c line
144
- in /usr/src/usr.sbin/sendmail/aux/rmail.c line
128-130(2)
- in /usr/src/usr.sbin/sendmail/src/collect.c line
166-167(2),
241
- in /usr/src/usr.sbin/sendmail/src/savemail.c line
189
- in /usr/src/usr.sbin/sendmail/src/util.c line
535-537(2),
547-548(2)
Defined variables
sccsid
defined in line
8;
never used