Linux - NewbieThis 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
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.
excellent answer, old friend pixellany~~ might need some more help from you shortly.
well maybe I can ask right now.
Can we find the source code of just about any UNIX command? and integrate into our C programs? or... source code of programs equivalent to well-known UNIX commands?
excellent answer, old friend pixellany~~ might need some more help from you shortly.
well maybe I can ask right now.
Can we find the source code of just about any UNIX command? and integrate into our C programs? or... source code of programs equivalent to well-known UNIX commands?
pixel you are da (wo)man
A good place to get many unix command is busybox
(clean and compact code!)
Can we find the source code of just about any UNIX command?
Yes and no, it depends on the command version, for example you can find the source code of the GNU version as they are free, and so it is for the system calls: if you're using *BSD, OpenSolaris or Linux, you can find system calls source codes, but you can't for proprietary UNIX version like AIX, Solaris, HP-UX...
Quote:
and integrate into our C programs? or... source code of programs equivalent to well-known UNIX commands?
C is the UNIX native language... The implication is that you'll find a C library for almost all UNIX standard utilities, whatever they're closed or not. I'm mean, you don't need to access the function source code to call it in your C program, you only need a library to link on and a header file. If it wasn't the case nobody won't be able to program anything on a closed sources OS (excepting the OS owner)... The difficulties are to find the C interface regarding what you want to do, google is your friend here, and write C code portable along different UNIX flavor, if you need to, since sometimes functions interface could slightly differe...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.