Solved

Linux API??

Posted on 2000-03-21
10
460 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix / Linux grid computing 5 171
Linux "time" command output redirection 16 258
WiFi Router device supports GPON! 3 150
rolling back version of firefox 1 52
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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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