diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1995-12-26 05:03:11 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1995-12-26 05:03:11 +0000 |
| commit | 4e280885938731f86e75a3c146ce2ce4fec99d1f (patch) | |
| tree | ad3e96caee4fc9d4abc6511e1a60451468df6953 /usr.sbin/sup/lib/vprintf.c | |
| parent | d14071a4b3f94fc0205683a8186f924d8afa6357 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/sup/lib/vprintf.c')
| -rw-r--r-- | usr.sbin/sup/lib/vprintf.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.sbin/sup/lib/vprintf.c b/usr.sbin/sup/lib/vprintf.c index 235a5f17c601..2c1a309702a7 100644 --- a/usr.sbin/sup/lib/vprintf.c +++ b/usr.sbin/sup/lib/vprintf.c @@ -28,6 +28,11 @@ ********************************************************************** * HISTORY * $Log: vprintf.c,v $ + * Revision 1.1.1.1 1995/12/26 04:54:47 peter + * Import the unmodified version of the sup that we are using. + * The heritage of this version is not clear. It appears to be NetBSD + * derived from some time ago. + * * Revision 1.1.1.1 1993/08/21 00:46:35 jkh * Current sup with compression support. * @@ -118,9 +123,16 @@ vsnprintf(s, n, fmt, args) { FILE fakebuf; +#ifdef __hpux + fakebuf._flag = _IODUMMY+_IOWRT;/* no _IOWRT: avoid stdio bug */ + fakebuf._base = fakebuf._ptr = s; + fakebuf._cnt = n-1; + fakebuf.__fileL = fakebuf.__fileH = 0xff; +#else fakebuf._flag = _IOSTRG+_IOWRT; /* no _IOWRT: avoid stdio bug */ fakebuf._ptr = s; fakebuf._cnt = n-1; +#endif _doprnt(fmt, args, &fakebuf); fakebuf._cnt++; putc('\0', &fakebuf); |
