Lines Matching refs:filename
28 orig_open (const char *filename, int flags, mode_t mode)
30 return open (filename, flags, mode);
48 open (const char *filename, int flags, ...)
67 if (strcmp (filename, "/dev/null") == 0)
68 filename = "NUL";
72 /* If the filename ends in a slash and one of O_CREAT, O_WRONLY, O_RDWR
80 "The special filename dot shall refer to the directory specified by
95 size_t len = strlen (filename);
96 if (len > 0 && filename[len - 1] == '/')
104 fd = orig_open (filename, flags, mode);
117 if (stat (filename, &statbuf) == 0 && S_ISDIR (statbuf.st_mode))
122 fd = _gl_register_fd (fd, filename);
130 /* If the filename ends in a slash and fd does not refer to a directory,
138 "The special filename dot shall refer to the directory specified by
145 size_t len = strlen (filename);
146 if (filename[len - 1] == '/')
162 fd = _gl_register_fd (fd, filename);