tamboer@cs.vu.nl (Tamboer Erik) (08/02/90)
I am looking for the source of the spawnv() function for Turbo C 2.0 that will swap memory to disk (and/or EMS/XMS?). It must work in the Compact memory model. I realize that this has been asked before, but I have no access to the sites usually referred to. So, if somebody has such a beast, could you PLEASE email it to me? I have been looking for over a year now for this, but without success. BTW, I am _not_ looking for an external program (e.g. SWAPDOS), but for a piece of code I can add to my shell program, for my own use. Pleasepleaseplease... Thanks in advance, Erik -- ____________________ ________________________________________ / Erik Tamboer /\__ / I would have included a really funny /\__ / tamboer@cs.vu.nl /__\/ / joke here, but I already logged out. /__\/ /___________________/ /_______________________________________/
tamboer@cs.vu.nl (Tamboer Erik) (09/14/90)
I have asked this before and got some useful replies, but... I am looking for the source (C or ASM) of a version of Turbo C's spawnv() function (or possibly one of the other spawn..() funtions) that will allow a program to swap itself out of memory to disk (and possibly to EMS/XMS memory, but in any case to disk) before executing another program. It is essential that this function work in the COMPACT (or above) model! I have a version for the small and medium models, but I want to use it in my (personal) shell program that must be compiled in Turbo C in at least the compact model. I don't know enough low level memory stuff to write one myself :-( Please help me... Thanks in advance, Erik Tamboer, Amsterdam, The Netherlands -- ____________________ ________________________________________ / Erik Tamboer /\__ / I would have included a really funny /\__ / tamboer@cs.vu.nl /__\/ / joke here, but I already logged out. /__\/ /___________________/ /_______________________________________/
ralf@b.gp.cs.cmu.edu (Ralf Brown) (09/15/90)
In article <7563@star.cs.vu.nl> tamboer@cs.vu.nl (Tamboer Erik) writes: }I am looking for the source (C or ASM) of a version of Turbo C's }spawnv() function (or possibly one of the other spawn..() funtions) }that will allow a program to swap itself out of memory to disk (and }possibly to EMS/XMS memory, but in any case to disk) before executing }another program. It is essential that this function work in the }COMPACT (or above) model! I have a version for the small and medium models, I will be releasing SPAWNO v2.0 over the weekend. While it won't include source, it will work under Turbo C in all memory models except Huge and include all eight of the spawn...() functions. There will even be a version that runs under MS C (given some limitations on use of malloc() and friends). I will make an announcement once it is available. Ralf -- {backbone}!cs.cmu.edu!ralf ARPA: RALF@CS.CMU.EDU FIDO: Ralf Brown 1:129/3.1 BITnet: RALF%CS.CMU.EDU@CMUCCVMA AT&Tnet: (412)268-3053 (school) FAX: ask DISCLAIMER? Did | Everything is funny as long as it is happening to I claim something?| someone else. --Will Rogers
bright@Data-IO.COM (Walter Bright) (09/15/90)
In article <7563@star.cs.vu.nl> tamboer@cs.vu.nl (Tamboer Erik) writes:
<I am looking for the source (C or ASM) of a version of Turbo C's
<spawnv() function (or possibly one of the other spawn..() funtions)
<that will allow a program to swap itself out of memory to disk (and
<possibly to EMS/XMS memory, but in any case to disk) before executing
<another program.
One comes with Zortech C++. If you obtain the library source for ZTC++,
I'm sure the swapping spawn could be easilly adapted to TC.