Searched refs:dirp (Results 1 - 20 of 20) sorted by relevance

/openjdk7/jdk/src/windows/native/java/io/
H A Ddirent_md.c44 DIR *dirp = (DIR *)malloc(sizeof(DIR)); local
48 if (dirp == 0) {
66 dirp->path = (char *)malloc(strlen(dirname) + 5);
67 if (dirp->path == 0) {
68 free(dirp);
72 strcpy(dirp->path, dirname);
74 fattr = GetFileAttributes(dirp->path);
76 free(dirp->path);
77 free(dirp);
81 free(dirp
110 readdir(DIR *dirp) argument
131 closedir(DIR *dirp) argument
146 rewinddir(DIR *dirp) argument
[all...]
H A Ddirent_md.h36 struct dirent *readdir(DIR *dirp);
37 int closedir(DIR *dirp);
38 void rewinddir(DIR *dirp);
/openjdk7/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/
H A DLauncher.c73 struct dirent* dirp; local
142 while ((dirp = readdir(dp)) != NULL) {
143 if (isdigit(dirp->d_name[0])) {
144 int fd = strtol(dirp->d_name, NULL, 10);
/openjdk7/hotspot/src/os/solaris/vm/
H A Dos_solaris.inline.hpp94 inline struct dirent* os::readdir(DIR* dirp, dirent* dbuf) { argument
95 assert(dirp != NULL, "just checking");
100 if((status = ::readdir_r(dirp, dbuf, &p)) != 0) {
106 return ::readdir_r(dirp, dbuf);
110 inline int os::closedir(DIR *dirp) { argument
111 assert(dirp != NULL, "argument is NULL");
112 return ::closedir(dirp);
H A DperfMemory_solaris.cpp537 DIR* dirp = os::opendir(dirname); local
539 if (dirp == NULL) {
560 while ((entry = os::readdir(dirp, (struct dirent *)dbuf)) != NULL) {
596 os::closedir(dirp);
/openjdk7/jdk/src/solaris/native/com/sun/management/
H A DUnixOperatingSystem_md.c73 static struct dirent* read_dir(DIR* dirp, struct dirent* entry) { argument
75 struct dirent* dbuf = readdir(dirp);
79 if (readdir_r(dirp, entry, &p) == 0) {
415 DIR *dirp;
420 dirp = opendir("/proc/self/fd");
421 if (dirp == NULL) {
428 while ((dentp = read_dir(dirp, &dbuf)) != NULL) {
434 closedir(dirp);
/openjdk7/jdk/src/solaris/native/java/util/
H A DTimeZone_md.c106 DIR *dirp = NULL; local
115 dirp = opendir(dir);
116 if (dirp == NULL) {
122 (void) closedir(dirp);
128 while (readdir_r(dirp, entry, &dp) == 0 && dp != NULL) {
130 while ((dp = readdir_r(dirp, entry)) != NULL) {
200 if (dirp != NULL) {
201 (void) closedir(dirp);
/openjdk7/hotspot/src/os/bsd/vm/
H A Dos_bsd.inline.hpp140 inline struct dirent* os::readdir(DIR* dirp, dirent *dbuf) argument
144 assert(dirp != NULL, "just checking");
150 if((status = ::readdir_r(dirp, dbuf, &p)) != 0) {
157 inline int os::closedir(DIR *dirp) { argument
158 assert(dirp != NULL, "argument is NULL");
159 return ::closedir(dirp);
H A DperfMemory_bsd.cpp500 DIR* dirp = os::opendir(dirname); local
502 if (dirp == NULL) {
523 while ((entry = os::readdir(dirp, (struct dirent *)dbuf)) != NULL) {
559 os::closedir(dirp);
/openjdk7/hotspot/src/os/linux/vm/
H A Dos_linux.inline.hpp144 inline struct dirent* os::readdir(DIR* dirp, dirent *dbuf) argument
148 assert(dirp != NULL, "just checking");
154 if((status = ::readdir_r(dirp, dbuf, &p)) != 0) {
161 inline int os::closedir(DIR *dirp) { argument
162 assert(dirp != NULL, "argument is NULL");
163 return ::closedir(dirp);
H A DperfMemory_linux.cpp500 DIR* dirp = os::opendir(dirname); local
502 if (dirp == NULL) {
523 while ((entry = os::readdir(dirp, (struct dirent *)dbuf)) != NULL) {
559 os::closedir(dirp);
/openjdk7/jdk/src/solaris/bin/
H A Djava_md_common.c214 DIR *dirp; local
222 if ((dirp = opendir(dirname)) == NULL)
226 if ((dp = readdir(dirp)) != NULL) {
248 (void) closedir(dirp);
/openjdk7/hotspot/src/os/windows/vm/
H A Dos_windows.cpp1028 DIR *dirp = (DIR *)malloc(sizeof(DIR), mtInternal); local
1032 if (dirp == 0) {
1050 dirp->path = (char *)malloc(strlen(dirname) + 5, mtInternal);
1051 if (dirp->path == 0) {
1052 free(dirp, mtInternal);
1056 strcpy(dirp->path, dirname);
1058 fattr = GetFileAttributes(dirp->path);
1060 free(dirp->path, mtInternal);
1061 free(dirp, mtInternal);
1065 free(dirp
1096 readdir(DIR *dirp, dirent *dbuf) argument
1118 closedir(DIR *dirp) argument
[all...]
H A DperfMemory_windows.cpp621 DIR* dirp = os::opendir(dirname); local
623 if (dirp == NULL) {
644 while ((entry = os::readdir(dirp, (struct dirent *)dbuf)) != NULL) {
684 os::closedir(dirp);
/openjdk7/hotspot/src/share/tools/launcher/
H A Dwildcard.c199 struct dirent* dirp = readdir(it->dir); local
200 return dirp ? dirp->d_name : NULL;
/openjdk7/jdk/src/share/bin/
H A Dwildcard.c199 struct dirent* dirp = readdir(it->dir); local
200 return dirp ? dirp->d_name : NULL;
/openjdk7/jdk/src/solaris/native/java/lang/
H A DUNIXProcess_md.c409 struct dirent64 *dirp; local
428 while ((dirp = readdir64(dp)) != NULL) {
430 if (isAsciiDigit(dirp->d_name[0]) &&
431 (fd = strtol(dirp->d_name, NULL, 10)) >= from_fd + 2)
/openjdk7/hotspot/src/os/posix/launcher/
H A Djava_md.c1588 DIR *dirp; local
1596 if ((dirp = opendir(dirname)) == NULL)
1600 if ((dp = readdir(dirp)) != NULL) {
1622 (void) closedir(dirp);
/openjdk7/hotspot/src/share/vm/runtime/
H A Dos.hpp495 static struct dirent* readdir(DIR* dirp, dirent* dbuf);
496 static int closedir(DIR* dirp);
/openjdk7/jdk/src/solaris/native/sun/nio/fs/
H A DUnixNativeDispatcher.c614 DIR* dirp = jlong_to_ptr(dir); local
616 RESTARTABLE(closedir(dirp), err);
631 DIR* dirp = jlong_to_ptr(value); local
635 res = readdir64_r(dirp, ptr, &result);

Completed in 74 milliseconds