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

ioctl function call in OSKIT



Hi,

I have a problem in program writing and need help. I have a program running in
linux.And it works fine. I want to transplant it to oskit.But it does not work.
It is very simple, and mainly use ioctl function.
 
so = socket(AF_INET,SOCK_DGRAM,0);
re = ioctl(so,SIOCGIFCONF,&ifc);

the value of re is 0 when runs in Linux but in OSKIT it has the wrong value -1.
Anyone knows how this happen or how to solve it? And welcom any suggestion.
I will be very thankful.

Yao
 



_____________________________________________
首都在线--先进中国人的网上家园 http://www.263.net
免费邮箱 邮件杂志 签名邮件 邮件加密 邮件追身呼
搜索引擎 个人站点 在线游戏 网上聊天 网上挂号
金融王国 在线杀毒 跳蚤市场 软件下载 休闲娱乐