tty_subs.c (76019) | tty_subs.c (76351) |
---|---|
1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 26 unchanged lines hidden (view full) --- 35 * SUCH DAMAGE. 36 */ 37 38#ifndef lint 39#if 0 40static char sccsid[] = "@(#)tty_subs.c 8.2 (Berkeley) 4/18/94"; 41#endif 42static const char rcsid[] = | 1/*- 2 * Copyright (c) 1992 Keith Muller. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Keith Muller of the University of California, San Diego. 8 * --- 26 unchanged lines hidden (view full) --- 35 * SUCH DAMAGE. 36 */ 37 38#ifndef lint 39#if 0 40static char sccsid[] = "@(#)tty_subs.c 8.2 (Berkeley) 4/18/94"; 41#endif 42static const char rcsid[] = |
43 "$FreeBSD: head/bin/pax/tty_subs.c 76019 2001-04-26 09:22:28Z kris $"; | 43 "$FreeBSD: head/bin/pax/tty_subs.c 76351 2001-05-08 06:19:06Z kris $"; |
44#endif /* not lint */ 45 46#include <sys/types.h> 47#include <sys/stat.h> 48#include <fcntl.h> 49#include <stdio.h> 50#include <unistd.h> 51#include <stdlib.h> --- 132 unchanged lines hidden (view full) --- 184# endif 185 if (set) 186 exit_val = 1; 187 /* 188 * when vflag we better ship out an extra \n to get this message on a 189 * line by itself 190 */ 191 if (vflag && vfpart) { | 44#endif /* not lint */ 45 46#include <sys/types.h> 47#include <sys/stat.h> 48#include <fcntl.h> 49#include <stdio.h> 50#include <unistd.h> 51#include <stdlib.h> --- 132 unchanged lines hidden (view full) --- 184# endif 185 if (set) 186 exit_val = 1; 187 /* 188 * when vflag we better ship out an extra \n to get this message on a 189 * line by itself 190 */ 191 if (vflag && vfpart) { |
192 (void)fflush(listf); |
|
192 (void)fputc('\n', stderr); 193 vfpart = 0; 194 } 195 (void)fprintf(stderr, "%s: ", argv0); 196 (void)vfprintf(stderr, fmt, ap); 197 va_end(ap); 198 (void)fputc('\n', stderr); 199} --- 24 unchanged lines hidden (view full) --- 224# endif 225 if (set) 226 exit_val = 1; 227 /* 228 * when vflag we better ship out an extra \n to get this message on a 229 * line by itself 230 */ 231 if (vflag && vfpart) { | 193 (void)fputc('\n', stderr); 194 vfpart = 0; 195 } 196 (void)fprintf(stderr, "%s: ", argv0); 197 (void)vfprintf(stderr, fmt, ap); 198 va_end(ap); 199 (void)fputc('\n', stderr); 200} --- 24 unchanged lines hidden (view full) --- 225# endif 226 if (set) 227 exit_val = 1; 228 /* 229 * when vflag we better ship out an extra \n to get this message on a 230 * line by itself 231 */ 232 if (vflag && vfpart) { |
233 (void)fflush(listf); |
|
232 (void)fputc('\n', stderr); 233 vfpart = 0; 234 } 235 (void)fprintf(stderr, "%s: ", argv0); 236 (void)vfprintf(stderr, fmt, ap); 237 va_end(ap); 238 239 /* 240 * format and print the errno 241 */ 242 if (errnum > 0) 243 (void)fprintf(stderr, " <%s>", strerror(errnum)); 244 (void)fputc('\n', stderr); 245} | 234 (void)fputc('\n', stderr); 235 vfpart = 0; 236 } 237 (void)fprintf(stderr, "%s: ", argv0); 238 (void)vfprintf(stderr, fmt, ap); 239 va_end(ap); 240 241 /* 242 * format and print the errno 243 */ 244 if (errnum > 0) 245 (void)fprintf(stderr, " <%s>", strerror(errnum)); 246 (void)fputc('\n', stderr); 247} |