Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getcwd.c 240B

1234567891011121314
  1. #include "defs.h"
  2. int
  3. sys_getcwd(struct tcb *tcp)
  4. {
  5. if (exiting(tcp)) {
  6. if (syserror(tcp))
  7. tprintf("%#lx", tcp->u_arg[0]);
  8. else
  9. printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
  10. tprintf(", %lu", tcp->u_arg[1]);
  11. }
  12. return 0;
  13. }