Home
last modified time | relevance | path

Searched refs:resolved (Results 1 – 25 of 153) sorted by relevance

1234567

/src/crypto/openssh/
H A Dsftp-realpath.c48 char *sftp_realpath(const char *path, char *resolved);
58 sftp_realpath(const char *path, char *resolved) in sftp_realpath() argument
74 if (resolved == NULL) { in sftp_realpath()
75 resolved = malloc(PATH_MAX); in sftp_realpath()
76 if (resolved == NULL) in sftp_realpath()
84 resolved[0] = '/'; in sftp_realpath()
85 resolved[1] = '\0'; in sftp_realpath()
87 return (resolved); in sftp_realpath()
91 if (getcwd(resolved, PATH_MAX) == NULL) { in sftp_realpath()
93 free(resolved); in sftp_realpath()
[all …]
/src/lib/libc/stdlib/
H A Drealpath.c48 realpath1(const char *path, char *resolved) in realpath1() argument
59 resolved[0] = '/'; in realpath1()
60 resolved[1] = '\0'; in realpath1()
62 return (resolved); in realpath1()
66 if (getcwd(resolved, PATH_MAX) == NULL) { in realpath1()
67 resolved[0] = '.'; in realpath1()
68 resolved[1] = '\0'; in realpath1()
71 resolved_len = strlen(resolved); in realpath1()
102 if (resolved[resolved_len - 1] != '/') { in realpath1()
107 resolved[resolved_len++] = '/'; in realpath1()
[all …]
/src/contrib/ntp/libntp/
H A Dntp_realpath.c56 realpath1(const char *path, char *resolved) in realpath1() argument
65 if (strlcpy(resolved, path, NTP_PATH_MAX) >= NTP_PATH_MAX) in realpath1()
68 retval = resolved; in realpath1()
69 } else if ((retval = _fullpath(resolved, path, NTP_PATH_MAX)) == NULL) { in realpath1()
99 realpath1(const char *path, char *resolved) in realpath1() argument
110 resolved[0] = '/'; in realpath1()
111 resolved[1] = '\0'; in realpath1()
113 return (resolved); in realpath1()
117 if (getcwd(resolved, NTP_PATH_MAX) == NULL) { in realpath1()
118 resolved[0] = '.'; in realpath1()
[all …]
/src/contrib/bmake/
H A Drealpath.c67 realpath(const char * __restrict path, char * __restrict resolved) in realpath() argument
82 if (resolved == NULL) { in realpath()
83 fres = resolved = malloc(MAXPATHLEN); in realpath()
84 if (resolved == NULL) in realpath()
99 p = resolved; in realpath()
110 if (resolved && getcwd(resolved, MAXPATHLEN) == NULL) { in realpath()
115 len = strlen(resolved); in realpath()
126 if (p == resolved) in realpath()
129 return resolved; in realpath()
146 if (p != resolved) in realpath()
[all …]
/src/contrib/ntp/tests/libntp/
H A Drealpath.c12 static char * resolved; variable
16 resolved = NULL; in setUp()
21 free(resolved); in tearDown()
22 resolved = NULL; in tearDown()
53 resolved = ntp_realpath("."); in test_CurrentWorkingDir()
54 TEST_ASSERT_NOT_NULL_MESSAGE(resolved, "failed to resolve '.'"); in test_CurrentWorkingDir()
55 TEST_ASSERT_TRUE_MESSAGE(isValidAbsPath(resolved), "'.' not resolved to absolute path"); in test_CurrentWorkingDir()
81 resolved = ntp_realpath(nam); in test_DevLinks()
82 TEST_ASSERT_NOT_NULL_MESSAGE(resolved, errMsg("could not resolve '%s'", nam)); in test_DevLinks()
83 strlcpy(abs, resolved, sizeof(abs)); in test_DevLinks()
[all …]
/src/contrib/libder/tests/
H A Dtest_common.h16 char pdir[PATH_MAX], *resolved; in open_progdir() local
19 resolved = realpath(prog, &pdir[0]); in open_progdir()
20 assert(resolved != NULL); in open_progdir()
22 resolved = dirname(&pdir[0]); in open_progdir()
23 assert(resolved != NULL); in open_progdir()
25 dfd = open(resolved, O_DIRECTORY); in open_progdir()
/src/contrib/wireguard-tools/
H A Dconfig.c42 struct addrinfo *resolved; in parse_port() local
55 ret = getaddrinfo(NULL, value, &hints, &resolved); in parse_port()
62 if (resolved->ai_family == AF_INET && resolved->ai_addrlen == sizeof(struct sockaddr_in)) { in parse_port()
63 *port = ntohs(((struct sockaddr_in *)resolved->ai_addr)->sin_port); in parse_port()
65 …} else if (resolved->ai_family == AF_INET6 && resolved->ai_addrlen == sizeof(struct sockaddr_in6))… in parse_port()
66 *port = ntohs(((struct sockaddr_in6 *)resolved->ai_addr)->sin6_port); in parse_port()
71 freeaddrinfo(resolved); in parse_port()
200 struct addrinfo *resolved; in parse_endpoint() local
242 ret = getaddrinfo(begin, end, &hints, &resolved); in parse_endpoint()
268 if ((resolved->ai_family == AF_INET && resolved->ai_addrlen == sizeof(struct sockaddr_in)) || in parse_endpoint()
[all …]
H A Dipc-uapi.h209 struct addrinfo *resolved; in userspace_get_device() local
232 if (getaddrinfo(begin, end, &hints, &resolved) != 0) { in userspace_get_device()
236 if ((resolved->ai_family == AF_INET && resolved->ai_addrlen == sizeof(struct sockaddr_in)) || in userspace_get_device()
237 (resolved->ai_family == AF_INET6 && resolved->ai_addrlen == sizeof(struct sockaddr_in6))) in userspace_get_device()
238 memcpy(&peer->endpoint.addr, resolved->ai_addr, resolved->ai_addrlen); in userspace_get_device()
240 freeaddrinfo(resolved); in userspace_get_device()
243 freeaddrinfo(resolved); in userspace_get_device()
/src/sys/contrib/openzfs/contrib/dracut/02zfsexpandknowledge/
H A Dmodule-setup.sh.in17 local resolved
26 resolved="$(readlink -f "$pooldev")"
27 dinfo "zfsexpandknowledge: pool $1 has device $pooldev (which resolves to $resolved)"
28 echo "$resolved"
/src/usr.sbin/snapinfo/
H A Dsnapinfo.c86 char resolved[PATH_MAX]; in main() local
93 if (realpath(path, resolved) == NULL || /* can create full path */ in main()
94 stat(resolved, &st) == -1 || /* is it stat'able */ in main()
98 path = resolved; in main()
/src/lib/libutil/
H A Dmntopts.c121 checkpath(const char *path, char *resolved) in checkpath() argument
125 if (realpath(path, resolved) == NULL || stat(resolved, &sb) != 0) in checkpath()
135 checkpath_allow_file(const char *path, char *resolved) in checkpath_allow_file() argument
139 if (realpath(path, resolved) == NULL || stat(resolved, &sb) != 0) in checkpath_allow_file()
/src/sbin/mount_nullfs/
H A Dmount_nullfs.c51 stat_realpath(const char *path, char *resolved, struct stat *sbp) in stat_realpath() argument
53 if (realpath(path, resolved) == NULL || stat(resolved, sbp) != 0) in stat_realpath()
/src/contrib/llvm-project/lldb/source/Utility/
H A DFileSpec.cpp181 llvm::SmallString<128> resolved(pathname); in SetFile() local
184 if (needsNormalization(resolved)) in SetFile()
185 llvm::sys::path::remove_dots(resolved, true, m_style); in SetFile()
189 std::replace(resolved.begin(), resolved.end(), '\\', '/'); in SetFile()
191 if (resolved.empty()) { in SetFile()
201 llvm::StringRef filename = llvm::sys::path::filename(resolved, m_style); in SetFile()
205 llvm::StringRef directory = llvm::sys::path::parent_path(resolved, m_style); in SetFile()
/src/contrib/unbound/iterator/
H A Diter_delegpt.c82 copy->nslist->resolved = ns->resolved; in delegpt_copy()
126 ns->resolved = 0; in delegpt_add_ns()
189 ns->resolved = 1; in delegpt_add_target()
255 if(!ns->resolved) in delegpt_count_ns()
303 (ns->resolved?"*":""), in delegpt_log()
391 if(ns->resolved) continue; in delegpt_count_missing_targets()
555 ns->resolved = 1; in delegpt_mark_neg()
578 ns->resolved = 1; in delegpt_no_ipv6()
588 ns->resolved = 1; in delegpt_no_ipv4()
665 ns->resolved = 0; in delegpt_add_ns_mlc()
[all …]
/src/usr.sbin/etcupdate/tests/
H A Dconflicts_test.sh194 resolved() function
229 resolved /etc/login.conf
239 resolved /etc/login.conf
257 resolved /etc/login.conf
/src/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.h47 DeclStatus(lldb::user_id_t uid, bool resolved) in DeclStatus()
48 : uid(uid), resolved(resolved) {} in DeclStatus()
50 bool resolved = false; member
/src/sys/netpfil/ipfw/
H A Dip_fw_iface.c358 iif->resolved = 1; in ipfw_iface_ref()
382 if (iif->resolved != 0) in ipfw_iface_add_notify()
431 iif->resolved = 1; in handle_ifattach()
457 iif->resolved = 0; in handle_ifdetach()
482 if (iif->resolved) in export_iface_internal()
/src/contrib/llvm-project/lldb/source/Host/common/
H A DFileSystem.cpp229 SmallString<128> resolved(path.begin(), path.end()); in Resolve() local
232 resolved); in Resolve()
235 SmallString<128> absolute(resolved.begin(), resolved.end()); in Resolve()
242 path.append(resolved.begin(), resolved.end()); in Resolve()
/src/usr.bin/rctl/
H A Drctl.c179 char *copy, *expanded, *resolved, *tofree; in expand_rule() local
219 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule()
227 ret = asprintf(&resolved, "%s:%d:%s", subject, (int)id, rest); in expand_rule()
229 ret = asprintf(&resolved, "%s:%s:%s", subject, textid, rest); in expand_rule()
240 expanded = expand_amount(resolved, rule); in expand_rule()
241 free(resolved); in expand_rule()
/src/contrib/llvm-project/lldb/source/Target/
H A DStackFrame.cpp304 uint32_t resolved = 0; in GetSymbolContext() local
310 resolved |= eSymbolContextTarget; in GetSymbolContext()
334 resolved |= eSymbolContextCompUnit; in GetSymbolContext()
343 resolved |= eSymbolContextFunction; in GetSymbolContext()
352 resolved |= eSymbolContextBlock; in GetSymbolContext()
361 resolved |= eSymbolContextSymbol; in GetSymbolContext()
370 resolved |= eSymbolContextLineEntry; in GetSymbolContext()
382 resolved |= m_sc.module_sp->ResolveSymbolContextForAddress( in GetSymbolContext()
387 if ((resolved & eSymbolContextCompUnit) && m_sc.comp_unit == nullptr) in GetSymbolContext()
389 if ((resolved & eSymbolContextFunction) && m_sc.function == nullptr) in GetSymbolContext()
[all …]
/src/sbin/fsck_ffs/
H A Dglobs.c84 char resolved; /* cleared if unresolved changes => not clean */ variable
142 resolved = 0; in fsckinit()
H A Dmain.c430 resolved = 1; in checkfilesys()
546 resolved = 0; in checkfilesys()
552 resolved = 0; in checkfilesys()
553 ckfini(resolved); in checkfilesys()
/src/contrib/ofed/infiniband-diags/src/
H A Diblinkinfo.c593 int resolved = -1; in main() local
671 if ((resolved = in main()
677 if ((resolved = in main()
708 if (resolved >= 0) { in main()
/src/contrib/llvm-project/lldb/source/Core/
H A DValue.cpp413 bool resolved = false; in GetValueAsData() local
427 resolved = true; in GetValueAsData()
437 resolved = true; in GetValueAsData()
444 if (!resolved) { in GetValueAsData()
/src/sbin/ipf/libipf/
H A Dipft_tx.c43 tx_hostnum(char *host, int *resolved) in tx_hostnum() argument
47 *resolved = 0; in tx_hostnum()
54 *resolved = -1; in tx_hostnum()

1234567