Searched refs:dir (Results 1 - 25 of 351) sorted by relevance

1234567891011>>

/haiku/src/system/libroot/posix/
H A Ddirent.c35 do_seek_dir(DIR* dir) argument
37 if (dir->seek_position == dir->current_position)
42 if (dir->seek_position < dir->current_position) {
43 status_t status = _kern_rewind_dir(dir->fd);
49 dir->current_position = 0;
50 dir->entries_left = 0;
54 while (dir->seek_position > dir
107 DIR* dir = (DIR*)malloc(DIR_BUFFER_SIZE); local
128 DIR* dir; local
164 DIR* dir; local
183 closedir(DIR* dir) argument
201 readdir(DIR* dir) argument
244 readdir_r(DIR* dir, struct dirent* entry, struct dirent** _result) argument
286 rewinddir(DIR* dir) argument
293 seekdir(DIR* dir, long int position) argument
300 telldir(DIR* dir) argument
307 dirfd(DIR* dir) argument
330 DIR* dir = opendir(path); local
[all...]
/haiku/src/tests/kits/storage/
H A DDirectoryTest.cpp118 BDirectory dir; local
119 CPPUNIT_ASSERT( dir.InitCheck() == B_NO_INIT );
125 BDirectory dir(existing);
126 CPPUNIT_ASSERT( dir.InitCheck() == B_OK );
130 BDirectory dir(nonExisting);
131 CPPUNIT_ASSERT( dir.InitCheck() == B_ENTRY_NOT_FOUND );
135 BDirectory dir((const char *)NULL);
136 CPPUNIT_ASSERT( dir.InitCheck() == B_BAD_VALUE );
140 BDirectory dir("");
142 CPPUNIT_ASSERT( dir
355 BDirectory dir; local
576 BDirectory dir; local
615 BDirectory dir; local
656 BDirectory dir; local
1068 BDirectory dir; local
1712 BDirectory dir; local
1731 BDirectory dir; local
1739 BDirectory dir; local
[all...]
/haiku/headers/posix/
H A Ddirent.h37 struct dirent* readdir(DIR* dir);
38 int readdir_r(DIR* dir, struct dirent* entry,
40 int closedir(DIR* dir);
41 void rewinddir(DIR* dir);
42 void seekdir(DIR* dir, long int position);
43 long int telldir(DIR* dir);
44 int dirfd(DIR* dir);
48 int scandir(const char* dir, struct dirent*** _entryArray,
/haiku/src/add-ons/tracker/filetype/
H A DFileType.cpp14 process_refs(entry_ref dir, BMessage* refs, void* /*reserved*/) argument
/haiku/headers/private/fs_shell/
H A Dfssh_dirent.h30 struct fssh_dirent *fssh_readdir(fssh_DIR *dir);
31 int fssh_readdir_r(fssh_DIR *dir, struct fssh_dirent *entry,
33 int fssh_closedir(fssh_DIR *dir);
34 void fssh_rewinddir(fssh_DIR *dir);
35 void fssh_seekdir(fssh_DIR *dir, long int loc);
H A Dfssh_fs_attr.h42 extern int fssh_fs_close_attr_dir(fssh_DIR *dir);
43 extern struct fssh_dirent *fssh_fs_read_attr_dir(fssh_DIR *dir);
44 extern void fssh_fs_rewind_attr_dir(fssh_DIR *dir);
/haiku/src/system/libroot/posix/glibc/libio/
H A Dioseekoff.c33 _IO_seekoff_unlocked (fp, offset, dir, mode)
36 int dir;
39 if (dir != _IO_seek_cur && dir != _IO_seek_set && dir != _IO_seek_end)
51 if (dir == _IO_seek_cur && _IO_in_backup (fp))
64 return _IO_SEEKOFF (fp, offset, dir, mode);
69 _IO_seekoff (fp, offset, dir, mode)
72 int dir;
80 retval = _IO_seekoff_unlocked (fp, offset, dir, mod
[all...]
/haiku/src/tests/system/libroot/posix/
H A Ddirent_test.cpp16 DIR* dir = opendir("."); local
20 dirent = readdir(dir);
26 //printf(" left: %u, next: %d\n", dir->entries_left, dir->next_entry);
29 rewinddir(dir);
32 dirent = readdir(dir);
38 //printf(" left: %u, next: %d\n", dir->entries_left, dir->next_entry);
42 closedir(dir);
47 dir
[all...]
/haiku/src/system/libroot/os/
H A Dfs_index.c60 DIR *dir; local
69 if ((dir = __create_dir_struct(fd)) == NULL) {
74 return dir;
79 fs_close_index_dir(DIR *dir) argument
81 return closedir(dir);
86 fs_read_index_dir(DIR *dir) argument
88 return readdir(dir);
93 fs_rewind_index_dir(DIR *dir) argument
95 rewinddir(dir);
H A Dfs_query.cpp38 DIR *dir = __create_dir_struct(fd); local
39 if (dir == NULL) {
44 return dir;
70 fs_close_query(DIR *dir) argument
72 return closedir(dir);
77 fs_read_query(DIR *dir) argument
79 return readdir(dir);
H A Dfs_attr.cpp27 DIR *dir; local
36 if ((dir = __create_dir_struct(fd)) == NULL) {
41 return dir;
148 fs_close_attr_dir(DIR* dir) argument
150 return closedir(dir);
155 fs_read_attr_dir(DIR* dir) argument
157 return readdir(dir);
162 fs_rewind_attr_dir(DIR* dir) argument
164 rewinddir(dir);
/haiku/src/tools/fs_shell/
H A Dpath_util.h16 char* make_path(const char *dir, const char *entry);
H A Dpath_util.cpp52 make_path(const char *dir, const char *entry) argument
55 int dirLen = strlen(dir);
57 bool insertSeparator = (dir[dirLen - 1] != '/');
66 strcpy(path, dir);
/haiku/src/add-ons/print/transports/shared/
H A DDbgMsg.h11 void DUMP_BDIRECTORY(BDirectory *dir);
16 #define DUMP_BDIRECTORY(dir) (void)0
/haiku/src/system/libroot/posix/glibc/stdio-common/
H A Dtempnam.c37 tempnam(const char *dir, const char *prefix) argument
41 if (__path_search(buffer, NAME_MAX, dir, prefix, 1))
/haiku/src/bin/package/
H A DPackageWritingUtils.cpp24 DIR* dir = opendir("."); local
25 if (dir == NULL) {
30 CObjectDeleter<DIR, int> dirCloser(dir, &closedir);
32 while (dirent* entry = readdir(dir)) {
/haiku/data/bin/
H A Dinstall-wifi-firmwares.sh94 # DownloadFileIfNotCached <url> <filename> <destination dir>
97 local dir=$3
99 mkdir -p "$dir"
100 if [ ! -e $dir/$file ] ; then
102 wget -nv -O $dir/$file $url
154 local dir="${tempFirmwareDir}/${driver}"
155 cp "${firmwareDir}/${driver}/${file}" "${dir}"
156 DownloadFileIfNotCached $url $file $dir
175 local dir="${tempFirmwareDir}/${driver}"
176 cp "${firmwareDir}/${driver}/${file}" "${dir}"
[all...]
/haiku/src/apps/mail/
H A DStatus.cpp133 BDirectory dir; local
140 dir.SetTo(path.Path());
141 if (dir.FindEntry("Mail", &entry) == B_NO_ERROR)
142 dir.SetTo(&entry);
144 dir.CreateDirectory("Mail", &dir);
145 if (dir.InitCheck() != B_NO_ERROR)
147 if (dir.FindEntry("status", &entry) == B_NO_ERROR)
148 dir.SetTo(&entry);
150 dir
[all...]
/haiku/src/add-ons/kernel/file_systems/fat/
H A Ddir.h13 status_t check_dir_empty(nspace *vol, vnode *dir);
14 status_t findfile_case(nspace *vol, vnode *dir, const char *file,
16 status_t findfile_nocase(nspace *vol, vnode *dir, const char *file,
18 status_t findfile_nocase_duplicates(nspace *vol, vnode *dir, const char *file,
20 status_t findfile_case_duplicates(nspace *vol, vnode *dir, const char *file,
23 status_t compact_directory(nspace *vol, vnode *dir);
25 status_t create_dir_entry(nspace *vol, vnode *dir, vnode *node,
/haiku/src/bin/rc/
H A Drdef.cpp61 rdef_add_include_dir(const char *dir, bool toEndOfList) argument
65 char *path = (char *)malloc(strlen(dir) + 2);
71 strcpy(path, dir);
84 rdef_remove_include_dir(const char *dir) argument
86 size_t length = strlen(dir);
88 if (dir[length - 1] != '/')
94 if (!strncmp(dir, path, length)
/haiku/headers/os/kernel/
H A Dfs_attr.h40 extern int fs_close_attr_dir(DIR *dir);
41 extern struct dirent *fs_read_attr_dir(DIR *dir);
42 extern void fs_rewind_attr_dir(DIR *dir);
/haiku/src/servers/power/
H A Dpower_button_monitor.cpp30 BDirectory dir; local
31 if (dir.SetTo(kBasePath) != B_OK)
35 while (dir.GetNextRef(&ref) == B_OK) {
/haiku/headers/build/os/kernel/
H A Dfs_attr.h41 extern int fs_close_attr_dir(DIR *dir);
42 extern struct dirent *fs_read_attr_dir(DIR *dir);
43 extern void fs_rewind_attr_dir(DIR *dir);
/haiku/src/apps/login/
H A DDesktopWindow.cpp47 BDirectory dir(path.Path());
48 if (!dir.Contains("x-vnd.Haiku-Login", B_DIRECTORY_NODE))
49 dir.CreateDirectory("x-vnd.Haiku-Login", NULL);
51 dir.SetTo(path.Path());
52 if (!dir.Contains("Shelf", B_FILE_NODE))
53 dir.CreateFile("Shelf", NULL);
/haiku/src/apps/poorman/
H A DPoorManSiteView.h49 void SetWebDir(const char* dir) argument
51 fWebDir->SetText(dir);

Completed in 303 milliseconds

1234567891011>>