Functions
users.c File Reference
#include <uv.h>
#include "auto/config.h"
#include "nvim/ascii.h"
#include "nvim/garray.h"
#include "nvim/memory.h"
#include "nvim/os/os.h"
#include "nvim/strings.h"

Functions

int os_get_usernames (garray_T *users)
 
int os_get_user_name (char *s, size_t len)
 
int os_get_uname (uv_uid_t uid, char *s, size_t len)
 
char * os_get_user_directory (const char *name)
 
char * get_users (expand_T *xp, int idx)
 Given to ExpandGeneric() to obtain an user names. More...
 
int match_user (char_u *name)
 

Function Documentation

◆ get_users()

char* get_users ( expand_T xp,
int  idx 
)

Given to ExpandGeneric() to obtain an user names.

◆ match_user()

int match_user ( char_u name)

Check whether name matches a user name.

Returns
0 if name does not match any user name. 1 if name partially matches the beginning of a user name. 2 is name fully matches a user name.

◆ os_get_uname()

int os_get_uname ( uv_uid_t  uid,
char *  s,
size_t  len 
)

◆ os_get_user_directory()

char* os_get_user_directory ( const char *  name)

◆ os_get_user_name()

int os_get_user_name ( char *  s,
size_t  len 
)

◆ os_get_usernames()

int os_get_usernames ( garray_T users)