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

# NOTE: Derived from ..\..\lib\POSIX.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package POSIX;
#line 658 "..\..\lib\POSIX.pm (autosplit into ..\..\lib\auto\POSIX\getcwd.al)"
sub getcwd
{
usage "getcwd()" if @_ != 0;
if ($^O eq 'MSWin32') {
# this perhaps applies to everyone else also?
require Cwd;
$cwd = &Cwd::cwd;
}
else {
chop($cwd = `pwd`);
}
$cwd;
}
# end of POSIX::getcwd
1;