Solved

Linux API??

Posted on 2000-03-21
10
461 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

 
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
 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

705 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