Lines Matching refs:mode
120 FILE* fmemopen_unlocked(void *buf, size_t size, const char *mode) { in fmemopen_unlocked() argument
121 FILE *f = fmemopen(buf, size, mode); in fmemopen_unlocked()
960 int fopen_mode_to_flags(const char *mode) { in fopen_mode_to_flags() argument
964 assert(mode); in fopen_mode_to_flags()
966 if ((p = startswith(mode, "r+"))) in fopen_mode_to_flags()
968 else if ((p = startswith(mode, "r"))) in fopen_mode_to_flags()
970 else if ((p = startswith(mode, "w+"))) in fopen_mode_to_flags()
972 else if ((p = startswith(mode, "w"))) in fopen_mode_to_flags()
974 else if ((p = startswith(mode, "a+"))) in fopen_mode_to_flags()
976 else if ((p = startswith(mode, "a"))) in fopen_mode_to_flags()
1006 int xfopenat(int dir_fd, const char *path, const char *mode, int flags, FILE **ret) { in xfopenat() argument
1012 f = fopen(path, mode); in xfopenat()
1018 mode_flags = fopen_mode_to_flags(mode); in xfopenat()
1026 f = fdopen(fd, mode); in xfopenat()
1039 const char *mode, in search_and_fopen_internal() argument
1046 assert(mode); in search_and_fopen_internal()
1060 f = fopen(p, mode); in search_and_fopen_internal()
1078 const char *mode, in search_and_fopen() argument
1087 assert(mode); in search_and_fopen()
1093 f = fopen(filename, mode); in search_and_fopen()
1115 return search_and_fopen_internal(filename, mode, root, copy, ret, ret_path); in search_and_fopen()
1120 const char *mode, in search_and_fopen_nulstr() argument
1131 f = fopen(filename, mode); in search_and_fopen_nulstr()
1153 return search_and_fopen_internal(filename, mode, root, s, ret, ret_path); in search_and_fopen_nulstr()