[comp.unix.microport] X windows on Microport 286 Unix

trevor@trevan.UUCP (trevor) (07/25/88)

	I am attemping to port x windows to Microport 286. Is there anyone else
out there attempting to do the same. I have a couple of problems.

1)	imake calls ftruncate and vfork. Could anyone tell me what these
	functions do?

2)	Has anyone had thoughts on how to implement the serial bit stream as
	microport 286 does not support sockets. I suspect the best way is to
	write pretend socket drivers. Does any one know if this is avaiable
	in the public domain for system V.

dkhusema@faui44.UUCP (Dirk Husemann (Inf4 - hiwi),0.058I4,7908,09131-302036) (07/26/88)

From article <172@trevan.UUCP>, by trevor@trevan.UUCP (trevor):
> 
> 	I am attemping to port x windows to Microport 286. Is there anyone else
> out there attempting to do the same. I have a couple of problems.
> 
> 1)	imake calls ftruncate and vfork. Could anyone tell me what these
> 	functions do?
> 

	At least about vfork() I can offer you some help:

		vfork() is a BSD fork(), the major difference being that
	the parent process is suspended (put to sleep) until the child pro-
	cess does an exec() or writes to the former parents data space.

	Thus, the data and text segments (and so forth) do _not_ have to
	be duplicated as it is done in fork().

>	....

	Hope, that's of some help to you!

	-Dirk

------------------ Smile, tomorrow will be worse! -------------
Business: Dirk Husemann			Home: Dirk Husemann
	  Friedrich-Alexander University      Aufsess-Str. 19
	  Erlangen-Nuremberg		      D-8520 Erlangen
	  Comp.Science Dep. IMMD IV	      West Germany
	  Martensstrasse 1		      +49 9131 302036
	  D-8520 Erlangen
	  West Germany
	  +49 9131 857908
	
	  email: dkhusema@immd44.informatik.uni-erlangen.de
	     or: {pyramid,unido}!fauern!faui44!dkhusema
------------------ Did I say smile? Forget it! ----------------
Disclaimer: The opinions, views, statements, ..., expressed 
	    here are NOT those of the university nor those of
	    the student body as a whole. In fact, they're mine!
---------------------------------------------------------------

vandys@hpisoa1.HP.COM (Andrew Valencia) (07/28/88)

/ hpisoa1:comp.unix.microport / dkhusema@faui44.UUCP (Dirk Husemann (Inf4 - hiwi),0.058I4,7908,09131-302036) /  6:08 am  Jul 26, 1988 /
From article <172@trevan.UUCP>, by trevor@trevan.UUCP (trevor):
>> 
>> 1)	imake calls ftruncate and vfork. Could anyone tell me what these
>> 	functions do?
> 
>		vfork() is a BSD fork(), the major difference being that
>	the parent process is suspended (put to sleep) until the child pro-
>	cess does an exec() or writes to the former parents data space.

    To amplify: use fork(); it has the same semantics as vfork() for your
purposes.  ftruncate() is used to free space off the end of a file.  BSD
eventually wanted to improve on it with a general mechanism for freeing
ranges of space within a file.

				Andy Valencia