Sat Jul 30 00:01:27 1994  iBCS Development  (ibcs@longyear)

	* _input.c (SIGNED_NON_DECIMALS): Added this define to control the
	use of the ANSI changes until such time as they can be determined
	to be required for the iBCS and SysV libraries.

	Set the define should the library be built for the OS-9 system.

Fri Jul 22 23:55:21 1994  R.Wilcke  (wilcke@esrf.fr)

	* fscanf.c: do not include "file2.h" and "internal.h" for OS-9;

	correct spelling of variable pszFormat in call to va_start()

Fri Jul 22 23:55:21 1994  R.Wilcke  (wilcke@esrf.fr)

	* _input.c: do not include "file2.h" and "internal.h" for OS-9;

	in function GoodWidth(), set nWidth to -1 when the countdown reaches
	0 (otherwise all subsequent characters will always be accepted);

	in function CollectFixedPt(), allow optional sign also for octal
	and hexadecimal integers (ANSI C standard requirement);

	in function CollectString_Space(), invert return values to agree 
	with the description in the comments (0 for space, 1 for non-space);

	in function CollectString(), correct the description of the input
	parameters.

Mon Jul 25 23:55:21 1994  R.Wilcke  (wilcke@esrf.fr)

	* _input.c: make 'i' format accept an optional sign for octal and
	hexadecimal numbers to agree with ANSI-C;

	increase size of push-back buffer to 2 (now needed for 'i'
	format);

	in function MatchInput(), correct return value to agree with the
	description of the functionality.

Tue Jul 12 15:55:01 1994  Stephen Rothwell  (sfr@pdact.pd.necisa.oz.au)

	* file2.h: _libc__bufendtab is a char ** not
	an array of char **.

Thu Jul  7 22:19:55 1994  iBCS Development  (ibcs@longyear)

	* _openfile.c (_openfile): Elimated the FILE2 structure. Added
	support for the bufendtab list. Added support for the tty_flags
	list. These two lists made up most of the requirements for the
	FILE2 structure. Bufendtab is a required table entry for iBCS
	compatability.

Thu Jul  7 22:19:55 1994  iBCS Development  (ibcs@longyear)

	* fclose.c: same as above.
	* fdopen.c: same as above.
	* fflush.c: same as above.
	* filbuf.c: same as above.
	* file.c: same as above.
	* flsbuf.c: same as above.
	* fread.c: same as above.
	* freebuf.c: same as above.
	* fseek.c: same as above.
	* ftell.c: same as above.
	* fwrite.c: same as above.
	* getbuf.c: same as above.
	* internal.h: same as above.
	* setbuf.c: same as above.
	* setvbuf.c: same as above.
	* stfbuf.c: same as above.
	* ungetc.c: same as above.

Thu Jul  7 22:19:55 1994  iBCS Development  (ibcs@longyear)

	* internal.h: same as above. Added the definition for tty_flag_list.

Thu Jul  7 22:19:55 1994  iBCS Development  (ibcs@longyear)

	* file2.h: same as above.
	In addition, redefined the bufendtab list and built it based upon
	the type of library being constructed.

Thu Jul  7 22:19:55 1994  iBCS Development  (ibcs@longyear)

	* sprintf.c: same as above.
	* sscanf.c: same as above.
	* vsprintf.c: same as above.

	In addition, removed the string file flag definition. Used file
	number STRING_FILE which is _NFILE+1 to indicate that this is a
	string file. I needed the bit occupied by this field to hold the
	flags needed for normal operation. 

Wed Jun 15 22:56:53 1994  Eric Youngdale  (eric@esp22)

	* file2.c: Define _bufendtab, and initialize as required.

	* file2.h: Remove _bufsiz from file2 struct.
	Use macros like COFF library for ELF library, except use
	symbol name _bufendtab.

	* trace.c: Fix do_write so that it works with PIC code.

Thu Jun  9 23:00:00 1994  Stephen Rothwell  (sfr@pdact.pd.necisa.oz.au)

	* file2.h: Added buf_size, set_buf_size macros.
	* filbuf.c, flsbuf.c, fread.c, fseek.c, getbuf.c,
	  setbuf.c, setvbuf.c, stfbuf.c : Use buf_size, set_buf_size macros.
	* internal.h: _libc__s[io]buf are pointers not double pointers.

Wed Jun  8 12:00:00 1994  Stephen Rothwell  (sfr@pdact.pd.necisa.oz.au)

	* flsbuf.c, internal.h: rename _xflsbuf to _xxflsbuf since
	COFF has a real _xflsbuf routine.
	* internal.h: _lastiob should be (*_libc__lastbuf)-1 for COFF.
	_buferr is not (*_libc__smbuf)!
	* trace.c: add pid to trace messages.
	Rewrite asm stuff.
	* file.c: COFF needs _buferr (for now).
	Don't initialize _iob2 for COFF.

Tue Jun  7 21:00:00 1994  Stephen Rothwell  (sfr@pdact.pd.necisa.oz.au)

	* _openfile.c: streamflag needs to be unsigned.

Sun Jun  5 21:00:00 1994  Stephen Rothwell  (sfr@pdact.pd.necisa.oz.au)

	* clearerr.c: Changed _cerror to _clearerr as _cerror is a different
	function all together.
	* internal.h: Defined _lastiob to be (*_libc__lastbuf) for COFF.
	Defined _bufin, _bufout and _buferr to be (*libc__s[iom]buf)
	for COFF.
	* rewind.c: Call _clearerr not _cerror.

Sun Mar 27 19:53:38 1994  Eric Youngdale  (eric@esp22)

	* ftell.c (ftell): Instead of adjusting file position in read
	mode, adjust if not in write mode.  fseek() leaves file in
	neither read or write mode, and we need the correction.
	(Bug demonstrated by fseek to end of file, followed by ftell).

	* fread.c (read_blk): Do not return EOF if we have already
	read some characters.

Sun Feb 27 10:18:16 1994  iBCS Development  (ibcs@longyear)

	* file2.h (_iob_index): revised define to use the file number as
	the index to the FILE2 table list. This allows the FILE structure
	table to be defined anywhere in memory. (iBCS uses its own tables.)

	* changed all references to use a new define of file2p(stream)
	to return a pointer to the FILE2 structure. It may come to a time
	where this is a real function, so I defined it as if it was one.

Sun Feb 27 10:16:28 1994  iBCS Development  (ibcs@longyear)

	* *.c: Added include file for <trace.h> and defined entry/exit
	trace events for all of the functions. This results in additional
	code being generated if the symbol "__TRACE_LIB" is defined.

Wed Feb 16 22:58:50 1994  Eric Youngdale  (eric@esp22)

	* flsbuf.c: Define _flsbuf as weak symbol.
	Define __flsbuf as strong synonym.

	* filbuf.c: Define _filbuf as weak symbol synonym
	for __filbuf.

Sun Feb 13 09:57:57 1994  Eric Youngdale  (eric@esp22)

	* getw.c: Define as _getw, add weak symbol getw.

	* putw.c, fileno.c, fdopen.c, tempnam.c, tmpfile.c:
	Likewise.

	* tmpfile.c: Use _tempnam, not tempnam.

      Search all of stdio for & == operator precedence bugs (using grep).

	* flsbuf.c (_xflsbuf): Found two here.

	* ftell.c (ftell): And another one here.

	* ungetc.c (ungetc): And another one here.

Sat Feb 12 11:33:31 1994  Eric Youngdale  (eric@esp22)

	* filbuf.c (_filbuf): Fix bug whereby _filbuf
	was compiled to be a no-op (& operator lower precedence than ==).

	* file.c: Correctly initialize _iob (switch _ptr and _cnt
	unless _STDIO_REVERSE is defined).  Add initializer
	for _ttyflag.

	* stfbuf.c (_if): Fix bug in previous fix.

Sat Feb 12 00:56:35 1994  Eric Youngdale  (eric@esp22)

	* file.c (_iob): Add weak symbol for ELF == __iob.

	* file2.h: Add new flag _ttyflag, and two values, _IOISTTY and
	_IONOTTY.

	* fdopen.c: Clear _ttyflag.

	* _openfile.c: Likewise.

	* stfbuf.c (_ftbuf): Set _ttyflag based upon results of
	istty().  If we know this to be a tty, do not call istty,
	as this performs an ioctl, and in principle could be a performance
	drag.

Fri Feb 11 12:48:22 1994  Eric Youngdale  (eric@esp22)

	* stfbuf.c (_stbuf): Set _libc__cleanup if we are opening
	stdout.	

Mon Feb  7 21:54:57 1994  Eric Youngdale  (eric@esp22)

	* stfbuf.c (_ftbuf): Do not flush stdout, only stderr.

	* _doprnt.c(hexout): Change condition from 
	      while (val != 0 || --min_digits > 0);
	  to
	      while ( --min_digits > 0 || val != 0);
	  so autodecrement always happens.
	  (octout): likewise.

Sun Feb  6 18:53:44 1994  Eric Youngdale  (eric@esp22)

	* _doprnt.c: Patch from Al - fix problem with %8.3x not inserting
	leading zeros.

Mon Feb  7 22:21:18 1994  iBCS Development  (ibcs@longyear)

	* output.h (EDITMAX): New define. Increased buffer size to fit ANSI
	size specifications.

	* _doprnt.c: added minimum decimal digit counters to decimal "%d"
	format. Increased maximum decimal counters to allow for ANSI size
	specification of 509 digits.

Sun Feb  6 16:09:36 1994  iBCS Development  (ibcs@longyear)

	* _doprnt.c: make functions local which were not required to be
	public.

	* file.c: buffered the stdout file. It was previously unbuffered when
	I copied the stderr file. Note: stderr is not to be buffered unless
	specifically requested by setbuf/setvbuf call.

Sat Feb  5 09:51:47 1994  iBCS Development  (ibcs@longyear)

	* _doprnt.c: Corrected hexout and octout to ensure that the minimum
	number of digits is edited. This allows the format "%10.8x" to
	work properly and emit 8 digits within a 10 digit field.

Fri Feb  4 20:54:12 1994  Eric Youngdale  (eric@esp22)

	* _openfile.c: Use "-1" as semaphore for not opening file, not
	0 (same as O_RDONLY).  Add "b" as allowable string, but ignore it.

	* _doprnt.c (_doprnt): Bugfix - decimals field was altered instead
	of size.

Sun Jan 30 22:53:13 1994  Eric Youngdale  (eric@esp22)

        * Makefile: Add lib*.o target if building an ELF library.  Remove
       references to $(CWD).

       *  clrerr.c: Remove (redundant, contains same as clearerr.c).

Sun Jan 30 14:28:18 1994  iBCS Development  (ibcs@longyear)

* Makefile: Added -Werror to generate errors for any warning condition.
Removed all warning conditions which were in the library.

* _input.c: Corrected function names so that the module will
execute. Renamed some of the more obscure functions to indicate the
source of the input. Corrected problem with gathering suppressed field
format string.

* internal.h: Changed prototype of _libc__cleanup to make valid
function definition.


