Skip to content

Commit 9efd050

Browse files
committed
doc
1 parent 6aeab71 commit 9efd050

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

+stdlib/+perl/device.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% PERL.DEVICE filesystem device index of path
2+
13
function [r, cmd] = device(file)
24

35
c = '($f=shift) && -e $f or exit 1; print +(stat $f)[0]';

+stdlib/+perl/get_uid.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
%% PERL.GET_UID tell UID (numeric) of current user
2+
13
function u = get_uid()
24

35
u = [];

+stdlib/is_exe.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
%%% Outputs
77
% ok: true if path is a file and has executable permissions
88

9-
function ok = is_exe(file)
9+
function [ok, b] = is_exe(file)
1010
arguments
1111
file string
1212
end
1313

1414
if isscalar(file)
1515
ok = stdlib.legacy.is_exe(file);
16+
b = 'legacy';
1617
else
1718
ok = stdlib.native.is_exe(file);
19+
b = 'native';
1820
end
1921

2022
end

+stdlib/is_readable.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
%%% Outputs
66
% ok: true if file is readable
77

8-
function ok = is_readable(file)
8+
function [ok, b] = is_readable(file)
99
arguments
1010
file string
1111
end
1212

1313
if isscalar(file)
1414
ok = stdlib.legacy.is_readable(file);
15+
b = 'legacy';
1516
else
1617
ok = stdlib.native.is_readable(file);
18+
b = 'native';
1719
end
1820

1921
end

+stdlib/is_writable.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
%%% Outputs
66
% * ok: true if file is writable
77

8-
function ok = is_writable(file)
8+
function [ok, b] = is_writable(file)
99
arguments
1010
file string
1111
end
1212

1313
if isscalar(file)
1414
ok = stdlib.legacy.is_writable(file);
15+
b = 'legacy';
1516
else
1617
ok = stdlib.native.is_writable(file);
18+
b = 'native';
1719
end
1820

1921
end

0 commit comments

Comments
 (0)