LinuxQuestions.org
Help answer threads with 0 replies.
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 03-24-2006, 03:44 AM   #1
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Rep: Reputation: 16
ioctl() Errno Numbers


Hi there,

I'm trying to run a testing program on a PPC platform running RHLE 8.0. The test program doesn't work propperly and complains with Errno=19... I man-ed errno but there is no description of these numbers (e.g. 19) only symbolyc error names. Does these names correspond in some way to the Errno number? If not what do these numbers mean? I realy can't find a description like:

errno 1 -> this and this
errno 2 -> this and that
errno 3 -> ...

etc.

Can someone shed some light on this issue?
 
Old 03-24-2006, 03:51 AM   #2
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Original Poster
Rep: Reputation: 16
Does it go like this?
  1. E2BIG Arg list too long
  2. EACCES Permission denied
  3. EAGAIN Resource temporarily unavailable
  4. EBADF Bad file descriptor
  5. EBADMSG Bad message
  6. EBUSY Resource busy
  7. ECANCELED Operation canceled
  8. ECHILD No child processes
  9. EDEADLK Resource deadlock avoided
  10. EDOM Domain error
  11. EEXIST File exists
  12. EFAULT Bad address
  13. EFBIG File too large
  14. EINPROGRESS Operation in progress
  15. EINTR Interrupted function call
  16. EINVAL Invalid argument
  17. EIO Input/output error
  18. EISDIR Is a directory
  19. EMFILE Too many open files
  20. EMLINK Too many links
  21. EMSGSIZE Inappropriate message buffer length
  22. ENAMETOOLONG Filename too long
  23. ENFILE Too many open files in system
  24. ENODEV No such device
  25. ENOENT No such file or directory
  26. ENOEXEC Exec format error
  27. ENOLCK No locks available
  28. ENOMEM Not enough space
  29. ENOSPC No space left on device
  30. ENOSYS Function not implemented
  31. ENOTDIR Not a directory
  32. ENOTEMPTY Directory not empty
  33. ENOTSUP Not supported
  34. ENOTTY Inappropriate I/O control operation
  35. ENXIO No such device or address
  36. EPERM Operation not permitted
  37. EPIPE Broken pipe
  38. ERANGE Result too large
  39. EROFS Read-only file system
  40. ESPIPE Invalid seek
  41. ESRCH No such process
  42. ETIMEDOUT Operation timed out
  43. EXDEV Improper link

... so errno 19 will be "Too many open files"?

Last edited by halturata; 03-24-2006 at 03:52 AM.
 
Old 03-24-2006, 06:06 AM   #3
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Original Poster
Rep: Reputation: 16
Weel, it does I guess.
 
Old 03-24-2006, 06:09 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
You can add:
Code:
#include <errno.h>
and for example when you detect an error you do
Code:
perror("read");
 
Old 08-06-2013, 02:59 PM   #5
rogerdpack
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
inaccurate?

somehow that other list didn't work for me, since I know I have 16 as "busy"

define EBUSY 16 /* Device or resource busy */

so beware...
 
Old 08-06-2013, 05:53 PM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,711

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
That is what AIX defines errno #16 to be. (from http://fossies.org/dox/glibc-2.17/aix-errno_8h.html)

The linux definitions are those already listed.
 
  


Reply


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
MySQL, errno 13 Ephracis Linux - Software 1 01-02-2005 08:11 PM
errno cynthia Linux - Networking 3 09-24-2004 02:58 PM
How to use errno sibtay Programming 4 09-24-2004 10:38 AM
errno.h, but it IS declared...... privateprimate Linux - Software 3 09-08-2004 08:37 PM
Adding numbers, break on non-numbers... Cruger Programming 1 03-22-2004 10:18 AM

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

All times are GMT -5. The time now is 07:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration