un.h SUN_PATH incorrect (Full Version)

All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA



Message


james_bray -> un.h SUN_PATH incorrect (Oct. 6, '06, 6:22:14 AM)

Hi,

I have been experiencing problems binding to unix sockets. After porting our application to Interix 5.2, I am receiving "invalid argument" errors at the console when attempting to bind.

I have narrowed the problem down to what I can only assume is a typo in /usr/include/sys/un.h

In this file, the "sun_path" field of sockaddr_un is set to a size of SUN_PATH. SUN_PATH is declared earlier in the file to be 14 characters. On all other platforms, including Interix 3.5, it is defined as 108.

Is there any reason it is so small in Interix 5.2?

James Bray
Badley Geoscience Limited




Rodney -> RE: un.h SUN_PATH incorrect (Oct. 6, '06, 12:30:15 PM)

I pointed this out to Microsoft before. I pointed it out to them during R2/5.2 beta.
The only reason for it to be at 14 was the magical appearance of the useless SCO utilities.
It should never have been changed.

In Vista, right now, it's set at 104...




james_bray -> RE: un.h SUN_PATH incorrect (Oct. 6, '06, 12:48:13 PM)

lol - thanks for the update.

I'm more interested in porting to Vista than W2k3 tbh, so it probably wont be an issue.

James




Rodney -> RE: un.h SUN_PATH incorrect (Oct. 12, '06, 12:35:38 PM)

*cough* just so I don't make the mistake again...
The value with Interix 3.5 was 104 bytes (not 108).
On the other Unix systems it's 104 as well.
With Interix/SUA 6.0 it's back to 104.




Page: [1]



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.016