Re: List of System Calls

2016-01-29 Thread Reco
Hi.

On Fri, Jan 29, 2016 at 12:38:22PM +0530, Akhil Krishnan S wrote:
> One more doubt. How to locate its definition from terminal?

Installing manpages-dev and querying appropriate manpage from section 2
usually works for me.
Sadly, not all system calls are covered by manpages.
In such cases I usually refer to kernel's documentation - linux-doc.

Reco



Re: List of System Calls

2016-01-28 Thread Akhil Krishnan S
It works. Thanks Reco.
On Jan 28, 2016 22:19, "Reco"  wrote:

> Hi.
>
> On Thu, Jan 28, 2016 at 09:04:39PM +0530, Akhil Krishnan S wrote:
> > Hi List.
> > Any command to get list all Syscalls in Linux with corresponding numbers?
>
> This should get it all:
>
> grep __NR /usr/include/$(dpkg-architecture -q
> DEB_BUILD_MULTIARCH)/asm/unistd*
>
> Requires appropriate linux-headers and dpkg-dev installed.
>
> Reco
>
>


List of System Calls

2016-01-28 Thread Akhil Krishnan S
Hi List.
Any command to get list all Syscalls in Linux with corresponding numbers?

Thanks in advance,

Akhil


Re: List of System Calls

2016-01-28 Thread Reco
Hi.

On Thu, Jan 28, 2016 at 09:04:39PM +0530, Akhil Krishnan S wrote:
> Hi List.
> Any command to get list all Syscalls in Linux with corresponding numbers?

This should get it all:

grep __NR /usr/include/$(dpkg-architecture -q DEB_BUILD_MULTIARCH)/asm/unistd*

Requires appropriate linux-headers and dpkg-dev installed.

Reco



Re: List of System Calls

2016-01-28 Thread Akhil Krishnan S
One more doubt. How to locate its definition from terminal?
On Jan 29, 2016 11:28, "Akhil Krishnan S"  wrote:

> It works. Thanks Reco.
> On Jan 28, 2016 22:19, "Reco"  wrote:
>
>> Hi.
>>
>> On Thu, Jan 28, 2016 at 09:04:39PM +0530, Akhil Krishnan S wrote:
>> > Hi List.
>> > Any command to get list all Syscalls in Linux with corresponding
>> numbers?
>>
>> This should get it all:
>>
>> grep __NR /usr/include/$(dpkg-architecture -q
>> DEB_BUILD_MULTIARCH)/asm/unistd*
>>
>> Requires appropriate linux-headers and dpkg-dev installed.
>>
>> Reco
>>
>>


Re: List of System Calls

2016-01-28 Thread Hugo Vanwoerkom

Reco wrote:

Hi.

On Thu, Jan 28, 2016 at 09:04:39PM +0530, Akhil Krishnan S wrote:

Hi List.
Any command to get list all Syscalls in Linux with corresponding numbers?


This should get it all:

grep __NR /usr/include/$(dpkg-architecture -q DEB_BUILD_MULTIARCH)/asm/unistd*

Requires appropriate linux-headers and dpkg-dev installed.



Neat!

Hugo