Leaked source code of windows server 2003
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.

22 lines
477 B

  1. # NOTE: Derived from ..\..\lib\POSIX.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package POSIX;
  5. #line 658 "..\..\lib\POSIX.pm (autosplit into ..\..\lib\auto\POSIX\getcwd.al)"
  6. sub getcwd
  7. {
  8. usage "getcwd()" if @_ != 0;
  9. if ($^O eq 'MSWin32') {
  10. # this perhaps applies to everyone else also?
  11. require Cwd;
  12. $cwd = &Cwd::cwd;
  13. }
  14. else {
  15. chop($cwd = `pwd`);
  16. }
  17. $cwd;
  18. }
  19. # end of POSIX::getcwd
  20. 1;