/dports/www/chromium-legacy/chromium-88.0.4324.182/native_client/pnacl/driver/ |
H A D | pathtools.py | 48 def touser(npath): argument 52 def tosys(npath): argument 65 npath = os.path.abspath(unicode(npath)) 68 return npath 73 def exists(npath): argument 76 def split(npath): argument 85 def dirname(npath): argument 88 def abspath(npath): argument 91 return npath 98 def isdir(npath): argument [all …]
|
/dports/mail/dovecot/dovecot-2.3.17/src/lib/ |
H A D | test-path-util.c | 34 test_assert_strcmp(npath, "/"); in test_absolute_path_no_change() 37 test_assert_strcmp(npath, cwd); in test_absolute_path_no_change() 51 const char *npath = cwd; in test_travel_to_root() local 52 for (npath = cwd; l != 0; l--) { in test_travel_to_root() 54 test_assert_idx(t_normpath_to("../", npath, &npath, &error) == 0, l); in test_travel_to_root() 56 test_assert_strcmp(npath, "/"); in test_travel_to_root() 63 test_assert_strcmp(npath, cwd); in test_extra_slashes() 66 test_assert_strcmp(npath, cwd); in test_extra_slashes() 69 test_assert_strcmp(npath, cwd); in test_extra_slashes() 90 test_assert_strcmp(npath, cwd); in test_relative_dotdot() [all …]
|
H A D | path-util.c | 41 char *npath, *npath_pos; in path_normalize() local 53 npath_pos = npath + strlen(npath); in path_normalize() 54 i_assert(npath[0] == '/'); in path_normalize() 58 npath = t_buffer_get(asize); in path_normalize() 59 npath[0] = '/'; in path_normalize() 60 npath_pos = npath + 1; in path_normalize() 96 npath = t_buffer_reget(npath, asize); in path_normalize() 148 npath = t_buffer_reget(npath, asize); in path_normalize() 196 npath = t_buffer_reget(npath, asize); in path_normalize() 219 npath_pos = npath + 1; in path_normalize() [all …]
|
/dports/graphics/grx/grx249/src/text/ |
H A D | fontpath.c | 31 for (npath = 0; npath < itemsof(plist); ++npath) in GrSetFontPath() 32 plist[npath] = NULL; in GrSetFontPath() 33 npath = 0; in GrSetFontPath() 77 plist[npath] = ALLOC((size_t)plen); in GrSetFontPath() 78 if(plist[npath] == NULL) goto error; in GrSetFontPath() 79 strcpy(plist[npath],path); in GrSetFontPath() 87 _GrFontFileInfo.npath = npath; in GrSetFontPath() 88 if(npath > 0) { in GrSetFontPath() 102 _GrFontFileInfo.npath = 0; in GrSetFontPath() 104 for (npath = 0; npath < itemsof(plist); ++npath) in GrSetFontPath() [all …]
|
/dports/comms/trustedqsl/tqsl-2.4/apps/ |
H A D | tqslpaths.h | 62 char *npath = reinterpret_cast<char *>(malloc(lenB + lenR + 10)); in DocPaths() local 63 if (npath) { in DocPaths() 64 CFStringGetCString(bundleString, npath, lenB + 1, kCFStringEncodingASCII); in DocPaths() 68 if ((strlen(npath) > 0) && (npath[strlen(npath)-1] != '/')) { in DocPaths() 69 strncat(npath, "/", 2); in DocPaths() 72 CFStringGetCString(resString, npath + strlen(npath), lenR + 1, kCFStringEncodingUTF8); in DocPaths() 74 if ((strlen(npath) > 0) && (npath[strlen(npath)-1] != '/')) { in DocPaths() 75 strncat(npath, "/", 2); in DocPaths() 77 Add(wxString::FromUTF8(npath)); in DocPaths() 78 Add(wxString::FromUTF8(npath) + wxT("Help/")); in DocPaths() [all …]
|
/dports/x11-toolkits/tix/Tix8.4.3/library/ |
H A D | DirList.tcl | 137 proc tixDirList:CallBrowseCmd {w npath} { argument 142 set bind(%V) $npath 147 proc tixDirList:CallCommand {w npath} { argument 152 set bind(%V) $npath 167 if {$npath eq ""} { 168 set npath [tixFSNativeNorm $data(-value)] 169 set vpath [tixFSInternal $npath] 198 set curpath [file join $npath $ent] 210 tixDirList:LoadDir $w $npath $vpath 270 set npath [tixFSNativeNorm $value] [all …]
|
/dports/shells/bash/bash-5.1/examples/loadables/ |
H A D | mkdir.c | 144 char *p, *npath; local 169 p = npath; 176 if (stat (npath, &sb) != 0) 178 if (mkdir (npath, 0)) 182 free (npath); 185 if (chmod (npath, parent_mode) != 0) 189 free (npath); 197 free (npath); 207 if (stat (npath, &sb) && mkdir (npath, nmode)) 211 free (npath); [all …]
|
/dports/math/adol-c/ADOL-C-2.7.2/ADOL-C/examples/additional_examples/cuda/ |
H A D | liborgpu.cu | 155 int i, j, npath; in main() local 158 npath=10; in main() 161 v = new double[npath]; in main() 163 z = new double*[npath]; in main() 185 for (i=0; i < npath; i++) in main() 198 for (j=0; j<npath; j++) in main() 210 for(int k=0; k < npath; k++) in main() 237 for(i=0; i<npath ; i++) in main() 244 for (i=0; i<npath; i++) in main() 250 vtot = vtot/npath; in main() [all …]
|
/dports/sysutils/password-store/password-store-1.7.4/contrib/importers/ |
H A D | kwallet2pass.py | 67 npath = path_for(element, path) 78 unexpected(child, npath) 80 insert_data(npath, text) 86 npath = path_for(element, path) 91 insert_data(npath, text) 93 unexpected(child, npath) 97 npath = path_for(element, path) 98 print "Importing folder " + npath 102 import_folder(child, npath) 107 import_map(child, npath) [all …]
|
/dports/www/tclhttpd/tclhttpd3.5.1/lib/ |
H A D | include.tcl | 81 set npath [Doc_Virtual $sock $path $orig] 84 set npath [file join [file dirname $path] $orig] 88 return [list $key $npath $orig] 108 set npath [lindex $info 1] 113 if {[catch {open $npath r} fd]} { 139 set npath [lindex $info 1] 141 if {[file exists $npath]} { 142 return [file size $npath] 169 set npath [lindex $info 1] 171 if {[file exists $npath]} { [all …]
|
/dports/sysutils/bareos-server/bareos-Release-20.0.3/core/src/droplet/libdroplet/src/ |
H A D | req.c | 152 npath[0] = '\0'; in dpl_req_set_resource() 154 strncpy(npath, resource, sizeof(npath)); in dpl_req_set_resource() 157 strncpy(npath, req->ctx->base_path, sizeof(npath)); in dpl_req_set_resource() 159 snprintf(npath, sizeof(npath), "%s%s", req->ctx->base_path, resource); in dpl_req_set_resource() 164 snprintf(npath, sizeof(npath), "%s", resource); in dpl_req_set_resource() 166 snprintf(npath, sizeof(npath), "%s/%s", req->ctx->base_path, resource); in dpl_req_set_resource() 169 nstr = strdup(npath); in dpl_req_set_resource() 369 snprintf(npath, sizeof(npath), "%s", src_resource); in dpl_req_set_src_resource_ext() 371 snprintf(npath, sizeof(npath), "%s/%s", req->ctx->base_path, in dpl_req_set_src_resource_ext() 374 snprintf(npath, sizeof(npath), "%s", src_resource); in dpl_req_set_src_resource_ext() [all …]
|
/dports/sysutils/bareos-client/bareos-Release-20.0.3/core/src/droplet/libdroplet/src/ |
H A D | req.c | 152 npath[0] = '\0'; in dpl_req_set_resource() 154 strncpy(npath, resource, sizeof(npath)); in dpl_req_set_resource() 157 strncpy(npath, req->ctx->base_path, sizeof(npath)); in dpl_req_set_resource() 159 snprintf(npath, sizeof(npath), "%s%s", req->ctx->base_path, resource); in dpl_req_set_resource() 164 snprintf(npath, sizeof(npath), "%s", resource); in dpl_req_set_resource() 166 snprintf(npath, sizeof(npath), "%s/%s", req->ctx->base_path, resource); in dpl_req_set_resource() 169 nstr = strdup(npath); in dpl_req_set_resource() 369 snprintf(npath, sizeof(npath), "%s", src_resource); in dpl_req_set_src_resource_ext() 371 snprintf(npath, sizeof(npath), "%s/%s", req->ctx->base_path, in dpl_req_set_src_resource_ext() 374 snprintf(npath, sizeof(npath), "%s", src_resource); in dpl_req_set_src_resource_ext() [all …]
|
/dports/sysutils/bareos-traymonitor/bareos-Release-20.0.3/core/src/droplet/libdroplet/src/ |
H A D | req.c | 152 npath[0] = '\0'; in dpl_req_set_resource() 154 strncpy(npath, resource, sizeof(npath)); in dpl_req_set_resource() 157 strncpy(npath, req->ctx->base_path, sizeof(npath)); in dpl_req_set_resource() 159 snprintf(npath, sizeof(npath), "%s%s", req->ctx->base_path, resource); in dpl_req_set_resource() 164 snprintf(npath, sizeof(npath), "%s", resource); in dpl_req_set_resource() 166 snprintf(npath, sizeof(npath), "%s/%s", req->ctx->base_path, resource); in dpl_req_set_resource() 169 nstr = strdup(npath); in dpl_req_set_resource() 369 snprintf(npath, sizeof(npath), "%s", src_resource); in dpl_req_set_src_resource_ext() 371 snprintf(npath, sizeof(npath), "%s/%s", req->ctx->base_path, in dpl_req_set_src_resource_ext() 374 snprintf(npath, sizeof(npath), "%s", src_resource); in dpl_req_set_src_resource_ext() [all …]
|
/dports/www/bareos-webui/bareos-Release-20.0.3/core/src/droplet/libdroplet/src/ |
H A D | req.c | 152 npath[0] = '\0'; in dpl_req_set_resource() 154 strncpy(npath, resource, sizeof(npath)); in dpl_req_set_resource() 157 strncpy(npath, req->ctx->base_path, sizeof(npath)); in dpl_req_set_resource() 159 snprintf(npath, sizeof(npath), "%s%s", req->ctx->base_path, resource); in dpl_req_set_resource() 164 snprintf(npath, sizeof(npath), "%s", resource); in dpl_req_set_resource() 166 snprintf(npath, sizeof(npath), "%s/%s", req->ctx->base_path, resource); in dpl_req_set_resource() 169 nstr = strdup(npath); in dpl_req_set_resource() 369 snprintf(npath, sizeof(npath), "%s", src_resource); in dpl_req_set_src_resource_ext() 371 snprintf(npath, sizeof(npath), "%s/%s", req->ctx->base_path, in dpl_req_set_src_resource_ext() 374 snprintf(npath, sizeof(npath), "%s", src_resource); in dpl_req_set_src_resource_ext() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/fs/cifs/ |
H A D | dfs_cache.c | 90 *npath = path; in get_normalized_path() 96 *npath = s; in get_normalized_path() 104 kfree(npath); in free_normalized_path() 531 char *npath; in lookup_cache_entry() local 536 if (!npath) in lookup_cache_entry() 539 s = npath; in lookup_cache_entry() 540 sep = *npath; in lookup_cache_entry() 555 h = cache_entry_hash(npath, strlen(npath)); in lookup_cache_entry() 556 e = npath + strlen(npath) - 1; in lookup_cache_entry() 571 h = cache_entry_hash(npath, strlen(npath)); in lookup_cache_entry() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/fs/cifs/ |
H A D | dfs_cache.c | 90 *npath = path; in get_normalized_path() 96 *npath = s; in get_normalized_path() 104 kfree(npath); in free_normalized_path() 531 char *npath; in lookup_cache_entry() local 536 if (!npath) in lookup_cache_entry() 539 s = npath; in lookup_cache_entry() 540 sep = *npath; in lookup_cache_entry() 555 h = cache_entry_hash(npath, strlen(npath)); in lookup_cache_entry() 556 e = npath + strlen(npath) - 1; in lookup_cache_entry() 571 h = cache_entry_hash(npath, strlen(npath)); in lookup_cache_entry() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/fs/cifs/ |
H A D | dfs_cache.c | 90 *npath = path; in get_normalized_path() 96 *npath = s; in get_normalized_path() 104 kfree(npath); in free_normalized_path() 531 char *npath; in lookup_cache_entry() local 536 if (!npath) in lookup_cache_entry() 539 s = npath; in lookup_cache_entry() 540 sep = *npath; in lookup_cache_entry() 555 h = cache_entry_hash(npath, strlen(npath)); in lookup_cache_entry() 556 e = npath + strlen(npath) - 1; in lookup_cache_entry() 571 h = cache_entry_hash(npath, strlen(npath)); in lookup_cache_entry() [all …]
|
/dports/audio/siren/siren-0.9/ |
H A D | path.c | 139 char *cwd, *npath, *tmp; in path_normalise() local 151 npath = xmalloc(pathlen + 1); in path_normalise() 169 while (j > 0 && npath[--j] != '/') in path_normalise() 173 npath[j++] = '/'; in path_normalise() 175 npath[j++] = path[i++]; in path_normalise() 181 npath[j++] = '/'; in path_normalise() 182 npath[j] = '\0'; in path_normalise() 185 npath = xrealloc(npath, j + 1); in path_normalise() 187 return npath; in path_normalise()
|
/dports/science/xtb/xtb-6.4.1/src/ |
H A D | pocketscan.f90 | 35 npath=mode_nscan 36 if(mod(npath,2).eq.0) npath=npath+1 ! make it odd 57 do k=1,3*npath 90 do k=1,3*npath 115 nout=6*npath - ierr 124 integer n,at(n),ifrag,npath local 131 if(npath.lt.1) then 133 npath=11 166 do k=1,npath 191 do k=1,npath [all …]
|
/dports/math/adol-c/ADOL-C-2.7.2/ADOL-C/examples/additional_examples/openmp_exam/ |
H A D | liborpar.cpp | 120 npath = 30; in main() 122 slot = npath/nthreads; in main() 125 v = new double[npath]; in main() 127 z = new double*[npath]; in main() 128 grad = new double*[npath]; in main() 129 xp = new double*[npath]; in main() 130 for (i=0;i<npath;i++) in main() 143 for (j=0; j<npath; j++) in main() 201 for (l=0; l<npath; l++) in main() 207 vtot = vtot/npath; in main() [all …]
|
H A D | liborser.cpp | 114 npath = 30; in main() 117 v = new double[npath]; in main() 119 z = new double*[npath]; in main() 120 grad = new double*[npath]; in main() 121 xp = new double*[npath]; in main() 122 for (i=0;i<npath;i++) in main() 135 for (j=0; j<npath; j++) in main() 175 for(i=0;i<npath;i++) in main() 182 for (i=0; i<npath; i++) in main() 188 vtot = vtot/npath; in main() [all …]
|
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/lib/wx/c_src/ |
H A D | wxe_ps_init.c | 104 wchar_t *npath; in wxe_ps_init() local 112 npath = (wchar_t *) malloc((path_len+dir_len+2)*sizeof(wchar_t)); in wxe_ps_init() 113 if(GetEnvironmentVariableW(L"PATH",npath,path_len) != (path_len-1)) { in wxe_ps_init() 114 free(npath); in wxe_ps_init() 117 npath[path_len-1] = L';'; in wxe_ps_init() 118 if(MultiByteToWideChar(CP_UTF8, 0, dir_utf8, dir_len, npath+path_len, dir_len+1) > 0) { in wxe_ps_init() 119 SetEnvironmentVariableW(L"PATH",npath); in wxe_ps_init() 121 free(npath); in wxe_ps_init()
|
/dports/lang/erlang-wx/otp-OTP-24.1.7/lib/wx/c_src/ |
H A D | wxe_ps_init.c | 104 wchar_t *npath; in wxe_ps_init() local 112 npath = (wchar_t *) malloc((path_len+dir_len+2)*sizeof(wchar_t)); in wxe_ps_init() 113 if(GetEnvironmentVariableW(L"PATH",npath,path_len) != (path_len-1)) { in wxe_ps_init() 114 free(npath); in wxe_ps_init() 117 npath[path_len-1] = L';'; in wxe_ps_init() 118 if(MultiByteToWideChar(CP_UTF8, 0, dir_utf8, dir_len, npath+path_len, dir_len+1) > 0) { in wxe_ps_init() 119 SetEnvironmentVariableW(L"PATH",npath); in wxe_ps_init() 121 free(npath); in wxe_ps_init()
|
/dports/lang/erlang-java/otp-OTP-24.1.7/lib/wx/c_src/ |
H A D | wxe_ps_init.c | 104 wchar_t *npath; in wxe_ps_init() local 112 npath = (wchar_t *) malloc((path_len+dir_len+2)*sizeof(wchar_t)); in wxe_ps_init() 113 if(GetEnvironmentVariableW(L"PATH",npath,path_len) != (path_len-1)) { in wxe_ps_init() 114 free(npath); in wxe_ps_init() 117 npath[path_len-1] = L';'; in wxe_ps_init() 118 if(MultiByteToWideChar(CP_UTF8, 0, dir_utf8, dir_len, npath+path_len, dir_len+1) > 0) { in wxe_ps_init() 119 SetEnvironmentVariableW(L"PATH",npath); in wxe_ps_init() 121 free(npath); in wxe_ps_init()
|
/dports/lang/erlang/otp-OTP-24.1.7/lib/wx/c_src/ |
H A D | wxe_ps_init.c | 104 wchar_t *npath; in wxe_ps_init() local 112 npath = (wchar_t *) malloc((path_len+dir_len+2)*sizeof(wchar_t)); in wxe_ps_init() 113 if(GetEnvironmentVariableW(L"PATH",npath,path_len) != (path_len-1)) { in wxe_ps_init() 114 free(npath); in wxe_ps_init() 117 npath[path_len-1] = L';'; in wxe_ps_init() 118 if(MultiByteToWideChar(CP_UTF8, 0, dir_utf8, dir_len, npath+path_len, dir_len+1) > 0) { in wxe_ps_init() 119 SetEnvironmentVariableW(L"PATH",npath); in wxe_ps_init() 121 free(npath); in wxe_ps_init()
|