LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2012, 04:33 AM   #1
Tinyspark
LQ Newbie
 
Registered: May 2012
Posts: 15

Rep: Reputation: Disabled
Value of error code 9 in sendmsg function


Hi,
While running ldapsearch utility in Linux, my application fails in the call to "sendmsg" function and returns an error code 9. Does someone know what error code 9 represents?
 
Old 06-08-2012, 07:09 PM   #2
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Is 9 the errno value, or the return code from the sendmsg function?
Is there no error message?

sendmsg() should return the number of characters it sent, if a positive value.
EBADF, a bad file descriptor would correspond to an errno of 9, if that's the sort of error code you mean,
and if the code isn't from a different protocol layer.
 
Old 06-11-2012, 02:05 AM   #3
Tinyspark
LQ Newbie
 
Registered: May 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hi kakaka, the return value of sendmsg function is -1 and 9 is the errno value.
 
  


Reply

Tags
errors, ldapsearch, linux


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
Invalid argument runtime error on sendmsg(). JohnHubert Linux - Networking 3 08-30-2010 10:44 AM
sendmsg: Operation not permitted error on wireless nic after failed routing attempt feitingen Linux - Wireless Networking 1 04-03-2007 10:16 PM
RPC:sendmsg returned error 101 Corrado Linux - General 1 09-12-2006 05:25 PM
error function in c code shams Programming 3 08-06-2004 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 AM.

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