From 9b2f78c55361083e01a3c1e62da15d31af8f2002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Tue, 5 Aug 2003 10:45:06 +0000 Subject: [PATCH] Add recv(2), recvfrom(2), send(2) and sendfrom(2). --- usr.bin/truss/syscalls.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c index d7edb9183742..54e4c1d0059b 100644 --- a/usr.bin/truss/syscalls.c +++ b/usr.bin/truss/syscalls.c @@ -103,9 +103,9 @@ struct syscall syscalls[] = { { "linux_newfstat", 1, 2, { { Int, 0 }, { Ptr | OUT, 1 }}}, { "write", 1, 3, - { { Int, 0}, { Ptr | IN, 1 }, { Int, 2 }}}, + { { Int, 0 }, { Ptr | IN, 1 }, { Int, 2 }}}, { "ioctl", 1, 3, - { { Int, 0}, { Ioctl, 1 }, { Hex, 2 }}}, + { { Int, 0 }, { Ioctl, 1 }, { Hex, 2 }}}, { "break", 1, 1, { { Hex, 0 }}}, { "exit", 0, 1, { { Hex, 0 }}}, { "access", 1, 2, { { String | IN, 0 }, { Int, 1 }}}, @@ -121,6 +121,14 @@ struct syscall syscalls[] = { { { Hex, 0 }, { Sockaddr | OUT, 1 }, { Ptr | OUT, 2 } } }, { "getsockname", 1, 3, { { Hex, 0 }, { Sockaddr | OUT, 1 }, { Ptr | OUT, 2 } } }, + { "recv", 1, 4, + { { Hex, 0 }, { Ptr | OUT, 1 }, { Int, 2 }, { Hex, 3 } } }, + { "recvfrom", 1, 6, + { { Hex, 0 }, { Ptr | IN, 1 }, { Int, 3 }, { Hex, 3 }, { Sockaddr | OUT, 4 }, { Ptr | OUT, 5 } } }, + { "send", 1, 4, + { { Hex, 0 }, { Ptr | IN, 1 }, { Int, 2 }, { Hex, 3 } } }, + { "sendto", 1, 6, + { { Hex, 0 }, { Ptr | IN, 1 }, { Int, 3 }, { Hex, 3 }, { Sockaddr | IN, 4 }, { Ptr | IN, 5 } } }, { "execve", 1, 3, { { String | IN, 0 }, { StringArray | IN, 1 }, { StringArray | IN, 2 } } }, { "linux_execve", 1, 3,