sockets & ptys

Alex S. Crain alex at umbc3.UMBC.EDU
Tue Aug 8 05:31:57 AEST 1989


In article <637 at holin.ATT.COM> bes at holin.ATT.COM (Bradley Smith) writes:

>Now a question. I want select to work on the /dev/window as well
>(like stdin, stdout) but you can't access data in other loadable
>devices.  I thought of find out what address the struct tty is at
>and looking at it that way.  Does anyone have an idea?

	You can access data in loadable devices, *if you know the address*.
One way of doing this is to link with /etc/lddrv/ifile.wind and assume that
this info will not change. Another way would be to have uipcinit() read
/etc/ldrv/ifile.wind (yuk). Since its reasonable to assume that wind.o
will always be the first driver loaded, then there is no reason that the
addresses should change, ever, so using that ifile is a reasonably good
way of doing it. You could justify it by assuming that the window driver 
will someday be replaced, so this is only temporary :-).

	ld -r -o uipc.o /etc/lddrv/ifile.wind *.o 

should give you what you want.




-- 
#################################		:alex.
#Disclamer: Anyone who agrees   #    University of Maryland Baltimore County
#with me deserves what they get.#	alex at umbc3.umbc.edu
#################################	alex%nerwin.UUCP at umbc3.umbc.edu



More information about the Comp.sys.att mailing list