[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using "load-foreign" for standard library routines



   Date: Sun, 09 Apr 89 22:13:29 -0700
   From: ham@polya.stanford.edu


   If I want reference foreign commands that reside in 
   standard C libraries under unix, like fopen, fread, etc,
   is there a way to perform a define-foreign and load-foreign
   to reference these commands without writing dummy stub routines
   in a stand alone object file that call these library routines
   indirectly.  

   Peter


I decided, perhaps unwisely, not to include the entire C and Unix libraries
in the T image.  Many things such as fopen got in there anyway.  You can do
define-foreigns without stubs for anything which 'nm' shows to be there.
Or you can suspend and rebuild T to include the routines you want.

	-David