9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* ioctl
@ 1996-04-15 17:41 Scott
  0 siblings, 0 replies; 7+ messages in thread
From: Scott @ 1996-04-15 17:41 UTC (permalink / raw)


Min Huang <mhuang@CS.Cornell.EDU> writes:
| I am porting a system built on the top of Unix to Plan9.
| Because the system use ioctle to get network address, network configuration,
| I find that plan9 doesn't support SIOCGIFADDR and SIOCFIFCONF.
| Could you please tell me how I can modify the plan9 to make it support them.

% cat '#P/ipifc'

The mechanism in libc, reading /net/tcp/0/local doesn't work very well
for multihomed hosts, since it returns just one number.  Moreover, all
the */local files return the address of the first interface, rather
than the one the connection is actually on.  That makes e.g. icmpfs do
the wrong thing if one of the interfaces doesn't have an advertised
route.







^ permalink raw reply	[flat|nested] 7+ messages in thread

* ioctl
@ 1996-05-05 18:49 Min
  0 siblings, 0 replies; 7+ messages in thread
From: Min @ 1996-05-05 18:49 UTC (permalink / raw)


Is it possible to mix plan9 and unix programs together?
What I want to do is to use "ipinfo()" in plan9 to get all the network 
information and put into a common data structure. and another unix program 
can access the data structure to process the information.
Because both programs eventually will be compiled into .k file.
then you can use kl in plan9 to get executable file.

I am wondering if this will work.
____________________________________________________________________________

you means 
	pcc filename.c -math will work.

Thank you very much









^ permalink raw reply	[flat|nested] 7+ messages in thread

* ioctl
@ 1996-05-05 18:17 Scott
  0 siblings, 0 replies; 7+ messages in thread
From: Scott @ 1996-05-05 18:17 UTC (permalink / raw)


Min Huang <mhuang@cs.cornell.edu> writes:
| I tried to do the following:
| 	pcc filename.c -lmath 
| in Plan9.

Just omit the linker flag.  Plan 9 header files contain a pragma to
tell the linker to load the library.







^ permalink raw reply	[flat|nested] 7+ messages in thread

* ioctl
@ 1996-05-05 18:11 Gary
  0 siblings, 0 replies; 7+ messages in thread
From: Gary @ 1996-05-05 18:11 UTC (permalink / raw)


Min Huang writes (again):
>I tried to do the following:
>	pcc filename.c -lmath 
>in Plan9.
>	But the compiler told me that it can not find library file.
>Could you please tell me how to do the same thing in Plan9?
>Thank you very much

Try pcc -P filename.c and _read_ the file produced.  If there's anything
you don't understand in the output, please _do_ hesitate to ask a
question until you've read the relevant documentation.








^ permalink raw reply	[flat|nested] 7+ messages in thread

* ioctl
@ 1996-05-05 17:50 Min
  0 siblings, 0 replies; 7+ messages in thread
From: Min @ 1996-05-05 17:50 UTC (permalink / raw)


I tried to do the following:
	pcc filename.c -lmath 
in Plan9.
	But the compiler told me that it can not find library file.
Could you please tell me how to do the same thing in Plan9?
Thank you very much






^ permalink raw reply	[flat|nested] 7+ messages in thread

* ioctl
@ 1996-04-15 17:45 Boyd
  0 siblings, 0 replies; 7+ messages in thread
From: Boyd @ 1996-04-15 17:45 UTC (permalink / raw)


    From: Min Huang <mhuang@CS.Cornell.EDU>

    I am porting a system built on the top of Unix to Plan9.
    Because the system use ioctle to get network address, network configuration,
    I find that plan9 doesn't support SIOCGIFADDR and SIOCFIFCONF.
    Could you please tell me how I can modify the plan9 to make it support them.

i think you'll find the idea is not to modify plan 9, but your system.
getting rid of ioctl was a feature.






^ permalink raw reply	[flat|nested] 7+ messages in thread

* ioctl
@ 1996-04-15 15:11 Min
  0 siblings, 0 replies; 7+ messages in thread
From: Min @ 1996-04-15 15:11 UTC (permalink / raw)


I am porting a system built on the top of Unix to Plan9.
Because the system use ioctle to get network address, network configuration,
I find that plan9 doesn't support SIOCGIFADDR and SIOCFIFCONF.
Could you please tell me how I can modify the plan9 to make it support them.

Thank you very much

Stanley






^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1996-05-05 18:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-15 17:41 ioctl Scott
  -- strict thread matches above, loose matches on Subject: below --
1996-05-05 18:49 ioctl Min
1996-05-05 18:17 ioctl Scott
1996-05-05 18:11 ioctl Gary
1996-05-05 17:50 ioctl Min
1996-04-15 17:45 ioctl Boyd
1996-04-15 15:11 ioctl Min

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).