Lines Matching refs:pathname
185 static int write_key(const char *pathname, const char *key, const char *value, int icase) in write_key() argument
193 fd = open(pathname, O_RDWR); in write_key()
309 static char *read_key(const char *pathname, const char *key, int icase) in read_key() argument
316 fd = open(pathname, O_RDONLY); in read_key()
373 int textfile_put(const char *pathname, const char *key, const char *value) in textfile_put() argument
375 return write_key(pathname, key, value, 0); in textfile_put()
378 int textfile_caseput(const char *pathname, const char *key, const char *value) in textfile_caseput() argument
380 return write_key(pathname, key, value, 1); in textfile_caseput()
383 int textfile_del(const char *pathname, const char *key) in textfile_del() argument
385 return write_key(pathname, key, NULL, 0); in textfile_del()
388 int textfile_casedel(const char *pathname, const char *key) in textfile_casedel() argument
390 return write_key(pathname, key, NULL, 1); in textfile_casedel()
393 char *textfile_get(const char *pathname, const char *key) in textfile_get() argument
395 return read_key(pathname, key, 0); in textfile_get()
398 char *textfile_caseget(const char *pathname, const char *key) in textfile_caseget() argument
400 return read_key(pathname, key, 1); in textfile_caseget()
403 int textfile_foreach(const char *pathname, textfile_cb func, void *data) in textfile_foreach() argument
410 fd = open(pathname, O_RDONLY); in textfile_foreach()