Chapter 2 : System calls table

S.No

Name

p1

p2

p3

p4

p5

p6

Program

1

read

fd

buf

count

2

write

fd

buf

count

3

open

path

flags

mode

4

close

fd

5

stat

path

buf

6

fstat

fd

buf

7

lstat

path

buf

8

poll

fds

nfds

timeout

9

lseek

fd

offset

whence

10

mmap

addr

length

prot

flags

fd

offset

11

mprotect

addr

length

prot

12

munmap

addr

length

13

brk

addr

14

rt_sigaction

signum

action

old_act

15

rt_sigprocmask

how

set

old_set

16

rt_sigreturn

unused

17

ioctl

fd

request

18

pread64

fd

buf

count

offset

19

pwrite64

fd

buf

count

offset

20

readv

fd

iov

iocnt

21

writev

fd

iov

iocnt

22

access

path

mode

23

select

nfds

readfds

writefds

exceptfds

timeout

24

sched_yield

25

mremap

old_addr

old_size

new_size

flags

26

msync

addr

length

flags

27

mincore

addr

length

vec

28

madvise

addr

length

advice

29

shmget

key

size

shmflag

30

shmat

shmid

shmaddr

shmflag

31

shmctl

shmid

cmd

buf

32

dup

oldfd

33

dup2

oldfd

newfd

34

pause

35

nanosleep

treq

trem

35

getitimer

which

cur_val

36

alarm

secs

37

setitimer

which

new_val

old_val

38

getpid

39

sendfile

out_fd

in_fd

offset

count

40

socket

domain

type

protocol

41

connect

sockfd

addr

addrlen

42

accept

sockfd

addr

addrlen

43

sendto

sockfd

buf

len

flags

44

recvfrom

sockfd

buf

len

flags

src_addr

addr_len

45

sendmsg

sockfd

msg

flags

45

recvmsg

sockfd

msg

flags

46

shutdown

sockfd

how

47

bind

sockfd

addr

addrlen

48

listen

sockfd

backlog

49

getsockname

sockfd

addr

addrlen

50

getpeername

sockfd

addr

addrlen

51

socketpair

domain

name

protocol

sv[2]

52

setsockopt

sockfd

level

optname

optval

optlen

53

getsockopt

sockfd

level

optname

optval

optlen

54

clone

fn

stack

flags

arg

55

fork

56

vfork

57

execve

path

argv

envp

58

exit

status

59

wait4

pid

wstatus

options

rusage

60

kill

pid

sig

61

getppid

62

uname

buf

63

semget

key

nsems

semflg

64

semop

semid

sops

n_sops

65

semctl

semid

semnum

cmd

66

shmdt

shmaddr

67

msgget

key

msgflag

68

msgsnd

msqid

msgp

msgsz

msgflg

69

msgrcv

msqid

msgp

msgsz

msgtype

msgflg

70

msgctl

msqid

cmd

buf

71

fcntl

fd

cmd

72

flock

fd

oper

73

fsync

fd

74

fdatasync

fd

75

truncate

path

length

76

ftruncate

fd

length

77

getdents

fd

dirp

count

78

getcwd

buf

size

79

chdir

path

80

fchdir

fd

81

rename

oldpath

newpath

82

mkdir

path

mode

83

rmdir

path

84

creat

path

mode

85

link

oldpath

newpath

86

unlink

path

87

symlink

oladpath

newpath

88

readlink

path

buf

bufsz

89

chmod

path

mode

90

fchmod

fd

mode

91

chown

path

owner

group

92

fchown

fd

owner

group

93

lchown

path

owner

group

94

umask

mask

95

gettimeofday

tv

tz

96

getrlimit

resource

rlimit

97

getrusage

who

usage

98

sysinfo

info

99

times

buf

100

ptrace

request

pid

addr

data

101

getuid

102

syslog

type

bufp

len

103

getgid

104

setuid

uid

105

setgid

gid

106

geteuid

107

getegid

108

setpgid

pid

pgid

109

getppid

pid

110

getpgrp

111

setsid

112

setreuid

ruid

euid

113

setregid

rgid

egid

114

getgroups

size

list

115

setgroups

size

list

116

setresuid

ruid

euid

suid

117

setresgid

rgid

egid

sgid

118

getresuid

ruid

euid

suid

119

getresgid

rgid

egid

sgid

120

getpgid

pid

121

setfsuid

fsuid

122

setfsgid

fsgid

123

getsid

pid

124

capget

hdrp

datap

125

capset

hdrp

datap

126

rt_sigpending

set

127

rt_sigtimedwait

set

info

timeout

128

rt_sigqueueinfo

tgid

sig

info

129

rt_sigsuspend

mask

130

sigaltstack

ss

oss

131

utime

file

times

132

mknod

path

mode

dev

133

uselib

library

134

personality

persona

135

ustat

dev

ubuf

136

statfs

path

buf

137

fstatfs

fd

buf

138

sysfs

139

getpriority

which

who

140

setpriority

which

who

prio

141

sched_setparam

pid

param

142

sched_getparam

pid

param

143

sched_setscheduler

pid

policy

param

144

sched_getscheduler

pid

145

sched_get_priority_max

policy

146

sched_get_priority_min

policy

147

sched_rr_get_interval

pid

tp

148

mlock

addr

len

149

munlock

addr

len

150

mlockall

flags

151

munlockall

152

vhangup

153

modify_ldt

func

ptr

bytecount

154

pivot_root

new_root

put_old

155

prctl

option

arg2

arg3

arg4

arg5

156

arch_prctl

code

addr

157

adjtimex

buf

158

setrlimit

resource

rlim

159

chroot

path

160

sync

161

acct

file

162

settimeofday

tv

tz

163

mount

source

target

fs_type

mflags

data

164

umount2

target

flags

165

swapon

path

swapflgs

166

swapoff

path

167

reboot

magic

magic2

cmd

arg

168

sethostname

name

len

169

setdomainname

name

len

170

iopl

level

171

ioperm

from

num

turnon

172

init_module

m_image

len

param_val

173

delete_module

name

flags

174

quotactl

cmd

special

id

addr

175

gettid

176

readahead

fd

offset

count

177

setxattr

path

name

value

size

flags

178

lsetxattr

path

name

value

size

flags

179

fsetxattr

fd

name

value

size

flags

180

getxattr

path

name

value

size

181

lgetxattr

path

name

value

size

182

fgetxattr

fd

name

value

size

183

listxattr

path

list

size

184

llistxattr

path

list

size

185

flistxattr

fd

list

size

186

removexattr

path

name

187

lremovexattr

path

name

188

fremovexattr

fd

name

189

tkill

tid

sig

190

time

t

191

futex

uaddr

op

val

timeout

uaddr2

val3

192

sched_setaffinity

pid

cpusetsz

mask

193

sched_getaffinity

pid

cpusetsz

mask

194

set_thread_area

u_info

195

io_setup

nr_evts

ctx_idp

196

io_destroy

ctx_id

197

io_getevents

ctx_id

min_nr

nr

evt_strct

timeout

198

io_submit

ctx_id

nrstruct

iocbpp

199

io_cancel

ctx_id

iocb

result

200

get_thread_area

u_info

201

lookup_dcookie

cookie

buffer

length

202

epoll_create

size

203

getdents64

fd

dirp

count

204

set_tid_address

tidptr

205

restart_syscall

206

semtimedop

semid

sops

nsops

timeout

207

fadvise64

fd

offset

length

advice

208

timer_create

clockid

sevp

timerid

209

timer_settime

timerid

flags

new_val

old_val

210

timer_gettime

timerid

cur_val

211

timer_getoverrun

timerid

212

timer_delete

timerid

213

clock_settime

clockid

tp

214

clock_gettime

clockid

tp

215

clock_getres

clockid

res

216

clock_nanosleep

clockid

flags

request

remain

217

exit_group

status

218

epoll_wait

epfd

events

maxevents

timeout

219

epoll_ctl

epfd

op

fd

event

220

tgkill

tgid

tid

sig

221

utimes

filename

times[2]

223

mbind

addr

len

mode

nodemask

maxnode

flags

224

set_mempolicy

mode

nodemask

maxnode

225

get_mempolicy

mode

nodemask

maxnode

addr

flags

226

mq_open

name

oflag

mode

attr

227

mq_unlink

name

228

mq_timedsend

mqdes

msg_ptr

msg_len

msg_prio

abs_to

229

mq_timedreceive

mqdes

msg_ptr

msg_len

msg_prio

230

mq_notify

mqdes

sevp

231

kexec_load

entry

nr_segs

segs

flags

232

waitid

idtype

id

infop

options

233

add_key

type

desc

payload

plen

keyring

234

request_key

type

desc

callinfo

keyring

235

keyctl

cmd

236

ioprio_set

which

who

ioprio

237

ioprio_get

which

who

238

inotify_init

239

inotify_add_watch

fd

path

mask

240

inotify_rm_watch

fd

wd

241

migrate_pages

pid

maxnode

old_nodes

new_nodes

242

openat

dirfd

pathname

flags

mode

243

mkdirat

dirfd

pathname

mode

244

mknodat

dirfd

pathname

mode

dev

245

fchownat

dirfd

pathname

owner

group

flags

246

unlinkat

dirfd

pathname

flags

247

renameat

olddirfd

oldpath

newdirfd

newpath

248

linkat

olddirfd

oldpath

newdirfd

newpath

flags

249

symlinkat

target

newdirfd

linkpath

250

readlinkat

dirfd

pathname

buf

bufsize

251

fchmodat

dirfd

pathname

mode

flags

252

faccessat

dirfd

pathname

mode

flags

253

pselect6

nfds

readfds

writefds

exceptfds

timeout

sigmask

254

ppoll

fds

nfds

to_ts

sigmask

255

unshare

flags

256

set_robust_list

head

len

257

get_robust_list

pid

head_ptr

len_ptr

258

splice

fd_in

off_in

fd_out

off_out

len

flags

259

tee

fd_in

fd_out

len

flags

260

sync_file_range

fd

offset

nbytes

flags

261

vmsplice

fd

iov

nr_segs

flags

262

move_pages

pid

count

pages

nodes

status

flags

263

utimensat

dirfd

pathname

times[2]

flags

264

epoll_pwait

epfd

events

maxevents

timeout

sigmask

265

signalfd

fd

mask

flags

266

timerfd_create

clockid

flags

267

eventfd

initval

flags

268

fallocate

fd

mode

offset

len

269

timerfd_settime

fd

flags

new_val

old_val

270

timerfd_gettime

fd

cur_val

271

accept4

sockfd

addr

addrlen

flags

272

signalfd4

fd

mask

flags

273

eventfd2

initval

274

epoll_create1

flags

275

dup3

oldfd

newfd

flags

276

pipe2

pipefd[2]

flags

277

inotify_init1

flags

278

preadv

fd

iov

iovcnt

offset

279

pwritev

fd

iov

iovcnt

offset

280

rt_tgsigqueueinfo

tgid

tid

sig

info

281

perf_event_open

attr

pid

cpu

group_fd

flags

282

recvmmsg

sockfd

msgvec

vlen

flags

timeout

283

fanotify_init

flags

evt_flags

284

fanotify_mark

fn_fd

flags

mask

dirfd

pathname

285

name_to_handle_at

dirfd

pathname

handle

mountid

flags

286

open_by_handle_at

mount_fd

handle

flags

287

syncfs

fd

288

sendmmsg

sockfd

msgvec

vlen

flags

289

setns

fd

nstype

290

getcpu

cpu

node

tcache

291

process_vm_readv

pid

local_iov

liovcnt

remot_iov

riovcnt

flags

292

process_vm_writev

pid

local_iov

liovcnt

remot_iov

riovcnt

flags

293

kcmp

pid1

pid2

type

idx1

idx2

294

finit_module

fd

param_val

flags