diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-27 12:38:33 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-27 19:57:55 -0300 |
commit | 5762c4e528cbd6629319bf3958d1f6554b399b20 (patch) | |
tree | 3be91959012944534451ec84584ff4be84286b7c /src/os/users.c | |
parent | 3f7011ab9185b4968e89086f77b054161a900beb (diff) | |
download | rneovim-5762c4e528cbd6629319bf3958d1f6554b399b20.tar.gz rneovim-5762c4e528cbd6629319bf3958d1f6554b399b20.tar.bz2 rneovim-5762c4e528cbd6629319bf3958d1f6554b399b20.zip |
Rename mch_* functions to os_* in os module.
Diffstat (limited to 'src/os/users.c')
-rw-r--r-- | src/os/users.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/os/users.c b/src/os/users.c index 2104d8080e..32bc4bb476 100644 --- a/src/os/users.c +++ b/src/os/users.c @@ -24,7 +24,7 @@ * Initialize users garray and fill it with os usernames. * Return Ok for success, FAIL for failure. */ -int mch_get_usernames(garray_T *users) +int os_get_usernames(garray_T *users) { if (users == NULL) { return FALSE; @@ -59,9 +59,9 @@ int mch_get_usernames(garray_T *users) * Insert user name in s[len]. * Return OK if a name found. */ -int mch_get_user_name(char *s, size_t len) +int os_get_user_name(char *s, size_t len) { - return mch_get_uname(getuid(), s, len); + return os_get_uname(getuid(), s, len); } /* @@ -69,7 +69,7 @@ int mch_get_user_name(char *s, size_t len) * Return OK if a name found. * If the name is not found, write the uid into s[len] and return FAIL. */ -int mch_get_uname(uid_t uid, char *s, size_t len) +int os_get_uname(uid_t uid, char *s, size_t len) { #if defined(HAVE_PWD_H) && defined(HAVE_GETPWUID) struct passwd *pw; @@ -89,7 +89,7 @@ int mch_get_uname(uid_t uid, char *s, size_t len) * The caller has to free() the returned string. * If the username is not found, NULL is returned. */ -char *mch_get_user_directory(const char *name) +char *os_get_user_directory(const char *name) { #if defined(HAVE_GETPWNAM) && defined(HAVE_PWD_H) struct passwd *pw; |