home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.misc
- From: sjg@zen.void.oz.au (Simon J. Gerraty)
- Subject: v29i096: pdksh - Public Domain Korn Shell, v4, Patch05
- Message-ID: <1992May13.145233.22940@sparky.imd.sterling.com>
- X-Md4-Signature: f3b0391fe6dd30da1f34dddff68ed064
- Date: Wed, 13 May 1992 14:52:33 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: sjg@zen.void.oz.au (Simon J. Gerraty)
- Posting-number: Volume 29, Issue 96
- Archive-name: pdksh/patch05
- Environment: UNIX
- Patch-To: pdksh: Volume 25, Issue 47-55
-
- Ok, this should be it for a while. I've built this version on a
- couple of System V machines and it seems ok. I've fixed a
- couple of minor bugs, see ChangeLog files.
-
- Apply this patch by changing directory to the root
- of the source tree and using the command:
-
- patch -p0 < this_file
-
- The following is a complete list of patches to date.
-
- # PD ksh Version 4
- Prereq: 09-Nov-91
- Prereq: 10-Nov-91
- Prereq: 25-Nov-91
- Prereq: 25-Apr-92
- Prereq: 26-Apr-92
- Prereq: 27-Apr-92
- *** PATCHDATES.old Tue May 12 19:19:30 1992
- --- PATCHDATES Tue May 12 19:30:05 1992
- ***************
- *** 5,7 ****
- --- 5,8 ----
- 25-Apr-92
- 26-Apr-92
- 27-Apr-92
- + 12-May-92
- *** ChangeLog.old Sat Apr 25 10:57:37 1992
- --- ChangeLog Sun May 3 18:25:42 1992
- ***************
- *** 1,3 ****
- --- 1,9 ----
- + Sun May 3 17:50:03 1992 Simon J. Gerraty (sjg@zen)
- +
- + * Updated MACHINES.
- + * Placed source under CVS. This should help with processing fixes
- + from the field.
- +
- Sat Apr 25 10:53:20 1992 Simon J. Gerraty (sjg@zen)
-
- * Getting ready for 4.3 release.
- *** MACHINES.old Sat Apr 25 10:42:50 1992
- --- MACHINES Sun May 3 18:25:48 1992
- ***************
- *** 1,4 ****
- ! This shell has been compiled on the following systems:
-
- Notes:
- (1) Built and tested by me (sjg), seems ok :-)
- --- 1,5 ----
- ! This file documents some the machines that pdksh has been build
- ! on and notes that apply.
-
- Notes:
- (1) Built and tested by me (sjg), seems ok :-)
- ***************
- *** 13,27 ****
-
- System, OS Notes Compiler/Flags
- -------------------------- ----- --------------
- ! sun386, SunOS 4.0.2 1,4 gcc-2.1 -D_BSD
- ! sun386, SunOS 4.0.2 1,4 gcc-1.40 -D_BSD
- ! sun4c, SunOS 4.1.1 1,4 gcc-2.1 -ansi -D_BSD -DHAVE_SYS_STDTYPES
- ! sun4c, SunOS 4.1.1 1,4 cc -D_BSD -DHAVE_SYS_STDTYPES
- ! sun3, SunOS 4.0.3 1,4 cc -D_BSD
- ! sun386, SunOS 4.0.2 1,5 cc -DNOSTDHDRS -D_BSD
- ! sun4c, SunOS 4.1.1 1,5 cc -DNOSTDHDRS -D_BSD -DHAVE_SYS_STDTYPES
- ! sun3, SunOS 4.0.3 1,5 cc -DNOSTDHDRS -D_BSD
- ! Bull DPX/2, B.O.S. 2.00.45 1,5 gcc-2.1 -ansi -D_POSIX_SOURCE
- ! Bull XPS-100 2,6
-
-
- --- 14,46 ----
-
- System, OS Notes Compiler/Flags
- -------------------------- ----- --------------
- ! sun386, SunOS 4.0.2 1,4 {cc,gcc} -D_BSD
- ! sun4c, SunOS 4.1.1 1,4 {cc,gcc-2.1} -ansi -D_BSD -DHAVE_SYS_STDTYPES
- ! sun3, SunOS 4.0.3 1,4 {cc,gcc} -D_BSD
- ! sun3, SunOS 4.1.1 1,4 {cc,gcc} -ansi -D_BSD -DHAVE_SYS_STDTYPES
- ! Bull DPX/2, B.O.S. 2.00.45 1,5 {cc,gcc-2.1} -ansi -D_POSIX_SOURCE
- ! Bull XPS-100 1,6 cc -D_SYSV -DUSE_SIGNAL
-
- +
- + NOTES:
- + The table above sumarizes the config used. {cc,gcc} indicates
- + either compiler can be used. If gcc-2.1 rather than gcc is
- + indicated then gcc < 2 may not work. This is at least true of
- + sun4c (sparc) systems.
- +
- + Bull DPX/2:
- +
- + pdksh is not needed on this system. It is simply used as a
- + System V / POSIX test bed. Build without ./std tree. I only
- + tried with gcc-2.1. -D_SYSV must be left out of CFLAGS for POSIX
- + functions such as sigaction() to be used.
- +
- + Bull XPS-100:
- +
- + Be sure to rm std/h/dirent.h std/h/sys/types.h and undef JOBS as
- + the kernel does not support it. This machine has a sigaction()
- + implementation that appears to be faulty. A SIGINT terminates
- + the shell, when using the system's sigaction(). Undefining
- + USE_SIGACT does the trick. sigact.c can now be forced to build
- + by defining USE_SIGNAL, but this is not tested on the XPS.
-
- *** README.old Sat Apr 25 17:59:10 1992
- --- README Tue May 12 19:30:10 1992
- ***************
- *** 1,5 ****
- Public Domain Korn Shell
- ! Version 4.3
-
- PD KSH:
-
- --- 1,5 ----
- Public Domain Korn Shell
- ! Version 4.5
-
- PD KSH:
-
- *** bug-report.old Tue May 12 19:19:30 1992
- --- bug-report Tue May 12 19:30:14 1992
- ***************
- *** 2,8 ****
- Subject: [area]: [synopsis] [replace with actual area and short description]
-
- VERSION:
- ! PD KSH: 4.4 27-Apr-1992
- [Official patches will edit this line to indicate the patch level]
-
- MACHINE and OPERATING SYSTEM:
- --- 2,8 ----
- Subject: [area]: [synopsis] [replace with actual area and short description]
-
- VERSION:
- ! PD KSH: 4.5 12-May-1992
- [Official patches will edit this line to indicate the patch level]
-
- MACHINE and OPERATING SYSTEM:
- ***************
- *** 9,15 ****
- [e.g. Sparc/SunOS 4.1.1, DECstation 3100/Ultrix 4.2, ...]
-
- COMPILER:
- ! [e.g. native cc, native ANSI cc, gcc 1.39, ...]
-
- AREA:
- [Area of the source tree affected,
- --- 9,15 ----
- [e.g. Sparc/SunOS 4.1.1, DECstation 3100/Ultrix 4.2, ...]
-
- COMPILER:
- ! [e.g. native cc, native ANSI cc, gcc 1.40, ...]
-
- AREA:
- [Area of the source tree affected,
- ***************
- *** 24,30 ****
- a fix]
-
- SAMPLE FIX:
- ! [Preferred, but not necessary. Please send context diffs (diff -c)]
-
- [PLEASE make your Subject: line as descriptive as possible.
- Subjects like "pdksh bug" or "bug report" are not helpful!]
- --- 24,31 ----
- a fix]
-
- SAMPLE FIX:
- ! [Preferred, but not necessary. Please send context diffs (diff -c)
- ! name old file first. eg. diff -c file.c.old file.c]
-
- [PLEASE make your Subject: line as descriptive as possible.
- Subjects like "pdksh bug" or "bug report" are not helpful!]
- *** etc/profile.old Tue May 12 19:19:31 1992
- --- etc/profile Sun May 3 18:28:27 1992
- ***************
- *** 12,18 ****
- # /etc/ksh.kshrc
- #
- # RCSid:
- ! # $Id: profile,v 1.2 1992/04/27 07:09:54 sjg Exp $
- # @(#)Copyright (c) 1991 Simon J. Gerraty
- #
- # This file is provided in the hope that it will
- --- 12,18 ----
- # /etc/ksh.kshrc
- #
- # RCSid:
- ! # $Id: profile,v 1.3 1992/05/03 08:28:27 sjg Exp $
- # @(#)Copyright (c) 1991 Simon J. Gerraty
- #
- # This file is provided in the hope that it will
- *** ksh.1.old Sat Apr 25 18:15:59 1992
- --- ksh.1 Sat May 2 23:26:52 1992
- ***************
- *** 1,4 ****
- ! .\" $Id$
- .nr OJ 1 \" Job Control
- .nr OE 1 \" Command Editing
- .nr OB 1 \" BSD enhanced ulimit options
- --- 1,4 ----
- ! .\" $Id: ksh.1,v 1.1 1992/05/02 13:26:52 sjg Exp $
- .nr OJ 1 \" Job Control
- .nr OE 1 \" Command Editing
- .nr OB 1 \" BSD enhanced ulimit options
- *** sh/ChangeLog.old Sat Apr 25 00:24:10 1992
- --- sh/ChangeLog Tue May 12 19:30:27 1992
- ***************
- *** 1,3 ****
- --- 1,13 ----
- + Tue May 12 19:23:17 1992 Simon J. Gerraty (sjg@zen)
- +
- + * Fix bug in init_editmode() if EMACS and VI are not both defined.
- +
- + Sun May 3 17:47:54 1992 Simon J. Gerraty (sjg@zen)
- +
- + * sigact.c: allow force build if USE_* defined.
- + * main.c: call init_editmode() _after_ processing /etc/profile.
- + * jobs.c: ensure SA_RESTART is defined.
- +
- Sat Apr 25 00:20:51 1992 Simon J. Gerraty (sjg@zen)
-
- * Implemented a simple history file.
- *** sh/config.h.old Sat Apr 25 18:34:51 1992
- --- sh/config.h Sun May 3 18:28:59 1992
- ***************
- *** 1,7 ****
- /*
- * Configuration file for the PD ksh
- *
- ! * RCSid: $Id: config.h,v 1.2 1992/04/25 08:33:28 sjg Exp $
- */
-
- #ifndef _CONFIG_H
- --- 1,7 ----
- /*
- * Configuration file for the PD ksh
- *
- ! * RCSid: $Id: config.h,v 1.3 1992/05/03 08:28:59 sjg Exp $
- */
-
- #ifndef _CONFIG_H
- ***************
- *** 24,33 ****
- * if you don't have sigaction(2) and the
- * implementation in sigact.c doesn't work for your system,
- * fix it.
- */
- #define USE_SIGACT /* POSIX signal handling */
-
- ! #if defined(JOBS) && !defined(SIGCONT)
- #undef JOBS
- #endif
-
- --- 24,46 ----
- * if you don't have sigaction(2) and the
- * implementation in sigact.c doesn't work for your system,
- * fix it.
- + *
- + * Of course if your system has a real sigaction()
- + * implementation that is faulty! undef JOBS and add USE_SIGNAL
- + * or whatever does work. You may find it necessary to undef
- + * USE_SIGACT, if so please report it.
- */
- #define USE_SIGACT /* POSIX signal handling */
- + /*
- + * These control how sigact.c implements sigaction()
- + * If you don't define any of them it will try and work it out
- + * for itself. The are listed in order of preference (usefulness).
- + */
- + /* #define USE_SIGMASK /* BSD4.2 ? signal handling */
- + /* #define USE_SIGSET /* BSD4.1 ? signal handling */
- + /* #define USE_SIGNAL /* plain old signal(2) */
-
- ! #if defined(JOBS) && (!defined(SIGCONT) || (defined(_SYSV) && defined(USE_SIGNAL)))
- #undef JOBS
- #endif
-
- *** sh/edit.c.old Sat Apr 25 18:35:26 1992
- --- sh/edit.c Tue May 12 19:30:31 1992
- ***************
- *** 7,13 ****
- #if defined(EMACS) || defined(VI)
-
- #ifndef lint
- ! static char *RCSid = "$Id: edit.c,v 1.2 1992/04/25 08:33:28 sjg Exp $";
- #endif
-
- #include "stdh.h"
- --- 7,13 ----
- #if defined(EMACS) || defined(VI)
-
- #ifndef lint
- ! static char *RCSid = "$Id: edit.c,v 1.4 1992/05/12 09:30:31 sjg Exp $";
- #endif
-
- #include "stdh.h"
- ***************
- *** 73,80 ****
- #endif
- i = -1; /* internal error */
- (void) x_mode(FALSE);
- ! /* XXX -- doesn't get them all */
- ! if (i > 4 && strncmp(buf, "stty", 4) == 0)
- x_do_init = 1;
- if (i < 0 && errno == EINTR)
- trapsig(SIGINT);
- --- 73,79 ----
- #endif
- i = -1; /* internal error */
- (void) x_mode(FALSE);
- ! if (i > 4 && strstr(buf, "stty"))
- x_do_init = 1;
- if (i < 0 && errno == EINTR)
- trapsig(SIGINT);
- ***************
- *** 454,459 ****
- --- 453,460 ----
- flag[FVI] = 0;
- flag[FEMACS] = 1;
- }
- + #endif
- + #if defined(EMACS) && defined(VI)
- else
- #endif
- #ifdef VI
- *** sh/main.c.old Sat Apr 25 18:31:56 1992
- --- sh/main.c Wed Apr 29 16:25:47 1992
- ***************
- *** 3,9 ****
- */
-
- #ifndef lint
- ! static char *RCSid = "$Id: main.c,v 1.3 1992/04/25 08:29:52 sjg Exp $";
- #endif
-
- #define Extern /* define Externs in sh.h */
- --- 3,9 ----
- */
-
- #ifndef lint
- ! static char *RCSid = "$Id: main.c,v 1.4 1992/04/29 06:25:47 sjg Exp $";
- #endif
-
- #define Extern /* define Externs in sh.h */
- ***************
- *** 235,243 ****
- #else
- (void) fd_clexec(ttyfd);
- #endif
- - #if defined(EMACS) || defined(VI)
- - init_editmode();
- - #endif
- #ifdef EMACS
- x_init_emacs();
- #endif
- --- 235,240 ----
- ***************
- *** 273,278 ****
- --- 270,278 ----
- signal(SIGTERM, trapsig);
- #endif
- ignoresig(SIGINT);
- + #if defined(EMACS) || defined(VI)
- + init_editmode();
- + #endif
- } else
- flag[FHASHALL] = 1;
-
- *** sh/patchlevel.h.old Tue May 12 19:19:32 1992
- --- sh/patchlevel.h Tue May 12 19:30:34 1992
- ***************
- *** 1,6 ****
- /*
- * PD KSH
- ! * $Id: patchlevel.h,v 4.4 1992/04/27 07:13:58 sjg Exp $
- */
- #define VERSION 4
- ! #define PATCHLEVEL 4
- --- 1,6 ----
- /*
- * PD KSH
- ! * $Id: patchlevel.h,v 4.5 1992/05/12 09:30:34 sjg Exp $
- */
- #define VERSION 4
- ! #define PATCHLEVEL 5
- *** sh/sigact.c.old Tue May 12 19:19:32 1992
- --- sh/sigact.c Sun May 3 18:29:10 1992
- ***************
- *** 60,69 ****
- *
- */
- #ifndef lint
- ! static char *RCSid = "$Id: sigact.c,v 1.3 1992/04/26 11:24:43 sjg Exp $";
- #endif
- /*
- * $Log: sigact.c,v $
- * Revision 1.3 1992/04/26 11:24:43 sjg
- * USE_SIGSET corrected in sigsuspend().
- *
- --- 60,75 ----
- *
- */
- #ifndef lint
- ! static char *RCSid = "$Id: sigact.c,v 1.5 1992/05/03 08:29:10 sjg Exp $";
- #endif
- /*
- * $Log: sigact.c,v $
- + * Revision 1.5 1992/05/03 08:29:10 sjg
- + * Update for Patch05
- + *
- + * Revision 1.4 1992/04/29 06:29:13 sjg
- + * avoid use of #pragma
- + *
- * Revision 1.3 1992/04/26 11:24:43 sjg
- * USE_SIGSET corrected in sigsuspend().
- *
- ***************
- *** 77,83 ****
-
- #include <signal.h>
-
- ! #ifndef SA_NOCLDSTOP /* no sigaction() */
-
- /*
- * if we haven't been told,
- --- 83,93 ----
-
- #include <signal.h>
-
- ! /*
- ! * some systems have a faulty sigaction() implementation!
- ! * Allow us to bypass it.
- ! */
- ! #if !defined(SA_NOCLDSTOP) || defined(USE_SIGNAL) || defined(USE_SIGSET) || defined(USE_SIGMASK)
-
- /*
- * if we haven't been told,
- ***************
- *** 98,104 ****
- * if we still don't know, we're in trouble
- */
- #if !defined(USE_SIGSET) && !defined(USE_SIGMASK) && !defined(USE_SIGNAL)
- ! #pragma error must know what to implement with
- #endif
-
- #include "sigact.h"
- --- 108,114 ----
- * if we still don't know, we're in trouble
- */
- #if !defined(USE_SIGSET) && !defined(USE_SIGMASK) && !defined(USE_SIGNAL)
- ! error must know what to implement with
- #endif
-
- #include "sigact.h"
- ***************
- *** 179,188 ****
- sigfillset(mask)
- sigset_t *mask;
- {
- ! register int i;
- !
- ! for (i = 1; i < NSIG; i++)
- ! *mask |= sigmask(i);
- return 0;
- }
-
- --- 189,195 ----
- sigfillset(mask)
- sigset_t *mask;
- {
- ! *mask = ~0;
- return 0;
- }
-
- *** sh/version.c.old Sat Apr 25 18:38:04 1992
- --- sh/version.c Tue May 12 19:30:37 1992
- ***************
- *** 3,9 ****
- */
-
- #ifndef lint
- ! static char *RCSid = "$Id: version.c,v 1.2 1992/04/25 08:33:28 sjg Exp $";
- #endif
-
- #include "stdh.h"
- --- 3,9 ----
- */
-
- #ifndef lint
- ! static char *RCSid = "$Id: version.c,v 1.4 1992/05/12 09:30:37 sjg Exp $";
- #endif
-
- #include "stdh.h"
- ***************
- *** 12,21 ****
- #include "patchlevel.h"
-
- char ksh_version [] =
- ! "KSH_VERSION=@(#)PD KSH v4.3 92/04/25";
-
- /***
- $Log: version.c,v $
- * Revision 1.2 1992/04/25 08:33:28 sjg
- * Added RCS key.
- *
- --- 12,27 ----
- #include "patchlevel.h"
-
- char ksh_version [] =
- ! "KSH_VERSION=@(#)PD KSH v4.5 92/05/12";
-
- /***
- $Log: version.c,v $
- + * Revision 1.4 1992/05/12 09:30:37 sjg
- + * see ChangeLog
- + *
- + * Revision 1.3 1992/05/03 08:29:20 sjg
- + * Update for Patch05
- + *
- * Revision 1.2 1992/04/25 08:33:28 sjg
- * Added RCS key.
- *
- *** std/stdc/ChangeLog.old Sat Apr 25 14:52:16 1992
- --- std/stdc/ChangeLog Tue May 12 19:30:54 1992
- ***************
- *** 1,3 ****
- --- 1,9 ----
- + Thu May 7 20:36:40 1992 Simon J. Gerraty (sjg@zen)
- +
- + * fprintf.c: avoid use of #if __STDC__ some compilers don't handle it.
- +
- + * vprintf.c: avoid side effects from putc() macro!
- +
- Sat Apr 25 14:52:01 1992 Simon J. Gerraty (sjg@zen)
-
- * Added RCS keys to sources.
- *** std/stdc/Makefile.old Sat Apr 25 18:19:42 1992
- --- std/stdc/Makefile Sun May 3 18:30:08 1992
- ***************
- *** 1,5 ****
- # Standard C (ANSI) compatabilaty
- ! # $Id: Makefile,v 1.2 1992/04/25 08:19:26 sjg Exp $
-
- # edit this makefile such that only the functions that
- # your systems doesn't have are provided.
- --- 1,5 ----
- # Standard C (ANSI) compatabilaty
- ! # $Id: Makefile,v 1.3 1992/05/03 08:30:08 sjg Exp $
-
- # edit this makefile such that only the functions that
- # your systems doesn't have are provided.
- ***************
- *** 56,63 ****
- # $(LIB)(strpbrk.o) \
- # $(LIB)(strrchr.o) \
- # $(LIB)(strspn.o) \
- ! # $(LIB)(stdio.o) \
- !
-
-
-
- --- 56,63 ----
- # $(LIB)(strpbrk.o) \
- # $(LIB)(strrchr.o) \
- # $(LIB)(strspn.o) \
- ! # $(LIB)(stdio.o)
- ! #
-
-
-
- *** std/stdc/fprintf.c.old Sat Apr 25 18:19:51 1992
- --- std/stdc/fprintf.c Tue May 12 19:30:58 1992
- ***************
- *** 2,10 ****
- * printf and fprintf
- */
-
- ! /* $Id: fprintf.c,v 1.2 1992/04/25 08:19:26 sjg Exp $ */
-
- ! #if __STDC__
- #include <stdarg.h>
- #else
- #include <varargs.h>
- --- 2,10 ----
- * printf and fprintf
- */
-
- ! /* $Id: fprintf.c,v 1.3 1992/05/12 09:30:58 sjg Exp $ */
-
- ! #ifdef __STDC__
- #include <stdarg.h>
- #else
- #include <varargs.h>
- ***************
- *** 15,21 ****
-
- /* printf to stdout */
- int
- ! #if __STDC__
- printf(const char *fmt, ...) {
- #else
- printf(va_alist) va_dcl
- --- 15,21 ----
-
- /* printf to stdout */
- int
- ! #ifdef __STDC__
- printf(const char *fmt, ...) {
- #else
- printf(va_alist) va_dcl
- ***************
- *** 24,30 ****
- #endif
- va_list va;
-
- ! #if __STDC__
- va_start(va, fmt);
- #else
- va_start(va);
- --- 24,30 ----
- #endif
- va_list va;
-
- ! #ifdef __STDC__
- va_start(va, fmt);
- #else
- va_start(va);
- ***************
- *** 36,42 ****
- }
-
- int
- ! #if __STDC__
- fprintf(FILE *f, const char *fmt, ...) {
- #else
- fprintf(va_alist) va_dcl
- --- 36,42 ----
- }
-
- int
- ! #ifdef __STDC__
- fprintf(FILE *f, const char *fmt, ...) {
- #else
- fprintf(va_alist) va_dcl
- ***************
- *** 46,52 ****
- #endif
- va_list va;
-
- ! #if __STDC__
- va_start(va, fmt);
- #else
- va_start(va);
- --- 46,52 ----
- #endif
- va_list va;
-
- ! #ifdef __STDC__
- va_start(va, fmt);
- #else
- va_start(va);
- *** std/stdc/sprintf.c.old Sat Apr 25 18:20:23 1992
- --- std/stdc/sprintf.c Tue May 12 19:31:01 1992
- ***************
- *** 2,10 ****
- * sprintf and vsprintf
- */
-
- ! /* $Id: sprintf.c,v 1.2 1992/04/25 08:19:26 sjg Exp $ */
-
- ! #if __STDC__
- #include <stdarg.h>
- #else
- #include <varargs.h>
- --- 2,10 ----
- * sprintf and vsprintf
- */
-
- ! /* $Id: sprintf.c,v 1.3 1992/05/12 09:31:01 sjg Exp $ */
-
- ! #ifdef __STDC__
- #include <stdarg.h>
- #else
- #include <varargs.h>
- ***************
- *** 14,20 ****
- #if _V7 || _BSD
-
- int
- ! #if __STDC__
- sprintf(char *s, const char *fmt, ...) {
- #else
- sprintf(va_alist) va_dcl
- --- 14,20 ----
- #if _V7 || _BSD
-
- int
- ! #ifdef __STDC__
- sprintf(char *s, const char *fmt, ...) {
- #else
- sprintf(va_alist) va_dcl
- ***************
- *** 25,31 ****
- register va_list va;
- int n;
-
- ! #if __STDC__
- va_start(va, fmt);
- #else
- va_start(va);
- --- 25,31 ----
- register va_list va;
- int n;
-
- ! #ifdef __STDC__
- va_start(va, fmt);
- #else
- va_start(va);
- ***************
- *** 38,44 ****
- }
-
- int
- ! #if __STDC__
- vsprintf(char *s, const char *fmt, va_list va) {
- #else
- vsprintf(s, fmt, va)
- --- 38,44 ----
- }
-
- int
- ! #ifdef __STDC__
- vsprintf(char *s, const char *fmt, va_list va) {
- #else
- vsprintf(s, fmt, va)
- *** std/stdc/stdio.h_std.old Sat Apr 25 14:42:26 1992
- --- std/stdc/stdio.h_std Sat May 2 23:29:18 1992
- ***************
- *** 5,11 ****
- * todo: needs L_* constants.
- */
-
- ! /* $Id$ */
-
- #if ! _STDIO_H
- #define _STDIO_H 1
- --- 5,11 ----
- * todo: needs L_* constants.
- */
-
- ! /* $Id: stdio.h_std,v 1.1 1992/05/02 13:29:18 sjg Exp $ */
-
- #if ! _STDIO_H
- #define _STDIO_H 1
- *** std/stdc/vprintf.c.old Sat Apr 25 18:21:26 1992
- --- std/stdc/vprintf.c Tue May 12 19:31:03 1992
- ***************
- *** 1,5 ****
- #ifndef lint
- ! static char *RCSid = "$Id: vprintf.c,v 1.2 1992/04/25 08:19:26 sjg Exp $";
- #endif
- #ifdef __STDC__
- #include <stdarg.h>
- --- 1,5 ----
- #ifndef lint
- ! static char *RCSid = "$Id: vprintf.c,v 1.3 1992/05/12 09:31:03 sjg Exp $";
- #endif
- #ifdef __STDC__
- #include <stdarg.h>
- ***************
- *** 144,150 ****
- if ((flags&FF_PREC) && strlen(p) > prec) {
- pos += prec;
- while (--prec >= 0)
- ! putc(*p++, f);
- break;
- }
- flags |= FF_PUTS;
- --- 144,153 ----
- if ((flags&FF_PREC) && strlen(p) > prec) {
- pos += prec;
- while (--prec >= 0)
- ! {
- ! c = *p++;
- ! putc(c, f);
- ! }
- break;
- }
- flags |= FF_PUTS;
- ***************
- *** 223,230 ****
- if (!(flags&FF_LEFT))
- while (--pad >= 0)
- putc((flags&FF_ZERO) ? '0' : ' ', f);
- ! while (*p)
- ! putc(*p++, f);
- if ((flags&FF_LEFT))
- while (--pad >= 0)
- putc(' ', f);
- --- 226,233 ----
- if (!(flags&FF_LEFT))
- while (--pad >= 0)
- putc((flags&FF_ZERO) ? '0' : ' ', f);
- ! while (c = *p++)
- ! putc(c, f);
- if ((flags&FF_LEFT))
- while (--pad >= 0)
- putc(' ', f);
-
- exit 0 # Just in case...
-