Commit Graph

122 Commits

Author SHA1 Message Date
gdr-ftp
273780523c Makefile:
eliminate oldlog.c from the build.  old_syslog() was only used by
	syslog2.asm, and inspection showed it to be likely buggy anyway.
	It was missing a field in the passed data structure, and using
	it would cause any long-running daemon to run out of memory if
	didn't crash first.  For now I'm leaving oldlog.c where it is
	rather than doing a 'cvs rm'.

syslog.c:
	Major changes...
	- The facility/priority has gone back to being of type int vice long;
	  the original change was a red herring.
	- The current syslog implementation will now talk to Phil's original
	  syslogd.
	- The busy wait in sendPort now forces a context switch.

syslog2.asm:
	- I commented the sources while figuring out what Phil's syslogd
	  was doing.  I may was well check in those comments even though
	  this file is not currently used.
	- fixed the save name and the 'mcopy' directive

vis.c, unvis.c:
	- initial checkin
1999-01-04 05:10:36 +00:00
gdr-ftp
6b44130571 ports.c:
initial checkin for test re PR#102
1998-12-31 22:45:35 +00:00
gdr-ftp
2604b42f9a Due to PR#98, change it so that the builddate.rez file is always taken
out of 13/RInclude instead of /src/gno/build.tools.  This implies that
builddate.rez has to have been previously installed in 13/RInclude; this
is done by the 'install' and 'release' targets in /src/gno/build.tools.
1998-12-22 16:08:54 +00:00
gdr-ftp
2a358f71bc updated the ChangeLog for libc 1998-10-31 20:24:16 +00:00
gdr-ftp
b84b251619 added test for syslogmt(3), vsyslogmt(3) 1998-10-31 17:25:04 +00:00
gdr-ftp
6eebdb8e3a Makefile, vsprintmt.c:
- Added the sprintmt and vsprintmt routines.  These are thread
	  safe variants of the sprintf and vsprintf routines.  Note that
	  they don't support as many formatting options as stdio does.

gnomisc.c:
	- Define the global variable "__progname".  This is initially
	  set to "(unknown)", but is properly initialized to the return
	  value of __prognameGS() the first time that function is called.
1998-10-31 17:22:05 +00:00
gdr-ftp
fd73dca790 syslog.c:
- added thread safe functions syslogmt and vsyslogmt.
	- minor changes to sendPort to make it thread safe
	- moved variadic wrappers to the end of the file so that the
	  command line optimize/debug levels get propogated through
	  the rest of the source during compilation.
	- changed the mechanism by which sendPort waits for it's buffer
	  to be released by syslogd
	- since ctime(3) is not thread safe, add a flag to the
	  SyslogDataBuffer_t that tells syslogd(8) to add the appropriate
	  time stamp.  This is easier than implementing thread safe
	  versions of ctime and localtime.
1998-10-31 17:17:24 +00:00
gdr-ftp
afc1676d9f syscall.c:
- added readv (untested) and writev (tested)
1998-06-24 04:22:38 +00:00
gdr-ftp
b7010abc60 This is a re-implementation of the syslog(3) and related functions. 1998-06-24 04:20:02 +00:00
gdr-ftp
750cc1d6da trap.asm:
fixed a comment regarding exec(2)
1998-05-30 15:36:15 +00:00
gdr-ftp
e8879227c8 basename.c:
If the argument provided to dirname(3) doesn't have a
	directory component, return "." instead of "".
1998-04-10 21:33:20 +00:00
gdr-ftp
50a2dce1b5 initial checkin for strftime(3) test program 1998-04-10 21:25:07 +00:00
gdr-ftp
92ee492794 added the _reportStack(3) routine 1998-03-28 16:46:59 +00:00
gdr-ftp
04ed2e0e19 cvt.c:
Fix for PR#56 -- there is a kludge to modify the exponent for
	a converted value of zero, due to the way that SANE special-
	cases it.  This kludge was applied for all values that had a
	zero exponent; now do it only for the value zero.
1998-03-28 16:42:32 +00:00
gdr-ftp
62215a070f ChangeLog:
summarized all changes from 22 Dec 97 to the present
1998-03-25 06:06:34 +00:00
gdr-ftp
23b1d7acd2 Makefile:
corrected location of assert.o file
1998-03-25 06:05:46 +00:00
gdr-ftp
8c9a14c01e cvt.c:
The ecvt(), fcvt(), and __dtoa() routines were generally
	rewritten to address the problem of printing floating point
	numbers (they sometimes came out wrong, especially representations
	of zero).

	__dtoa was written from the description in the BSD sources (note
	that the comment of it being "like ecvt/fcvt other than truncating
	trailing zeros") is not quite accurate where it comes to the rve
	pointer or the printing of zero values.  __dtoa is still expected
	to be wrong for any modes other than 2 and 3, however those modes
	are not used by anything in libc yet.  Fix them when they pop up.

	BSD has not ecvt/fcvt routines, so these have been written based
	on the man page and observed behavior of the Linux implementation.
	There is no gcvt yet.
1998-03-24 16:20:30 +00:00
gdr-ftp
e9cd1d1fb9 Makefile:
getlogin.c was missing from the list of sources, and therefore
	getlogin(3), _getlogin(3), and setlogin(3) were missing from
	the build.
1998-03-24 16:10:35 +00:00
gdr-ftp
7027be9e4b vfscanf.c:
- Fixed a problem reported by Derek where stack trashing
	  was happening once an EOF was reached.  This was actually
	  only one example of a class of problems; any time __svfscanf
	  returned before filling all the requested arguments, va_arg
	  was left uncalled for some set of arguments.  This has been
	  fixed by adding a "stack cleanup" section to the code where
	  va_arg is called once for each remaining argument.
	- The __svfscanf routine still had large arrays on the stack.
	  These have been changed to static storage class.  There is
	  currently an assert in place to assure that recursion isn't
	  happening since I didn't have the chance yet to verify in
	  detail the control flow here.  This assert (and the related
	  use of the "recursing" variable) can be removed after such
	  a verification.
1998-03-04 06:20:03 +00:00
gdr-ftp
79cc150685 Makefile:
- specify files via SRCS vice OBJS.  This eliminates an extraneous
	  ".o" in the final OBJS value.
	- don't attempt to attach a rez fork (leave it for the upper
	  level makefile)
1998-02-19 01:07:56 +00:00
gdr-ftp
7e3c77c4a2 Makefile, stack.asm:
- move generated macro file to /obj hierarchy
Makefile:
	- fix location of (non-generated) macro sources
	- specify files via SRCS vice OBJS.  This eliminates an extraneous
	  ".o" in the final OBJS value.
	- don't attempt to attach a rez fork (leave it for the upper
	  level makefile)
1998-02-19 01:05:17 +00:00
gdr-ftp
3c8936e8bc Makefile:
- eliminate double concatenation of resource fork
	- specify files via SRCS vice OBJS
	- obtain the assert object file from where it is built in
	  the ORCA hierarchy
libc.rez:
	- add build date to displayed data
1998-02-19 01:00:36 +00:00
gdr-ftp
b3a92e5811 - initial checkin of Steve's uname(3) implementation 1998-02-16 22:44:03 +00:00
taubert
6bd94b0884 Added support for separate object hierarchy and cleaned up libc makefiles 1998-02-09 08:45:21 +00:00
taubert
ed01d173df Move crypt support files from libc into libcrypt 1998-02-09 08:25:43 +00:00
gdr-ftp
6bfb3527a9 - Makefiles now have common 'release' and 'install' targets
- most Makefiles now use gno/lib/lib.mk (not all of libc has been
  done yet)
1998-02-08 03:47:40 +00:00
gdr-ftp
c8e574bab7 crypt.c, crypta.asm:
- missed some renames of symbols when the namespace pollution
	  problem was addressed.  Hopefully this fixes the unresolved
	  symbols.  Untested.
1998-02-08 03:20:25 +00:00
gdr-ftp
716edaa21b - (crypta.asm) move all functions into the *.o file. The first one was
getting put into the *.root file.
1998-02-05 16:07:06 +00:00
gdr-ftp
e712a9ff58 - fixed a bug (found by Steve Reeves) where the check for an out-of-bounds
errno was never catching illegal errnos, and thus could walk off the
  end of the message array.
1998-02-04 15:16:19 +00:00
gdr-ftp
4b239cd6da - utime(2) test: print access and modification times before exiting 1998-02-04 07:26:53 +00:00
gdr-ftp
c3959c4d16 - scanf test. Verifies the operation of scanning floats 1998-02-04 07:24:39 +00:00
gdr-ftp
272fd7918a - eliminate the definition and use of the macros INCLUDE_GNO, INCLUDE_ORCA,
and INCLUDE_GNO_ALT.  The directories specified in 13/orcacdefs/defaults.h
  are now assumed to be correct.  When building lib/libc/stdio/vfprintf.o,
  these directories have to explicitly stated the makefile for the moment.
1998-01-26 00:44:25 +00:00
gdr-ftp
2d3f7dce1a - floating point conversion specifiers were disabled, leading to stack
errors if they were used.  They have been reenabled.
1998-01-25 21:03:48 +00:00
gdr-ftp
676fccce0c - fixed some off-by-one errors in day fields. Errors found and fix
provided by Steve Reeves.
1998-01-25 21:01:55 +00:00
gdr
07177f48d1 test more floating point data formats in printf 1997-12-21 20:15:27 +00:00
gdr
b998993162 added trivial test for fts routines 1997-12-21 20:14:21 +00:00
gdr
5aa367e6ff added Tilghman's settimeofday(2) implementation 1997-12-21 20:13:19 +00:00
gdr
97ab3c7a62 - fixed segment name
- changed location of macro include files
1997-12-21 20:12:27 +00:00
gdr
6b8ea553ee added more stack routines 1997-12-21 20:11:17 +00:00
gdr
4aafacd78b fix a bad patch(1) run 1997-12-21 20:05:41 +00:00
gdr
7276456260 Put in some fixes that came out of FreeBSD-Current. Compilations not
yet verified on the IIgs.  Also, dumped #ifdef's that avoided use of
fdopen from before fdopen was available in libc.
1997-12-19 06:34:31 +00:00
gdr
8590ffb646 These are Dave Tribby's changes that were necessary to make
sed (which uses these routines) work correctly.  See the file
GNO.notes for more details.
1997-11-17 04:13:08 +00:00
gdr
9a6d867e7f for the junk.c target:
- Use macros for -I flag values rather than explicit directories
	- Use a text diversion rather than explicit shell redirection.
	  This avoids a gsh hang on some systems.
1997-11-01 19:16:29 +00:00
gdr
072c984053 make CHDIR macro work when NDEBUG is defined (and therefore the assert
is a null op).
1997-11-01 19:12:16 +00:00
gdr
68e30dd46a Split vfprintf.c into 2 via #ifdefs, so that ORCA/C can create two
different object files.

Added "%b" printf specifier for as per the ORCA/C implementation,
but disable it for now pending an ORCA/C bug.
1997-10-30 04:52:45 +00:00
gdr
88223ca717 added "%b" specifier (Apple IIgs specific) for Pascal-type strings 1997-10-30 04:49:02 +00:00
gdr
2b38da3926 - added rmdir(2)
- eliminate a shitload of casts by using the dynamic gsstring hack
  in <types.h>
1997-10-30 04:46:53 +00:00
gdr
fd08c34074 initial checkin 1997-10-30 04:45:25 +00:00
gdr
9f917c3089 Added Henry Spencer 1997-10-30 04:28:04 +00:00
gdr
280300e2f8 This now builds under ORCA/C. Completely untested. 1997-10-08 07:07:51 +00:00