Lines Matching defs:path

199           // Found the full path to jvm[_g].dll.
200 // Now cut the path to <java_home>/jre if we can.
282 char path[MAX_PATH];
284 GetWindowsDirectory(path, MAX_PATH);
286 path, PACKAGE_DIR, EXT_DIR);
1050 dirp->path = (char *)malloc(strlen(dirname) + 5, mtInternal);
1051 if (dirp->path == 0) {
1056 strcpy(dirp->path, dirname);
1058 fattr = GetFileAttributes(dirp->path);
1060 free(dirp->path, mtInternal);
1065 free(dirp->path, mtInternal);
1071 /* Append "*.*", or possibly "\\*.*", to path */
1072 if (dirp->path[1] == ':'
1073 && (dirp->path[2] == '\0'
1074 || (dirp->path[2] == '\\' && dirp->path[3] == '\0'))) {
1076 strcat(dirp->path, "*.*");
1078 strcat(dirp->path, "\\*.*");
1081 dirp->handle = FindFirstFile(dirp->path, &dirp->find_data);
1084 free(dirp->path, mtInternal);
1128 free(dirp->path, mtInternal);
1171 char* path = pelements[i];
1173 size_t plen = (path == NULL) ? 0 : strlen(path);
1175 continue; // skip the empty path values
1177 const char lastchar = path[plen - 1];
1179 jio_snprintf(buffer, buflen, "%s%s.dll", path, fname);
1181 jio_snprintf(buffer, buflen, "%s\\%s.dll", path, fname);
1360 // if a buffer is provided, copy path name to the buffer
1373 // return the full path to the DLL file, sometimes it returns path
1375 // returns partial path, which makes life painful.
1383 // buf already contains path name
1733 // Find the full path to the current module, jvm.dll or jvm_g.dll
1741 // Lazy resolve the path to current module.
1751 // and fix up the path so it looks like
3640 char path[MAX_PATH];
3642 DWORD pathLen = (DWORD)sizeof(path);
3645 // only allow library name without path component
3646 assert(strchr(name, '\\') == NULL, "path not allowed");
3647 assert(strchr(name, ':') == NULL, "path not allowed");
3650 "Invalid parameter while calling os::win32::load_windows_dll(): cannot take path: %s", name);
3655 if ((size = GetSystemDirectory(path, pathLen)) > 0) {
3656 strcat(path, "\\");
3657 strcat(path, name);
3658 if ((result = (HINSTANCE)os::dll_load(path, ebuf, ebuflen)) != NULL) {
3664 if ((size = GetWindowsDirectory(path, pathLen)) > 0) {
3665 strcat(path, "\\");
3666 strcat(path, name);
3667 if ((result = (HINSTANCE)os::dll_load(path, ebuf, ebuflen)) != NULL) {
3950 int os::stat(const char *path, struct stat *sbuf) {
3952 if (strlen(path) > MAX_PATH - 1) {
3956 os::native_path(strcpy(pathbuf, path));
4103 int os::open(const char *path, int oflag, int mode) {
4106 if (strlen(path) > MAX_PATH - 1) {
4110 os::native_path(strcpy(pathbuf, path));
4115 bool os::dir_is_empty(const char* path) {
4117 HANDLE f = FindFirstFile(path, &fd);
4126 int os::create_binary_file(const char* path, bool rewrite_existing) {
4131 return ::open(path, oflags, _S_IREAD | _S_IWRITE);
4154 sometimes rejects '/') and removing redundant separators. The input path is
4159 This procedure modifies the given path in place, as the result is never
4162 char * os::native_path(char *path) {
4163 char *src = path, *dst = path, *end = path;
4183 specifiers (e.g., "file://c:/path"). As a side effect,
4184 "/c:/path" can be used as an alternative to "c:/path". */
4190 src = path;
4196 src = dst = path + 1;
4197 path[0] = '\\'; /* Force first separator to '\\' */
4203 /* Remove redundant separators from remainder of path, forcing all
4205 characters are removed from the end of the path because those
4216 if (dst == path + 1) break; /* "\\" */
4217 if (dst == path + 2 && isfilesep(path[0])) {
4221 to be consistent with the path canonicalizer as well
4250 path[2] = '.';
4251 path[3] = '\0';
4255 jio_fprintf(stderr, "sysNativePath: %s\n", path);
4257 return path;