summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Kendrick (humdrum) <rjek@rjek.com>2012-09-12 12:00:26 +0100
committerRob Kendrick (humdrum) <rjek@rjek.com>2012-09-12 12:00:26 +0100
commitc32248780d69130965ec5268ce318a46dc960a51 (patch)
tree6c90e207a4d0327d1bcc95c70c0ae90ada3a6c82
parent7aa97221a6d559e6887d86c4b6829bbaa5e80940 (diff)
downloadluxio-c32248780d69130965ec5268ce318a46dc960a51.tar.gz
Some function naming consistency
-rw-r--r--luxio/simple.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/luxio/simple.lua b/luxio/simple.lua
index c19d348..0fa5124 100644
--- a/luxio/simple.lua
+++ b/luxio/simple.lua
@@ -1145,7 +1145,7 @@ local function waitpid(pid, options)
return r
end
-local lkill = l.kill
+local l_kill = l.kill
local SIGTERM = l.SIGTERM
local function kill(pid, signal)
signal = signal or SIGTERM
@@ -1153,7 +1153,7 @@ local function kill(pid, signal)
return nil, "invalid pid passed to kill"
end
- local r, errno = lkill(pid, signal)
+ local r, errno = l_kill(pid, signal)
if r == -1 then
return err("kill", errno)
end
@@ -1161,9 +1161,9 @@ local function kill(pid, signal)
return r
end
-local lsetenv = l.setenv
+local l_setenv = l.setenv
local function setenv(key, value, overwrite)
- local r, errno = lsetenv(key, value, overwrite and 1 or 0)
+ local r, errno = l_setenv(key, value, overwrite and 1 or 0)
if r == -1 then
return err("setenv", errno)
end
@@ -1171,9 +1171,9 @@ local function setenv(key, value, overwrite)
return r
end
-local lunsetenv = l.unsetenv
+local l_unsetenv = l.unsetenv
local function unsetenv(key)
- local r, errno = lunsetenv(key)
+ local r, errno = l_unsetenv(key)
if r == -1 then
return err("unsetenv", errno)
@@ -1182,9 +1182,9 @@ local function unsetenv(key)
return r
end
-local lchdir = l.chdir
+local l_chdir = l.chdir
local function chdir(path)
- local r, err = lchdir(path)
+ local r, err = l_chdir(path)
if r == -1 then
return err("chdir", errno)
end
@@ -1192,9 +1192,9 @@ local function chdir(path)
return r
end
-local lgetcwd = l.getcwd
+local l_getcwd = l.getcwd
local function getcwd()
- local r, errno = lgetcwd()
+ local r, errno = l_getcwd()
if r == nil then
return err("getcwd", errno)