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