Unix Technical Forum

How to obtain a list of all system call or library functions

This is a discussion on How to obtain a list of all system call or library functions within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, Is there a way to list all system calls or all functions in say libc or libsocket in ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 11:41 PM
mshetty
 
Posts: n/a
Default How to obtain a list of all system call or library functions

Hi,

Is there a way to list all system calls or all functions in say libc
or libsocket in AIX.

Basically I am looking for an equivalent of man -s 2 Intro or man -s 3
Intro on Solaris.

If the above is not available, is there any other way to obtain such a
listing.

Thanks and Regards,
M Shetty
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 11:42 PM
Jeff Trawick
 
Posts: n/a
Default Re: How to obtain a list of all system call or library functions

mshetty wrote:
> Hi,
>
> Is there a way to list all system calls or all functions in say libc
> or libsocket in AIX.


table of contents in the AIX tech reference manual???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 11:42 PM
Mike
 
Posts: n/a
Default Re: How to obtain a list of all system call or library functions

In article <bfbb8fd4.0406030745.61c52ef2@posting.google.com >, mshetty wrote:
> Hi,
>
> Is there a way to list all system calls or all functions in say libc
> or libsocket in AIX.
>
> Basically I am looking for an equivalent of man -s 2 Intro or man -s 3
> Intro on Solaris.
>
> If the above is not available, is there any other way to obtain such a
> listing.
>
> Thanks and Regards,
> M Shetty


$ nm /usr/lib/libc.a | grep ' T '
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 11:44 PM
mshetty
 
Posts: n/a
Default Re: How to obtain a list of all system call or library functions

Mike <mikee@mikee.ath.cx> wrote in message news:<10buobep4dg5na6@corp.supernews.com>...
> In article <bfbb8fd4.0406030745.61c52ef2@posting.google.com >, mshetty wrote:
> > Hi,
> >
> > Is there a way to list all system calls or all functions in say libc
> > or libsocket in AIX.
> >
> > Basically I am looking for an equivalent of man -s 2 Intro or man -s 3
> > Intro on Solaris.
> >
> > If the above is not available, is there any other way to obtain such a
> > listing.
> >
> > Thanks and Regards,
> > M Shetty

>
> $ nm /usr/lib/libc.a | grep ' T '


Thanks a lot for the reply.

Any inputs on how I could do it for system calls?

Another thing that I observed was that most calls that appear as
system calls on other platforms are present in libc on AIX.

I could only find 2 or 3 system calls on the net.. getmsg, putmsg,
putpmsg etc... Are there more?

Besides I couldn't find the man pages... If I could get some help in
locating the Man pages of Section 2...

Thanks and Regards,
M Shetty
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-04-2008, 11:47 PM
Gary R. Hook
 
Posts: n/a
Default Re: How to obtain a list of all system call or library functions

mshetty wrote:
> Any inputs on how I could do it for system calls?


/usr/lib/syscalls.exp for both 32-bit and 64-bit system calls.

> Another thing that I observed was that most calls that appear as
> system calls on other platforms are present in libc on AIX.


Because on AIX the system call interface is at the system library
layer, _not_ the kernel.

> Besides I couldn't find the man pages... If I could get some help in
> locating the Man pages of Section 2...


We don't have a section 2. We have functions, and we have commands,
and functions are spread out through several locations. Documentation
can be found here:

http://www-1.ibm.com/servers/aix/library/

--
Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
__________________________________________________ ______________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:59 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com