ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In the "Linux Programmer's Manual" I find many names that represents a simple value, some of them are: O_RDWRCLONE_FILES, CLONE_FILES, O_RDWR, SIGCHLD, SIGSEGV...
But where to find which values they actually represent? How to find where they can be found (i.e. where they're defined)?
Thank you!
Last edited by Blue-Knight; 01-30-2014 at 05:50 AM.
The header files that define these constants live under the /usr/include directory. They will be installed as part of the developer packages for the libraries which implement the code. For example, glibc-headers has the header files for the standard Linux libraries.
The header files that define these constants live under the /usr/include directory. They will be installed as part of the developer packages for the libraries which implement the code. For example, glibc-headers has the header files for the standard Linux libraries.
Ah, there's no easy way then. I will have to search and then copy them one by one...
The good thing is that I will have to do this one time only.
Note: Specially O_RDWR comes from /usr/include/asm-generic/fcntl.h (But you are not supposed to include this file into your program -- 'man 2 open' tells you which headers you should include)
Note: Specially O_RDWR comes from /usr/include/asm-generic/fcntl.h (But you are not supposed to include this file into your program -- 'man 2 open' tells you which headers you should include)
I know, the problem is that I cannot simply include any of those files because I'm not using C. I have to know the value of all of them...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.