From 32b7c2ab14c83caa7efb3b0a83cc546213435455 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 18:20:14 -0400 Subject: src/fd.sh: Shift func args and update copyright --- (limited to 'src') diff --git a/src/fd.sh b/src/fd.sh index 345eee6..8bd4584 100644 --- a/src/fd.sh +++ b/src/fd.sh @@ -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 -- cgit v0.9.1