Lines Matching refs:filename
31 orig_open (const char *filename, int flags, mode_t mode) in orig_open() argument
33 return open (filename, flags, mode); in orig_open()
53 open (const char *filename, int flags, ...) in open() argument
81 if (strcmp (filename, "/dev/null") == 0) in open()
82 filename = "NUL"; in open()
109 size_t len = strlen (filename); in open()
110 if (len > 0 && filename[len - 1] == '/') in open()
118 fd = orig_open (filename, flags, mode); in open()
132 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) in open()
137 fd = _gl_register_fd (fd, filename); in open()
160 size_t len = strlen (filename); in open()
161 if (filename[len - 1] == '/') in open()
177 fd = _gl_register_fd (fd, filename); in open()