Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154660321
D17461.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D17461.diff
View Options
Index: head/usr.bin/truss/syscall.h
===================================================================
--- head/usr.bin/truss/syscall.h
+++ head/usr.bin/truss/syscall.h
@@ -151,6 +151,7 @@
PQuadHex,
PUInt,
Readlinkres,
+ ShmName,
StringArray,
/* Pointers to structures. */
Index: head/usr.bin/truss/syscalls.c
===================================================================
--- head/usr.bin/truss/syscalls.c
+++ head/usr.bin/truss/syscalls.c
@@ -44,6 +44,7 @@
#define _WANT_FREEBSD11_KEVENT
#include <sys/event.h>
#include <sys/ioccom.h>
+#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/ptrace.h>
#include <sys/resource.h>
@@ -462,7 +463,7 @@
.args = { { Int, 0 }, { Sockoptlevel, 1 }, { Sockoptname, 2 },
{ Ptr | IN, 3 }, { Socklent, 4 } } },
{ .name = "shm_open", .ret_type = 1, .nargs = 3,
- .args = { { Name | IN, 0 }, { Open, 1 }, { Octal, 2 } } },
+ .args = { { ShmName | IN, 0 }, { Open, 1 }, { Octal, 2 } } },
{ .name = "shm_unlink", .ret_type = 1, .nargs = 1,
.args = { { Name | IN, 0 } } },
{ .name = "shutdown", .ret_type = 1, .nargs = 2,
@@ -1593,6 +1594,13 @@
case Sizet:
fprintf(fp, "%zu", (size_t)args[sc->offset]);
break;
+ case ShmName:
+ /* Handle special SHM_ANON value. */
+ if ((char *)args[sc->offset] == SHM_ANON) {
+ fprintf(fp, "SHM_ANON");
+ break;
+ }
+ /* FALLTHROUGH */
case Name: {
/* NULL-terminated string. */
char *tmp2;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 4:12 AM (5 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32446088
Default Alt Text
D17461.diff (1 KB)
Attached To
Mode
D17461: truss: handle shm_open's special SHM_ANON value better.
Attached
Detach File
Event Timeline
Log In to Comment