{"id":6707,"date":"2022-12-20T19:33:28","date_gmt":"2022-12-20T22:33:28","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ftw-man3\/"},"modified":"2022-12-20T19:33:28","modified_gmt":"2022-12-20T22:33:28","slug":"ftw-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ftw-man3\/","title":{"rendered":"FTW (man3)"},"content":{"rendered":"<h1 align=\"center\">FTW<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#RETURN VALUE\">RETURN VALUE<\/a><br \/> <a href=\"#VERSIONS\">VERSIONS<\/a><br \/> <a href=\"#ATTRIBUTES\">ATTRIBUTES<\/a><br \/> <a href=\"#CONFORMING TO\">CONFORMING TO<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#BUGS\">BUGS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COLOPHON\">COLOPHON<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ftw, nftw \u2212 file tree walk<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <ftw.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>int nftw(const char *<\/b><i>dirpath<\/i><b>, <br \/> int (*<\/b><i>fn<\/i><b>) (const char *<\/b><i>fpath<\/i><b>, const struct stat *<\/b><i>sb<\/i><b>, <br \/> int<\/b> <i>typeflag<\/i><b>, struct FTW *<\/b><i>ftwbuf<\/i><b>), <br \/> int<\/b> <i>nopenfd<\/i><b>, int<\/b> <i>flags<\/i><b>);<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <ftw.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>int ftw(const char *<\/b><i>dirpath<\/i><b>, <br \/> int (*<\/b><i>fn<\/i><b>) (const char *<\/b><i>fpath<\/i><b>, const struct stat *<\/b><i>sb<\/i><b>, <br \/> int<\/b> <i>typeflag<\/i><b>), <br \/> int<\/b> <i>nopenfd<\/i><b>);<\/b><\/p>\n<p style=\"margin-left:5%; margin-top: 1em\">Feature Test Macro Requirements for glibc (see <b>feature_test_macros<\/b>(7)):<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nftw<\/b>(): _XOPEN_SOURCE >= 500<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nftw<\/b>() walks through the directory tree that is located under the directory <i>dirpath<\/i>, and calls <i>fn<\/i>() once for each entry in the tree. By default, directories are handled before the files and subdirectories they contain (preorder traversal).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To avoid using up all of the calling process\u2019s file descriptors, <i>nopenfd<\/i> specifies the maximum number of directories that <b>nftw<\/b>() will hold open simultaneously. When the search depth exceeds this, <b>nftw<\/b>() will become slower because directories have to be closed and reopened. <b>nftw<\/b>() uses at most one file descriptor for each level in the directory tree.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For each entry found in the tree, <b>nftw<\/b>() calls <i>fn<\/i>() with four arguments: <i>fpath<\/i>, <i>sb<\/i>, <i>typeflag<\/i>, and <i>ftwbuf<\/i>. <i>fpath<\/i> is the pathname of the entry, and is expressed either as a pathname relative to the calling process\u2019s current working directory at the time of the call to <b>nftw<\/b>(), if <i>dirpath<\/i> was expressed as a relative pathname, or as an absolute pathname, if <i>dirpath<\/i> was expressed as an absolute pathname. <i>sb<\/i> is a pointer to the <i>stat<\/i> structure returned by a call to <b>stat<\/b>(2) for <i>fpath<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>typeflag<\/i> argument passed to <i>fn<\/i>() is an integer that has one of the following values:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>FTW_F<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"36%\">\n<p><i>fpath<\/i> is a regular file.<\/p>\n<\/td>\n<td width=\"42%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>FTW_D<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"36%\">\n<p><i>fpath<\/i> is a directory.<\/p>\n<\/td>\n<td width=\"42%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>FTW_DNR<\/b><\/p>\n<p style=\"margin-left:22%;\"><i>fpath<\/i> is a directory which can\u2019t be read.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>FTW_DP<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p><i>fpath<\/i> is a directory, and <b>FTW_DEPTH<\/b> was specified in <i>flags<\/i>. (If <b>FTW_DEPTH<\/b> was not specified in <i>flags<\/i>, then directories will always be visited with <i>typeflag<\/i> set to <b>FTW_D<\/b>.) All of the files and subdirectories within <i>fpath<\/i> have been processed.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>FTW_NS<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The <b>stat<\/b>(2) call failed on <i>fpath<\/i>, which is not a symbolic link. The probable cause for this is that the caller had read permission on the parent directory, so that the filename <i>fpath<\/i> could be seen, but did not have execute permission, so that the file could not be reached for <b>stat<\/b>(2). The contents of the buffer pointed to by <i>sb<\/i> are undefined.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>FTW_SL<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p><i>fpath<\/i> is a symbolic link, and <b>FTW_PHYS<\/b> was set in <i>flags<\/i>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>FTW_SLN<\/b><\/p>\n<p style=\"margin-left:22%;\"><i>fpath<\/i> is a symbolic link pointing to a nonexistent file. (This occurs only if <b>FTW_PHYS<\/b> is not set.) In this case the <i>sb<\/i> argument passed to <i>fn<\/i>() contains information returned by performing <b>lstat<\/b>(2) on the &#8220;dangling&#8221; symbolic link. (But see BUGS.)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The fourth argument (<i>ftwbuf<\/i>) that <b>nftw<\/b>() supplies when calling <i>fn<\/i>() is a pointer to a structure of type <i>FTW<\/i>:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">struct FTW { <br \/> int base; <br \/> int level; <br \/> };<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>base<\/i> is the offset of the filename (i.e., basename component) in the pathname given in <i>fpath<\/i>. <i>level<\/i> is the depth of <i>fpath<\/i> in the directory tree, relative to the root of the tree (<i>dirpath<\/i>, which has depth 0).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">To stop the tree walk, <i>fn<\/i>() returns a nonzero value; this value will become the return value of <b>nftw<\/b>(). As long as <i>fn<\/i>() returns 0, <b>nftw<\/b>() will continue either until it has traversed the entire tree, in which case it will return zero, or until it encounters an error (such as a <b>malloc<\/b>(3) failure), in which case it will return \u22121.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Because <b>nftw<\/b>() uses dynamic data structures, the only safe way to exit out of a tree walk is to return a nonzero value from <i>fn<\/i>(). To allow a signal to terminate the walk without causing a memory leak, have the handler set a global flag that is checked by <i>fn<\/i>(). <i>Don\u2019t<\/i> use <b>longjmp<\/b>(3) unless the program is going to terminate.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>flags<\/i> argument of <b>nftw<\/b>() is formed by ORing zero or more of the following flags: <b><br \/> FTW_ACTIONRETVAL<\/b> (since glibc 2.3.3)<\/p>\n<p style=\"margin-left:22%;\">If this glibc-specific flag is set, then <b>nftw<\/b>() handles the return value from <i>fn<\/i>() differently. <i>fn<\/i>() should return one of the following values: <b><br \/> FTW_CONTINUE<\/b><\/p>\n<p style=\"margin-left:32%;\">Instructs <b>nftw<\/b>() to continue normally.<\/p>\n<p style=\"margin-left:22%;\"><b>FTW_SKIP_SIBLINGS<\/b><\/p>\n<p style=\"margin-left:32%;\">If <i>fn<\/i>() returns this value, then siblings of the current entry will be skipped, and processing continues in the parent.<\/p>\n<p style=\"margin-left:22%;\"><b>FTW_SKIP_SUBTREE<\/b><\/p>\n<p style=\"margin-left:32%;\">If <i>fn<\/i>() is called with an entry that is a directory (<i>typeflag<\/i> is <b>FTW_D<\/b>), this return value will prevent objects within that directory from being passed as arguments to <i>fn<\/i>(). <b>nftw<\/b>() continues processing with the next sibling of the directory.<\/p>\n<p style=\"margin-left:22%;\"><b>FTW_STOP<\/b><\/p>\n<p style=\"margin-left:32%;\">Causes <b>nftw<\/b>() to return immediately with the return value <b>FTW_STOP<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Other return values could be associated with new actions in the future; <i>fn<\/i>() should not return values other than those listed above.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The feature test macro <b>_GNU_SOURCE<\/b> must be defined (before including <i>any<\/i> header files) in order to obtain the definition of <b>FTW_ACTIONRETVAL<\/b> from <i><ftw.h><\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>FTW_CHDIR<\/b><\/p>\n<p style=\"margin-left:22%;\">If set, do a <b>chdir<\/b>(2) to each directory before handling its contents. This is useful if the program needs to perform some action in the directory in which <i>fpath<\/i> resides. (Specifying this flag has no effect on the pathname that is passed in the <i>fpath<\/i> argument of <i>fn<\/i>.)<\/p>\n<p style=\"margin-left:11%;\"><b>FTW_DEPTH<\/b><\/p>\n<p style=\"margin-left:22%;\">If set, do a post-order traversal, that is, call <i>fn<\/i>() for the directory itself <i>after<\/i> handling the contents of the directory and its subdirectories. (By default, each directory is handled <i>before<\/i> its contents.)<\/p>\n<p style=\"margin-left:11%;\"><b>FTW_MOUNT<\/b><\/p>\n<p style=\"margin-left:22%;\">If set, stay within the same filesystem (i.e., do not cross mount points).<\/p>\n<p style=\"margin-left:11%;\"><b>FTW_PHYS<\/b><\/p>\n<p style=\"margin-left:22%;\">If set, do not follow symbolic links. (This is what you want.) If not set, symbolic links are followed, but no file is reported twice.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">If <b>FTW_PHYS<\/b> is not set, but <b>FTW_DEPTH<\/b> is set, then the function <i>fn<\/i>() is never called for a directory that would be a descendant of itself.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ftw() <br \/> ftw<\/b>() is an older function that offers a subset of the functionality of <b>nftw<\/b>(). The notable differences are as follows:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>*<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"85%\">\n<p><b>ftw<\/b>() has no <i>flags<\/i> argument. It behaves the same as when <b>nftw<\/b>() is called with <i>flags<\/i> specified as zero.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>*<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"85%\">\n<p>The callback function, <i>fn<\/i>(), is not supplied with a fourth argument.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>*<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"85%\">\n<p>The range of values that is passed via the <i>typeflag<\/i> argument supplied to <i>fn<\/i>() is smaller: just <b>FTW_F<\/b>, <b>FTW_D<\/b>, <b>FTW_DNR<\/b>, <b>FTW_NS<\/b>, and (possibly) <b>FTW_SL<\/b>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>RETURN VALUE <a name=\"RETURN VALUE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These functions return 0 on success, and \u22121 if an error occurs.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>fn<\/i>() returns nonzero, then the tree walk is terminated and the value returned by <i>fn<\/i>() is returned as the result of <b>ftw<\/b>() or <b>nftw<\/b>().<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <b>nftw<\/b>() is called with the <b>FTW_ACTIONRETVAL<\/b> flag, then the only nonzero value that should be used by <i>fn<\/i>() to terminate the tree walk is <b>FTW_STOP<\/b>, and that value is returned as the result of <b>nftw<\/b>().<\/p>\n<h2>VERSIONS <a name=\"VERSIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>nftw<\/b>() is available under glibc since version 2.1.<\/p>\n<h2>ATTRIBUTES <a name=\"ATTRIBUTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">For an explanation of the terms used in this section, see <b>attributes<\/b>(7).<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-1647531.png\" alt=\"Image grohtml-1647531.png\"><\/p>\n<h2>CONFORMING TO <a name=\"CONFORMING TO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">POSIX.1-2001, POSIX.1-2008, SVr4, SUSv1. POSIX.1-2008 marks <b>ftw<\/b>() as obsolete.<\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">POSIX.1-2008 notes that the results are unspecified if <i>fn<\/i> does not preserve the current working directory.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The function <b>nftw<\/b>() and the use of <b>FTW_SL<\/b> with <b>ftw<\/b>() were introduced in SUSv1.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In some implementations (e.g., glibc), <b>ftw<\/b>() will never use <b>FTW_SL<\/b>, on other systems <b>FTW_SL<\/b> occurs only for symbolic links that do not point to an existing file, and again on other systems <b>ftw<\/b>() will use <b>FTW_SL<\/b> for each symbolic link. If <i>fpath<\/i> is a symbolic link and <b>stat<\/b>(2) failed, POSIX.1-2008 states that it is undefined whether <b>FTW_NS<\/b> or <b>FTW_SL<\/b> is passed in <i>typeflag<\/i>. For predictable results, use <b>nftw<\/b>().<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">According to POSIX.1-2008, when the <i>typeflag<\/i> argument passed to <i>fn<\/i>() contains <b>FTW_SLN<\/b>, the buffer pointed to by <i>sb<\/i> should contain information about the dangling symbolic link (obtained by calling <b>lstat<\/b>(2) on the link). Early glibc versions correctly followed the POSIX specification on this point. However, as a result of a regression introduced in glibc 2.4, the contents of the buffer pointed to by <i>sb<\/i> were undefined when <b>FTW_SLN<\/b> is passed in <i>typeflag<\/i>. (More precisely, the contents of the buffer were left unchanged in this case.) This regression was eventually fixed in glibc 2.30, so that the glibc implementation (once more) follows the POSIX specification.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The following program traverses the directory tree under the path named in its first command-line argument, or under the current directory if no argument is supplied. It displays various information about each file. The second command-line argument can be used to specify characters that control the value assigned to the <i>flags<\/i> argument when calling <b>nftw<\/b>().<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Program source<\/b> <br \/> #define _XOPEN_SOURCE 500 <br \/> #include <ftw.h> <br \/> #include <stdio.h> <br \/> #include <stdlib.h> <br \/> #include <string.h> <br \/> #include <stdint.h><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">static int <br \/> display_info(const char *fpath, const struct stat *sb, <br \/> int tflag, struct FTW *ftwbuf) <br \/> { <br \/> printf(&#8220;%\u22123s %2d &#8220;, <br \/> (tflag == FTW_D) ? &#8220;d&#8221; : (tflag == FTW_DNR) ? &#8220;dnr&#8221; : <br \/> (tflag == FTW_DP) ? &#8220;dp&#8221; : (tflag == FTW_F) ? &#8220;f&#8221; : <br \/> (tflag == FTW_NS) ? &#8220;ns&#8221; : (tflag == FTW_SL) ? &#8220;sl&#8221; : <br \/> (tflag == FTW_SLN) ? &#8220;sln&#8221; : &#8220;???&#8221;, <br \/> ftwbuf\u2212>level);<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">if (tflag == FTW_NS) <br \/> printf(&#8220;\u2212\u2212\u2212\u2212\u2212\u2212\u2212&#8221;); <br \/> else <br \/> printf(&#8220;%7jd&#8221;, (intmax_t) sb\u2212>st_size);<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">printf(&#8221; %\u221240s %d %sn&#8221;, <br \/> fpath, ftwbuf\u2212>base, fpath + ftwbuf\u2212>base);<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">return 0; \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var To tell nftw() to continue bodies\/ usr\/ <br \/> }<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <br \/> main(int argc, char *argv[]) <br \/> { <br \/> int flags = 0;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">if (argc > 2 &#038;&#038; strchr(argv[2], &#8216;d&#8217;) != NULL) <br \/> flags |= FTW_DEPTH; <br \/> if (argc > 2 &#038;&#038; strchr(argv[2], &#8216;p&#8217;) != NULL) <br \/> flags |= FTW_PHYS;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">if (nftw((argc < 2) ? \".\" : argv[1], display_info, 20, flags) <br \/> == \u22121) { <br \/> perror(&#8220;nftw&#8221;); <br \/> exit(EXIT_FAILURE); <br \/> }<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">exit(EXIT_SUCCESS); <br \/> }<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>stat<\/b>(2), <b>fts<\/b>(3), <b>readdir<\/b>(3)<\/p>\n<h2>COLOPHON <a name=\"COLOPHON\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This page is part of release 5.10 of the Linux <i>man-pages<\/i> project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https:\/\/www.kernel.org\/doc\/man\u2212pages\/.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ftw, nftw \u2212 file tree walk <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,2193,3007],"class_list":["post-6707","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-ftw","tag-man3"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6707"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6707\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}