resolved_name
char *resolved_name;
resolved_name = inet_name(&ip_addr, AF_INET6);
if (nflag || (strcmp(temp_buf, resolved_name) == 0))
Printf(" %s (%s)", resolved_name, temp_buf);
rsrc_get_type(const char *resolved_name)
if (resolved_name[0] != '/')
if (strncmp("/devices/", resolved_name, 9) == 0)
(void) strlcpy(resolved_name,
(void) strcpy(resolved_name, cwd);
return (resolved_name);
realpath(const char *file_name, char *resolved_name)
if (resolved_name != NULL)
return (realpath_impl(file_name, resolved_name));
realpath_impl(const char *file_name, char *resolved_name)
if ((len = resolvepath(file_name, resolved_name, PATH_MAX)) < 0) {
(void) strlcpy(resolved_name, file_name, PATH_MAX);
resolved_name[len] = '\0';
if (*resolved_name == '/') /* nothing more to do */
return (resolved_name);
(void) strlcpy(resolved_name, file_name, PATH_MAX);
if (len != 0 && strcmp(resolved_name, ".") != 0) {
char *relpath = resolved_name;