Code:
patloradb01a:/home/prices02 >$truss vi test.txt
execve("/usr/bin/vi", 0x2FF22C20, 0x200138A8) argc: 2
read_sysconfig(0xF07E4660, 0x00000010, 0xFFFFFFFC, 0x10000000, 0x300006DC, 0x00000080, 0x06010000, 0xF08564C0) = 0x00000000
kioctl(2, 22528, 0x00000000, 0x00000000) = 0
kioctl(2, 21505, 0x300068C8, 0x00000000) = 0
sbrk(0x00000000) = 0x305CA7DC
vmgetinfo(0x2FF21550, 7, 16) = 0
sbrk(0x00000000) = 0x305CA7DC
sbrk(0x00000004) = 0x305CA7DC
__libc_sbrk(0x00000000) = 0x305CA7E0
getuidx(4) = 705
getuidx(2) = 705
getuidx(1) = 705
getgidx(4) = 50
getgidx(2) = 50
getgidx(1) = 50
__loadx(0x01480080, 0x2FF20F30, 0x00000A50, 0x2FF21A90, 0x00000000) = 0xD056C128
__loadx(0x01480180, 0x2FF20F30, 0x00000A50, 0xF07DA150, 0xF07DA080) = 0xF08C7400
__loadx(0x07080000, 0xF07DA120, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C83AC
__loadx(0x07080000, 0xF07DA060, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C83B8
__loadx(0x07080000, 0xF07DA130, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C83E8
__loadx(0x07080000, 0xF07DA070, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C83F4
__loadx(0x07080000, 0xF07DA0F0, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C83C4
__loadx(0x07080000, 0xF07DA090, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C83DC
__loadx(0x07080000, 0xF07DA100, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C8400
__loadx(0x07080000, 0xF07DA110, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C8430
__loadx(0x07080000, 0xF07DA0A0, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C8418
__loadx(0x07080000, 0xF07DA0B0, 0xFFFFFFFF, 0xF08C7400, 0x0001F0B0) = 0xF08C8490
getuidx(4) = 705
getuidx(2) = 705
getuidx(1) = 705
getgidx(4) = 50
getgidx(2) = 50
getgidx(1) = 50
__loadx(0x01480080, 0x2FF20F30, 0x00000A50, 0x2FF21A90, 0x00000000) = 0xD056C128
getuidx(4) = 705
getuidx(2) = 705
getuidx(1) = 705
getgidx(4) = 50
getgidx(2) = 50
getgidx(1) = 50
__loadx(0x01480080, 0x2FF20F30, 0x00000A50, 0x2FF21A90, 0x00000000) = 0xD056C128
getuidx(4) = 705
getuidx(2) = 705
getuidx(1) = 705
getgidx(4) = 50
getgidx(2) = 50
getgidx(1) = 50
__loadx(0x01480080, 0x2FF20F30, 0x00000A50, 0x2FF21A90, 0x00000000) = 0xD056C128
getuidx(4) = 705
getuidx(2) = 705
getuidx(1) = 705
getgidx(4) = 50
getgidx(2) = 50
getgidx(1) = 50
__loadx(0x01480080, 0x2FF20F30, 0x00000A50, 0x2FF21A90, 0x00000000) = 0xD056C128
getuidx(4) = 705
getuidx(2) = 705
getuidx(1) = 705
getgidx(4) = 50
getgidx(2) = 50
getgidx(1) = 50
__loadx(0x01480080, 0x2FF20F30, 0x00000A50, 0x2FF21A90, 0x00000000) = 0xD056C128
access("/usr/lib/nls/msg/en_US/ex.cat", 0) = 0
_getpid() = 31588562
_getpid() = 31588562
_sigaction(30, 0x2FF22250, 0x2FF22260) = 0
_sigaction(1, 0x2FF22250, 0x2FF22260) = 0
_sigaction(1, 0x2FF22250, 0x2FF22260) = 0
_sigaction(3, 0x2FF22250, 0x2FF22260) = 0
_sigaction(2, 0x2FF22250, 0x2FF22260) = 0
_sigaction(15, 0x2FF22250, 0x2FF22260) = 0
_sigaction(4, 0x2FF22250, 0x2FF22260) = 0
_sigaction(5, 0x2FF22250, 0x2FF22260) = 0
_sigaction(6, 0x2FF22250, 0x2FF22260) = 0
_sigaction(8, 0x2FF22250, 0x2FF22260) = 0
_sigaction(10, 0x2FF22250, 0x2FF22260) = 0
_sigaction(11, 0x2FF22250, 0x2FF22260) = 0
_sigaction(13, 0x2FF22250, 0x2FF22260) = 0
kioctl(0, 22528, 0x00000000, 0x00000000) = 0
_sigaction(18, 0x2FF22250, 0x2FF22260) = 0
_sigaction(18, 0x2FF22250, 0x2FF22260) = 0
__ksetjmp(0x30412E50, 0xD056C619, 2, 0x30412EB4, 0x2FF22B80, 0x28228202, 0x30005CA4, 0xD0187128) = 0
_sigaction(2, 0x2FF22210, 0x2FF22220) = 0
_sigaction(18, 0x2FF22210, 0x2FF22220) = 0
kioctl(2, 22528, 0x00000000, 0x00000000) = 0
kioctl(2, 21505, 0x300068C8, 0x00000000) = 0
access("/usr/lib/nls/msg/en_US/setupterm.cat", 0) = 0
_getpid() = 31588562
kopen("/usr/share/lib/terminfo/x/xterm", O_RDONLY) = 3
kioctl(2, 21509, 0xF050BF66, 0x00000000) = 0
kread(3, "1A011C\0 %\0 !\0 ▒01 G05".., 4096) = 2417
close(3) = 0
kioctl(2, 1074295912, 0x2FF21C30, 0x00000000) = 0
kioctl(2, 1074295912, 0x2FF21C30, 0x00000000) = 0
kioctl(2, 21511, 0xF050BF78, 0x00000000) = 0
kioctl(2, 1074033788, 0xF050BF94, 0x00000000) = 0
kioctl(2, 21511, 0xF050BF66, 0x00000000) = 0
kioctl(0, 1074295912, 0x2FF221D0, 0x00000000) = 0
kioctl(2, 1074033664, 0x30014AA8, 0x00000000) = 0
kioctl(1, 22528, 0x00000000, 0x00000000) = 0
kioctl(2, 22528, 0x00000000, 0x00000000) = 0
kioctl(2, 21505, 0x300068C8, 0x00000000) = 0
kopen("/home/prices02/.exrc", O_RDONLY) = 3
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kioctl(3, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
kread(3, " s e t d i r = / h o m".., 4096) = 23
kread(3, " s e t d i r = / h o m".., 4096) = 0
__libc_sbrk(0x00000000) = 0x305DA7F0
__ksetjmp(0x30412E50, 0x300067CC, 2, 0x30412EB4, 0x2FF22B80, 0x24222202, 0x30005CA4, 0xD0187128) = 0
statx("/home/prices02/.exrc", 0x2FF22110, 176, 020) = 0
statx(".exrc", 0x2FF221C0, 176, 020) = 0
statx("/home/prices02/.exrc", 0x2FF22200, 76, 0) = 0
getuidx(1) = 705
_sigaction(2, 0x2FF220D0, 0x2FF220E0) = 0
kfcntl(0, F_DUPFD, 0x00000000) = 4
close(0) = 0
kopen("/home/prices02/.exrc", O_RDONLY) = 0
kioctl(0, 22528, 0x00000000, 0x00000000) Err#25 ENOTTY
_sigaction(2, 0x2FF22090, 0x2FF220A0) = 0
_sigaction(18, 0x2FF22090, 0x2FF220A0) = 0
__ksetjmp(0x30412E50, 0x00000000, 2, 0x30412EB4, 0x2FF22280, 0x22222202, 0x30005CA4, 0xD0187128) = 0
kwrite(1, "1B [ ? 1 0 4 9 l", 8) = 8
kioctl(2, 21511, 0xF050BF66, 0x00000000) = 0
unlink("/home/prices02/Ex88562") = 0
kwrite(1, "1B [ J", 3) = 3
kwrite(1, "1B [ ? 1 2 l1B [ ? 2 5 h", 12) = 12
kfcntl(1, F_GETFL, 0x00000000) = 67110914
kfcntl(2, F_GETFL, 0x2FF22FFC) = 67110914
_exit(1)