TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Russell Coker
date: 1996-04-14 21:39:20
subject: strace/2

Does anyone know of a facility for OS/2 similar to the strace program under
UNIX to list the API calls that a program makes.  Here's the start of a strace
of ls -al:

open("", O_RDONLY)                      = 4
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE, 4, 0) = 0x40006000
close(4)                                = 0
mprotect(0x40000000, 17899, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x8000000, 25207, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
getuid()                                = 99
geteuid()                               = 99
getgid()                                = 100
getegid()                               = 100
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=1213, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 4
mmap(0, 1213, PROT_READ, MAP_SHARED, 4, 0) = 0x40007000
close(4)                                = 0
open("/lib/libc.so.5.0.9", O_RDONLY)    = 4
open("/dev/zero", O_RDONLY)             = 5
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 720896, PROT_NONE, MAP_PRIVATE, 5, 0) = 0x40008000
mmap(0x40008000, 489361, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0x4
0008000

  Russell Coker


--- Maximus/2 2.02
* Origin: Multi - 61-3-9739-7145 - multi.apana.org.au (3:633/363)
SEEN-BY: 50/99 78/0 620/243 632/348 998 633/154 260 362 363 371 373 374
SEEN-BY: 634/396 635/301 502 503 544 639/252 711/409 410 413 430 808 809 934
SEEN-BY: 711/955 712/515 713/888 800/1 7877/2809
@PATH: 633/363 260 371 635/503 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.