diff options
-rw-r--r-- | src/fd.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,6 @@ # Functions for opening and closing file descriptors # -# Copyright (C) 2013 Patrick "P. J." McDermott +# Copyright (C) 2013 Patrick McDermott # # This file is part of the ProteanOS Development Kit. # @@ -42,6 +42,7 @@ fopen() { local path="${1}" local mode="${2}" + shift 2 local i= local fd= @@ -80,6 +81,7 @@ fopen() fclose() { local fd="${1}" + shift 1 # Make sure the file descriptor is open. if [ "x$(eval echo "\${_fd_${fd}+set}")" != 'xset' ]; then |