143 |
|
LUENT *lep; |
144 |
|
STREAMOUT *sop; |
145 |
|
char *cp; |
146 |
< |
|
146 |
> |
|
147 |
> |
info[0] = '\0'; |
148 |
|
if (ospec == NULL) { /* use stdout? */ |
149 |
|
if (!noopen & !using_stdout) { |
150 |
|
if (outfmt != 'a') |
151 |
|
SET_FILE_BINARY(stdout); |
152 |
+ |
#ifdef getc_unlocked |
153 |
+ |
flockfile(stdout); /* avoid lock/unlock overhead */ |
154 |
+ |
#endif |
155 |
|
if (header) { |
156 |
|
cp = info; |
157 |
|
if (yres > 0) { |
168 |
|
if (waitflush > 0) |
169 |
|
fflush(stdout); |
170 |
|
stdos.xr = xres; stdos.yr = yres; |
167 |
– |
#ifdef getc_unlocked |
168 |
– |
flockfile(stdout); /* avoid lock/unlock overhead */ |
169 |
– |
#endif |
171 |
|
using_stdout = 1; |
172 |
|
} |
173 |
|
stdos.ofp = stdout; |