Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

un.h SUN_PATH incorrect

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA >> un.h SUN_PATH incorrect Page: [1]
Login
Message << Older Topic   Newer Topic >>
un.h SUN_PATH incorrect - Oct. 6, '06, 6:22:14 AM   
james_bray

 

Posts: 14
Joined: Dec. 8, '05,
From: Lincolnshire, UK
Status: offline
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
Post #: 1
RE: un.h SUN_PATH incorrect - Oct. 6, '06, 12:30:15 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
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...

(in reply to james_bray)
Post #: 2
RE: un.h SUN_PATH incorrect - Oct. 6, '06, 12:48:13 PM   
james_bray

 

Posts: 14
Joined: Dec. 8, '05,
From: Lincolnshire, UK
Status: offline
lol - thanks for the update.

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

James

< Message edited by james_bray -- Oct. 6, '06, 12:51:35 PM >

(in reply to Rodney)
Post #: 3
RE: un.h SUN_PATH incorrect - Oct. 12, '06, 12:35:38 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
*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.

(in reply to james_bray)
Post #: 4
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA >> un.h SUN_PATH incorrect Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031