diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-02-19 02:35:23 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-02-19 02:35:23 (EST) |
commit | a9f84d9757aad50db3f1d7e11c6e779b920ed96b (patch) | |
tree | 103d2da4d0ed2698e2728dade5f225ccb11730d0 /libsh/stdio.sh | |
parent | 5da1775daf87fe38d46dcdeef6ed64c6fac0bd29 (diff) | |
download | eggshell-a9f84d9757aad50db3f1d7e11c6e779b920ed96b.zip eggshell-a9f84d9757aad50db3f1d7e11c6e779b920ed96b.tar.gz eggshell-a9f84d9757aad50db3f1d7e11c6e779b920ed96b.tar.bz2 |
libsh: Use parameter lists instead of aliases
Diffstat (limited to 'libsh/stdio.sh')
-rw-r--r-- | libsh/stdio.sh | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/libsh/stdio.sh b/libsh/stdio.sh index 7d44d12..0d00fa5 100644 --- a/libsh/stdio.sh +++ b/libsh/stdio.sh @@ -44,10 +44,8 @@ static fd_9_set=false fd=0 -static fopen() +fopen(string path, string mode) { - local path="${1}" - local mode="${2}" local mode_r= local mode_w= local i= @@ -97,7 +95,7 @@ static fopen() return 0 } -static fclose() +fclose(int f) { local f=${1} @@ -114,10 +112,3 @@ static fclose() return 0 } - -static stdio_alias() -{ - __alias ${fopen} fopen string string - __alias ${fclose} fclose int -} -__init ${stdio_alias} |