Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-07-2008, 07:21 PM   #1
Registered: Jul 2007
Posts: 52

Rep: Reputation: 0
bind() is failing with errno=EADDRNOTAVAIL (99); the man page forbids this

I have a tiny C program in which a bind() system call is failing
with errno=99, which is EADDRNOTAVAIL according to asm-generic/errno.h.
The bind(2) manual page, however, only allows errno values of
EACCES, EBADF, EINVAL, and ENOTSOCK for Internet-domain sockets.
What's going on? I'm running SuSe 10.0, though that shouldn't be relevant.
I don't want to know why the bind() system call is failing, incidentally
-- I know why it is failing -- I want to know why it is setting errno to
a value undocumented in the manual page.

Please send replies to jay at, or post them here, or both.
Thank you in advance.
Old 05-09-2008, 04:20 AM   #2
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
You are trying to bind to an address that does not exist.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get out of a man page? christianunix Linux - Newbie 4 10-17-2007 09:37 PM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 09:52 AM
Is there a man page on how to use man page? jdruin Linux - Software 2 10-30-2004 10:29 AM
getting out of a man page! naijaguy Linux - Newbie 2 08-13-2004 10:28 PM
man page? chandan Linux - Newbie 1 07-16-2003 08:31 PM

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration