Solved

Linux API??

Posted on 2000-03-21
10
453 Views
Last Modified: 2010-04-22
I know this is a stupid question but is there a Linux API? In win32 you can copy a file or create a directory using its API.  Can you do the same thing using a linux API?
0
Comment
Question by:snifong
  • 6
  • 2
  • 2
10 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2642442
Well yeah, there's the Posix API, the generic Unix API, and some Linux specific extensions. What you use is pretty dependent on what language you are using and what you are trying to do. A generic way would be to use system() to invoke a command to create a dir or copy a file.
0
 
LVL 1

Author Comment

by:snifong
ID: 2643373
C / C++
0
 
LVL 10

Accepted Solution

by:
rbr earned 30 total points
ID: 2643486
As jlevie mentioned. Linux use the Posix standard (Which can be used by Windows NT too)

For creating a directory e.g. use

mkdir (pathname, mode);


In general you can use any commands by the system command but you have to take care since this command starts a new process.

0
 
LVL 1

Author Comment

by:snifong
ID: 2644696
Where do I get it?
0
 
LVL 10

Expert Comment

by:rbr
ID: 2644714
Is part of any C/C++ installation. You don't need anythink else.

If you need a C/C++ compiler check

www.gnu.org
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 1

Author Comment

by:snifong
ID: 2645122
Standard in MS VC++ ?
0
 
LVL 1

Author Comment

by:snifong
ID: 2645128
Adjusted points from 25 to 30
0
 
LVL 1

Author Comment

by:snifong
ID: 2645129
Oops. Sorry. Ignore the last comment.  What about documentation?  Where can I find it.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2645208
The basic platform independent stuff is covered in any of the standard texts on C or C++. I particularly like "The C Programming Language" by Kernighan & Ritchie. The full sematics of all of the functions availble are also in the relevant man pages The sections your are probably most interested in are sections 2 & 3. Each man section has an intro page that describes its contents, Try "man 3 intro" to get a feel for it.
0
 
LVL 1

Author Comment

by:snifong
ID: 2647609
Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now