FreeBSD Bugzilla – Attachment 178382 Details for
Bug 214885
[patch] add missing system calls to truss
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
bigger patch to usr.sbin/truss/syscalls.c
syscalls.c.2.patch (text/plain), 6.09 KB, created by
Jonathan de Boyne Pollard
on 2016-12-29 17:33:32 UTC
(
hide
)
Description:
bigger patch to usr.sbin/truss/syscalls.c
Filename:
MIME Type:
Creator:
Jonathan de Boyne Pollard
Created:
2016-12-29 17:33:32 UTC
Size:
6.09 KB
patch
obsolete
>diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c >index f473be4..d479d0d 100644 >--- a/usr.bin/truss/syscalls.c >+++ b/usr.bin/truss/syscalls.c >@@ -113,22 +113,33 @@ static struct syscall syscalls[] = { > { .name = "getsid", .ret_type = 1, .nargs = 1, > .args = { { Int, 0 } } }, > { .name = "getuid", .ret_type = 1, .nargs = 0 }, >+ { .name = "issetugid", .ret_type = 1, .nargs = 0 }, > { .name = "readlink", .ret_type = 1, .nargs = 3, > .args = { { Name, 0 } , { Readlinkres | OUT, 1 }, { Int, 2 } } }, >+ { .name = "dup", .ret_type = 1, .nargs = 1, >+ .args = { { Int, 0 } } }, >+ { .name = "dup2", .ret_type = 1, .nargs = 2, >+ .args = { { Int, 0 }, { Int, 1 } } }, > { .name = "lseek", .ret_type = 2, .nargs = 3, > .args = { { Int, 0 }, { Quad, 1 + QUAD_ALIGN }, { Whence, 1 + QUAD_SLOTS + QUAD_ALIGN } } }, > { .name = "linux_lseek", .ret_type = 2, .nargs = 3, > .args = { { Int, 0 }, { Int, 1 }, { Whence, 2 } } }, >+ { .name = "posix_fadvise", .ret_type = 1, .nargs = 4, >+ .args = { { Int, 0 }, { Quad, 1 + QUAD_ALIGN }, { Quad, 1 + QUAD_SLOTS + QUAD_ALIGN }, { Int, 1 + 2 * (QUAD_SLOTS + QUAD_ALIGN) } } }, > { .name = "mmap", .ret_type = 2, .nargs = 6, > .args = { { Ptr, 0 }, { Int, 1 }, { Mprot, 2 }, { Mmapflags, 3 }, { Int, 4 }, { Quad, 5 + QUAD_ALIGN } } }, > { .name = "linux_mkdir", .ret_type = 1, .nargs = 2, > .args = { { Name | IN, 0} , {Int, 1}}}, > { .name = "mprotect", .ret_type = 1, .nargs = 3, > .args = { { Ptr, 0 }, { Int, 1 }, { Mprot, 2 } } }, >+ { .name = "openat", .ret_type = 1, .nargs = 4, >+ .args = { { Int, 0 }, { Name | IN, 1 } , { Open, 2 }, { Octal, 3 } } }, > { .name = "open", .ret_type = 1, .nargs = 3, > .args = { { Name | IN, 0 } , { Open, 1 }, { Octal, 2 } } }, > { .name = "mkdir", .ret_type = 1, .nargs = 2, > .args = { { Name, 0 } , { Octal, 1 } } }, >+ { .name = "mkdirat", .ret_type = 1, .nargs = 3, >+ .args = { { Int, 0 }, { Name, 1 }, { Octal, 2 } } }, > { .name = "linux_open", .ret_type = 1, .nargs = 3, > .args = { { Name, 0 }, { Hex, 1 }, { Octal, 2 } } }, > { .name = "close", .ret_type = 1, .nargs = 1, >@@ -137,6 +148,8 @@ static struct syscall syscalls[] = { > .args = { { Name, 0 }, { Name, 1 } } }, > { .name = "unlink", .ret_type = 0, .nargs = 1, > .args = { { Name, 0 } } }, >+ { .name = "unlinkat", .ret_type = 0, .nargs = 3, >+ .args = { { Int, 0 }, { Name, 1 }, { Int, 2 } } }, > { .name = "chdir", .ret_type = 0, .nargs = 1, > .args = { { Name, 0 } } }, > { .name = "chroot", .ret_type = 0, .nargs = 1, >@@ -145,6 +158,12 @@ static struct syscall syscalls[] = { > .args = { { Name, 0 }, { Octal, 1 }, { Int, 3 } } }, > { .name = "chmod", .ret_type = 0, .nargs = 2, > .args = { { Name, 0 }, { Octal, 1 } } }, >+ { .name = "lchmod", .ret_type = 0, .nargs = 2, >+ .args = { { Name, 0 }, { Octal, 1 } } }, >+ { .name = "fchmod", .ret_type = 0, .nargs = 2, >+ .args = { { Int, 0 }, { Octal, 1 } } }, >+ { .name = "fchmodat", .ret_type = 0, .nargs = 4, >+ .args = { { Int, 0 }, { Name, 1 }, { Octal, 2 }, { Int, 3 } } }, > { .name = "chown", .ret_type = 0, .nargs = 3, > .args = { { Name, 0 }, { Int, 1 }, { Int, 2 } } }, > { .name = "linux_stat64", .ret_type = 1, .nargs = 3, >@@ -153,8 +172,12 @@ static struct syscall syscalls[] = { > .args = { { Name, 0 }, { Name, 1 }, { Int, 2 }, { Ptr, 3 } } }, > { .name = "umount", .ret_type = 0, .nargs = 2, > .args = { { Name, 0 }, { Int, 2 } } }, >+ { .name = "getdirentries", .ret_type = 1, .nargs = 4, >+ .args = { { Int, 0 }, { BinString | OUT, 1 }, { Int, 2 }, { Ptr, 3 } } }, > { .name = "fstat", .ret_type = 1, .nargs = 2, > .args = { { Int, 0 }, { Stat | OUT , 1 } } }, >+ { .name = "fstatat", .ret_type = 1, .nargs = 4, >+ .args = { { Int, 0 }, { Name | IN, 1 }, { Stat | OUT, 2 }, { Int, 3 } } }, > { .name = "stat", .ret_type = 1, .nargs = 2, > .args = { { Name | IN, 0 }, { Stat | OUT, 1 } } }, > { .name = "lstat", .ret_type = 1, .nargs = 2, >@@ -165,6 +188,8 @@ static struct syscall syscalls[] = { > .args = { { Name, 0 }, { Int, 1 }}}, > { .name = "linux_newfstat", .ret_type = 1, .nargs = 2, > .args = { { Int, 0 }, { Ptr | OUT, 1 } } }, >+ { .name = "pwrite", .ret_type = 1, .nargs = 4, >+ .args = { { Int, 0 }, { BinString | IN, 1 }, { Int, 2 }, { Quad, 3 + QUAD_ALIGN } } }, > { .name = "write", .ret_type = 1, .nargs = 3, > .args = { { Int, 0 }, { BinString | IN, 1 }, { Int, 2 } } }, > { .name = "ioctl", .ret_type = 1, .nargs = 3, >@@ -223,6 +248,7 @@ static struct syscall syscalls[] = { > .args = { { Int, 0 }, { Itimerval, 1 } , { Itimerval | OUT, 2 } } }, > { .name = "kse_release", .ret_type = 0, .nargs = 1, > .args = { { Timespec, 0 } } }, >+ { .name = "kqueue", .ret_type = 0, .nargs = 0 }, > { .name = "kevent", .ret_type = 0, .nargs = 6, > .args = { { Int, 0 }, { Kevent, 1 }, { Int, 2 }, { Kevent | OUT, 3 }, { Int, 4 }, { Timespec, 5 } } }, > { .name = "_umtx_lock", .ret_type = 0, .nargs = 1, >@@ -259,6 +285,8 @@ static struct syscall syscalls[] = { > .args = { { Name | IN, 0 }, { Pathconf, 1 } } }, > { .name = "pipe", .ret_type = 1, .nargs = 1, > .args = { { Ptr, 0 } } }, >+ { .name = "pipe2", .ret_type = 1, .nargs = 2, >+ .args = { { Ptr, 0 }, { Int, 1 } } }, > { .name = "truncate", .ret_type = 1, .nargs = 3, > .args = { { Name | IN, 0 }, { Int | IN, 1 }, { Quad | IN, 2 } } }, > { .name = "ftruncate", .ret_type = 1, .nargs = 3, >@@ -267,12 +295,16 @@ static struct syscall syscalls[] = { > .args = { { Int | IN, 0 }, { Signal | IN, 1 } } }, > { .name = "munmap", .ret_type = 1, .nargs = 2, > .args = { { Ptr, 0 }, { Int, 1 } } }, >+ { .name = "pread", .ret_type = 1, .nargs = 4, >+ .args = { { Int, 0 }, { BinString | OUT, 1 }, { Int, 2 }, { Quad, 3 + QUAD_ALIGN } } }, > { .name = "read", .ret_type = 1, .nargs = 3, > .args = { { Int, 0 }, { BinString | OUT, 1 }, { Int, 2 } } }, > { .name = "rename", .ret_type = 1, .nargs = 2, > .args = { { Name , 0 } , { Name, 1 } } }, > { .name = "symlink", .ret_type = 1, .nargs = 2, > .args = { { Name , 0 } , { Name, 1 } } }, >+ { .name = "symlinkat", .ret_type = 1, .nargs = 3, >+ .args = { { Name , 0 } , { Int, 1 }, { Name, 2 } } }, > { .name = "posix_openpt", .ret_type = 1, .nargs = 1, > .args = { { Open, 0 } } }, > { .name = "wait4", .ret_type = 1, .nargs = 4,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 214885
:
177455
| 178382