What functions are available for C/C++ on UNIX?

What functions are available for C/C++ on UNIX?

Post by g.. » Fri, 23 Mar 2001 06:16:19



How do I know what functions are available for C on UNIX.
I have some code that runs on Visual C++. It has the _finddata_t type.
When I try to compile it on UNIX platform, it burfs right there.
My question is -----> how do i find functions available on UNIX and the
explanation about what each function does?  

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts

 
 
 

What functions are available for C/C++ on UNIX?

Post by John Gord » Fri, 23 Mar 2001 06:47:33



> How do I know what functions are available for C on UNIX.
> I have some code that runs on Visual C++. It has the _finddata_t type.
> When I try to compile it on UNIX platform, it burfs right there.
> My question is -----> how do i find functions available on UNIX and the
> explanation about what each function does?  

use the "man" command.

on my particular system, all of those kinds of functions are in section
3c of the manual, so i can type:

  man -k 3c

and i get this kind of output:

ascftime        strftime (3c)   - convert date and time to string
asctime         ctime (3c)      - convert date and time to string
asctime_r       ctime (3c)      - convert date and time to string
assert          assert (3c)     - verify program assertion
atexit          atexit (3c)     - add program termination routine
atof            strtod (3c)     - convert string to double-precision number
atoi            strtol (3c)     - string conversion routines
atol            strtol (3c)     - string conversion routines
atoll           strtol (3c)     - string conversion routines
basename        basename (3c)   - return the last element of a path name
bcmp            bstring (3c)    - bit and byte string operations
bcopy           bstring (3c)    - bit and byte string operations
bindtextdomain  gettext (3c)    - message handling functions
bsd_signal      bsd_signal (3c) - simplified signal facilities
bsearch         bsearch (3c)    - binary search a sorted table
bstring         bstring (3c)    - bit and byte string operations
bzero           bstring (3c)    - bit and byte string operations
calloc          malloc (3c)     - memory allocator
catclose        catopen (3c)    - open/close a message catalog
catgets         catgets (3c)    - read a program message

i presume you could do something similar on your system.

---
"... What with you being his parents and all, I think that you could
be trusted not to shaft him."  -- Robert Chang, rec.games.board



 
 
 

What functions are available for C/C++ on UNIX?

Post by cLIeNUX us » Fri, 23 Mar 2001 11:56:40




>> How do I know what functions are available for C on UNIX.
>> I have some code that runs on Visual C++. It has the _finddata_t type.
>> When I try to compile it on UNIX platform, it burfs right there.
>> My question is -----> how do i find functions available on UNIX and the
>> explanation about what each function does?  

>use the "man" command.

Start with      man man

section 2 is usually syscalls, 3 is library calls.

It takes 2 commands to function on unix, man and apropos.

Rick Hohensee
www.clienux.com

 
 
 

What functions are available for C/C++ on UNIX?

Post by Scott Neugrosch » Fri, 23 Mar 2001 13:52:50



> How do I know what functions are available for C on UNIX.
> I have some code that runs on Visual C++. It has the _finddata_t type.
> When I try to compile it on UNIX platform, it burfs right there.
> My question is -----> how do i find functions available on UNIX and the
> explanation about what each function does?

>  -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
>   http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
>    NewsOne.Net prohibits users from posting spam.  If this or other posts


_finddata_t is a DOS/Windows-ism.  The equivalent stuff for Unix can be
found in

man opendir

 
 
 

What functions are available for C/C++ on UNIX?

Post by g.. » Sat, 24 Mar 2001 04:44:24


Thanks a lot.
But how did you know it? Is there a way by just looking for information
available in some libraries (????) to find this answer? How do I know that
the keyword to look for is opendir? It may sound easy to you, but how
somebody
that is not experienced on UNIX finds these things? Is there a way to use man
command to find available file i/o functions?




>> How do I know what functions are available for C on UNIX.
>> I have some code that runs on Visual C++. It has the _finddata_t type.
>> When I try to compile it on UNIX platform, it burfs right there.
>> My question is -----> how do i find functions available on UNIX and the
>> explanation about what each function does?

>>  -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web
-----
>>   http://newsone.net/ -- Free reading and anonymous posting to 60,000+
groups
>>    NewsOne.Net prohibits users from posting spam.  If this or other posts
>> made through NewsOne.Net violate posting guidelines, email


Quote:

>_finddata_t is a DOS/Windows-ism.  The equivalent stuff for Unix can be
>found in

>man opendir

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts

 
 
 

What functions are available for C/C++ on UNIX?

Post by Barry Margoli » Sat, 24 Mar 2001 04:59:45



>Thanks a lot.
>But how did you know it? Is there a way by just looking for information
>available in some libraries (????) to find this answer? How do I know that
>the keyword to look for is opendir? It may sound easy to you, but how
>somebody
>that is not experienced on UNIX finds these things? Is there a way to use man
>command to find available file i/o functions?

man -k word

will show all the man pages whose synopsis contains the word.

But I think the real answer for you is that you need to get a book on Unix
programming.  It should show how to do common things like reading
directories.

--

Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

What functions are available for C/C++ on UNIX?

Post by poin » Sat, 24 Mar 2001 07:13:38


probably years of trying to do that kind'o thang...

but more generically, some common sense and intuition ...
you know what you want to accomplish ? (Open a Folder and
enumerate file list)
you learn a bit of how unix system works { *terminology*,
architecture }
then you translate terminology and dig for info using {man,
apropos, find ....}

Folder ==> directory
Create ==> open
Read ==> read
Library ==> lib/archive
Dynamic Lib  ==> shared object/archive

man open
man directory
etc...

unix man pages are *terse* but *dense* and usually have all
the answers you need, a few hints to find related info and
no more

HTH


Quote:> Thanks a lot.
> But how did you know it? Is there a way by just looking
for information
> available in some libraries (????) to find this answer?
How do I know that
> the keyword to look for is opendir? It may sound easy to
you, but how
> somebody
> that is not experienced on UNIX finds these things? Is

there a way to use man
Quote:> command to find available file i/o functions?

 
 
 

What functions are available for C/C++ on UNIX?

Post by Fredrik Roube » Sat, 24 Mar 2001 23:17:11



> How do I know what functions are available for C on UNIX.

The Open Group has The Single UNIX Specification available for free on the
web. Just register yourself on this page:

http://www.opengroup.org/online-pubs?DOC=007908799&FORM=HTML

Grss // Fredrik Roubert

--


http://www.efd.lth.se/~d95fr/        CH-8003 Zrich

 
 
 

1. >>PW:C/C++ UNIX ANALYST/PROGRAMMER: Unix, Sun, Solaris 2.x, C/C++

Description

Our successful candidate must have 2+ years working experience with
and expertise in Sun Solaris, UNIX, C/C++ programming and analytical
problem solving skills. Working knowledge of Internet technologies
such as Java, HTTP, RDBMS/SQL, TCP/IP, and Routers is an asset.

The successful candidate will participate in the development of new
and existing Internetworking-based services and infrastructure. Tasks
include the evaluation and testing of hardware and software
technologies, documentation of system design and functional
specifications and software integration development in the area of
Internet services and service management.

The primary location is in Toronto with some travel to Ottawa or
Montreal.

The successful candidate will benefit with working on Internetworking
and Internet technologies and will work with existing and new
technologies and platforms. The employee will learn new skills in the
area of internetworking, design and architecture.

"Must Have" Skills

Unix, Sun, Solaris 2.x (2 years)
C/C++ (2 years)
Analytical and problem solving skills (1 year)

"Nice to Have" Skills

Oracle/Sybase
Programming in Java, HTTP, SQL/RDBMS
TCP/IP, NNTP.

Posting Date: 4/21/98
Location: Toronto, Ontario, Canada
Title: C/C++ Unix Analyst/Programmer
Technology: Unix, Sun, Solaris 2.x, C/C++, UNIX, Analytical and
problem solving skills
Industry: Telcommunications

Contact Info

Please be sure to include your FULL MAILING ADDRESS in your
submissions and quote BAC.DF.8011 in the subject field of your email.
Please submit resume as TEXT in body of email.

Contact Person: Staffing Consultant

We appreciate your interest in this position. If your skills strongly
match the above description, we will contact you promptly for an
interview.

Company General Address
Bell Canada
483 Bay Street, 2S-O
Toronto, Ontario
Canada M5G 2E1

Company Web Site: www.bell.ca


?

2. linux video problem

3. C++ class member function as a thread function.

4. how does init sent a "reboot" - it's not in the rcX scripts

5. why distinguish C++ function from C function?

6. Executing shell commands from a C++ program

7. How does c function invoke c++ function in shared object on RHL 6.2?

8. Need hints for building TIS toolkit under Linux

9. C functions calling C++ functions on Solaris

10. Help Unix GNU C++, ultoa function

11. Using Unix DLL's (dlopen) with C++ and virtual functions

12. Function Prototypes in C++ for UNIX System Calls

13. Unix C\C++ uppercase string function