chdir 552 B

1234567891011121314151617181920212223242526272829303132
  1. .TH CHDIR 2
  2. .SH NAME
  3. chdir \- change working directory
  4. .SH SYNOPSIS
  5. .B #include <u.h>
  6. .br
  7. .B #include <libc.h>
  8. .PP
  9. .B
  10. int chdir(char *dirname)
  11. .SH DESCRIPTION
  12. .I Chdir
  13. changes the working directory
  14. of the invoking process to
  15. .IR dirname .
  16. The working directory is the starting point for
  17. evaluating file names that do not begin with
  18. .L /
  19. or
  20. .LR # ,
  21. as explained in
  22. .IR intro (2).
  23. When Plan 9 boots, the initial process has
  24. .L /
  25. for its working directory.
  26. .SH SOURCE
  27. .B /sys/src/libc/9syscall
  28. .SH SEE ALSO
  29. .IR intro (2)
  30. .SH DIAGNOSTICS
  31. Sets
  32. .IR errstr .