Lines Matching refs:uid
20 our $uid = 0;
22 # It is better to use the $< uid for testing on VMS instead.
23 if ( $^O eq 'VMS' ) { $uid = $< ; }
24 our @pwent = getpwuid $uid; # This is the function getpwuid.
25 unless (@pwent) { print "1..0 # Skip: no uid $uid\n"; exit 0 }
34 my $pwent = getpwuid $uid; # This is the OO getpwuid.
36 my $uid_expect = $uid;
38 print "not " unless ( $pwent->uid == $uid_expect
39 || $pwent->uid == 500 ); # go figure
42 print "not " unless $pwent->uid == $uid_expect ;
58 print "not " unless $pwent->uid == $pwent[2];
78 # there maybe more than one username with uid 0;
79 # uid 0's home directory may be "/" or "/root' or something else,