{"id":192264,"date":"2013-09-02T17:32:03","date_gmt":"2013-09-02T13:32:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=192264"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=192264","title":{"rendered":"<span class=\"post_title\">\u0423\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 Linux<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0423\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0442\u043e\u043d\u043d\u044b \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0434\u0430\u043d\u043d\u0443\u044e \u0442\u0435\u043c\u0443, \u043d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043f\u0438\u0441\u0430\u0442\u0435\u043b\u0438 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0438 \u043c\u0430\u0439\u043d\u0442\u0435\u043d\u0435\u0440\u044b \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u043c\u0438\u043c\u043e \u0442\u0430\u043a\u0438\u0435 \u0432\u0435\u0449\u0438 \u043a\u0430\u043a \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u0443\u0442\u0435\u0439 \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432: \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a, \u0437\u0432\u0443\u043a\u043e\u0432, \u0438\u043a\u043e\u043d\u043e\u043a, \u0448\u0440\u0438\u0444\u0442\u043e\u0432, \u0438 \u043f\u0440.<\/p>\n<p>  \u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0441 \u0443\u0442\u0438\u043b\u0438\u0442\u044b bootchart \u0438\u043b\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: <a href=\"http:\/\/www.bootchart.org\/samples.html\">www.bootchart.org\/samples.html<\/a> <\/p>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a, \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438, \u0441\u043b\u0438\u043d\u043a\u043e\u0432\u0430\u043d \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441 glibc, \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438. \u041f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u0435, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u0432\u044b\u0437\u043e\u0432 dlopen(),<\/p>\n<pre><code class=\"cpp\">handle = dlopen(&quot;libm.so&quot;, RTLD_LAZY);           if (!handle) {                fprintf(stderr, &quot;%s\\n&quot;, dlerror());                exit(EXIT_FAILURE); } <\/code><\/pre>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 libdl.so \u0438 \u043f\u043e\u0438\u0441\u043a \u043d\u0443\u0436\u043d\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438\u0434\u0435\u0442 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 <b>\/etc\/ld.so.conf<\/b>, <b>\/etc\/ld.so.preload<\/b>, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 <b>LD_LIBRARY_PATH<\/b> \u0438 <b>LD_PRELOAD<\/b> \u0438 \u0432 \u043a\u044d\u0448\u0435 <b>\/etc\/ld.so.cache<\/b>, \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445, \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u0445 \u043e\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 glibc, \u0443\u0441\u043b\u043e\u0432\u0438\u0439. \u041d\u0430\u043f\u043e\u043c\u043d\u044e,<b> ld.so.cache<\/b> \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439<b> ldconfig<\/b>, \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u043f\u0443\u0442\u0435\u0439 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0432 <b>\/etc\/ld.so.conf<\/b>. \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u043e\u0431\u0445\u043e\u0434\u0430 \u043f\u0443\u0442\u0435\u0439 \u043f\u043e\u0438\u0441\u043a\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435.<\/p>\n<p>  \u0422\u0430\u043a \u0432\u043e\u0442, \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u044e\u0442 \u044d\u0442\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u043d\u043e \u043d\u0430 \u0441\u0432\u043e\u0438\u0445 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u0445 \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440, \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u043e \u044d\u0442\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0432 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435: <\/p>\n<pre><code class=\"bash\"># strace -e open ps  open(&quot;\/etc\/ld.so.preload&quot;, O_RDONLY|O_CLOEXEC) = 3 open(&quot;\/usr\/lib64\/tls\/x86_64\/libprocps.so.0&quot;, O_RDONLY|O_CLOEXEC) = -1  ENOENT (No such file or directory) open(&quot;\/usr\/lib64\/tls\/libprocps.so.0&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open(&quot;\/usr\/lib64\/libprocps.so.0&quot;, O_RDONLY|O_CLOEXEC) = 0 open(&quot;\/usr\/lib64\/tls\/x86_64\/librt.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open(&quot;\/usr\/lib64\/tls\/librt.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open(&quot;\/usr\/lib64\/librt.so.1&quot;, O_RDONLY|O_CLOEXEC) = 0 <\/code><\/pre>\n<p>  \u2026 \u0438\u0442\u0434.<\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 libprocps \u0438 librt \u043d\u0430\u0448\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u0440\u0430\u0437\u0430, \u0432\u044b\u0434\u0435\u043b\u0438\u043b \u0436\u0438\u0440\u043d\u044b\u043c. (\u2026 \u043f\u043e\u0447\u0435\u043c\u0443 glibc \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e stat+open, \u043d\u0435 \u044f\u0441\u043d\u043e, \u043d\u043e \u043d\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u2026).<\/p>\n<p>  \u0423\u0436\u0435 \u043d\u0430\u0432\u0435\u0440\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 strace. \u041d\u0435 \u0432\u0434\u0430\u0432\u0430\u044f\u0441\u044c \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, strace \u2014 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u0439 \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439. \u0423 \u043d\u0435\u0451 \u0435\u0441\u0442\u044c \u0434\u0432\u0430, \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 -e c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c, \u0438\u043c\u0435\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0435\u0433\u043e \u043d\u0430\u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430, \u0438 \u0444\u043b\u0430\u0433 -f \u2014 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0443 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432.<br \/>  (-ff \u0438 -o, \u043d\u043e \u043e\u043d\u0438\u0445 \u043f\u043e\u0437\u0436\u0435). <\/p>\n<h5><b>1. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/b><\/h5>\n<p>   \u0421\u0430\u043c\u0430 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a \u043d\u0430\u0437\u0432\u0430\u0442\u044c, \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0434\u0441\u043e\u0432\u044b\u0432\u0430\u043d\u0438\u0438 \u043d\u0443\u0436\u043d\u044b\u0445 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u043d\u0430\u0448\u0438\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u043c. \u041f\u043b\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u043f\u0438\u0438 \u043e\u0434\u043d\u0438\u0445 \u0438 \u0442\u0435\u0445 \u0436\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0441\u044b\u043b\u043a\u0438 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043d\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0438\u043b\u0438 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438. \u0418\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u044b\u0448\u0435, \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438\u0449\u0435\u0442 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/usr\/lib64\/tls\/x86_64, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442. \u041d\u0443\u0436\u043d\u043e \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0434\u0438\u043d \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043c\u0435\u043d\u044c\u0448\u0435, \u0442.\u0435 \/usr\/lib64\/tls, \u0430 \u0432 \u043d\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 x86_64 \u043d\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \/usr\/lib64:<\/p>\n<pre><code class=\"bash\"># mkdir \/usr\/lib64\/tls\/  # ln -s \/usr\/lib64\/tls\/x86_64 \/usr\/lib64 <\/code><\/pre>\n<p>  \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/p>\n<pre><code class=\"bash\"># ls -l \/usr\/lib64\/tls\/x86_64   \/usr\/lib64\/tls\/x86_64 -&gt; \/usr\/lib64 <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443   <\/p>\n<pre><code class=\"bash\">$ strace -e open ps  open(&quot;\/etc\/ld.so.preload&quot;, O_RDONLY|O_CLOEXEC) = 3 open(&quot;\/usr\/lib64\/libprocps.so.0&quot;, O_RDONLY|O_CLOEXEC) = 0 open(&quot;\/usr\/lib64\/librt.so.1&quot;, O_RDONLY|O_CLOEXEC) = 0 <\/code><\/pre>\n<p>   \u041f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e, \u043c\u0438\u043d\u0443\u0441 \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u0430 \u0438 \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0434\u0432\u0443\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430. <\/p>\n<h4><b>2. \u041b\u043e\u043a\u0430\u043b\u0438.<\/b><\/h4>\n<p>   \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439 \u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 <b>LC_CTYPE<\/b>, <b>LC_MESSAGES<\/b> \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. \u042d\u0442\u0430 \u0431\u044f\u0434\u0430 \u0442\u044f\u043d\u0435\u0442\u0441\u044f \u0435\u0449\u0451 \u0441 \u043b\u043e\u0445\u043c\u0430\u0442\u044b\u0445 90-\u0445, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0432 SuSE. \u0414\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043b\u0435\u0436\u0430\u0442\u044c \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <b>$LOCALES\/$USER_LOCALE<\/b> (\u0438\u043c\u0435\u043d\u0430 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0435). <br \/>  <b>LOCALES<\/b> \u2014 \u044d\u0442\u043e \u043e\u0431\u0449\u0430\u044f \u0441\u0432\u0430\u043b\u043a\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043b\u043e\u043a\u0430\u043b\u0435\u0439. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <b>I18NPATH<\/b> (\u0443 \u043a\u043e\u0433\u043e \u0432 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435 \u043e\u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430? \ud83d\ude42 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u043b\u043e\u043a\u0430\u043b\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 localedef &#8212;help )<br \/>  <b>USER_LOCALE<\/b> \u2014 \u044d\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 locale. <\/p>\n<pre><code class=\"bash\">$ locale LANG=ru_RU.UTF-8 LC_CTYPE=ru_RU.UTF-8 LC_MESSAGES=ru_RU.UTF-8 \u2026 <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 glibc, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0449\u0443\u0442 \u044d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b \u0432 \u0437\u0430\u0431\u0430\u0432\u043d\u043e\u043c, \u043d\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e\u043c, \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. <\/p>\n<pre><code class=\"bash\">$ strace -e open ps  open(&quot;\/usr\/lib\/locale\/ru_RU.UTF-8\/LC_MESSAGES&quot;, O_RDONLY|O_CLOEXEC) = -1 open(&quot;\/usr\/lib\/locale\/ru_RU\/LC_MESSAGES&quot;, O_RDONLY|O_CLOEXEC) =  -1  open(&quot;\/usr\/lib\/locale\/ru\/LC_MESSAGES&quot;, O_RDONLY|O_CLOEXEC) = 3 <\/code><\/pre>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432 <b>\/usr\/lib\/locale\/ru_RU.UTF-8<\/b>, \u043f\u043e\u0442\u043e\u043c \u0432 <b>\/usr\/lib\/locale\/ru_RU<\/b>, \u0437\u0430\u0442\u0435\u043c \u0432 <b>\/usr\/lib\/locale\/ru<\/b> <br \/>  \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0445\u0435\u043c\u0435 \u2014 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0441\u044b\u043b\u043a\u0443 <b>\/usr\/lib\/locale\/ru_RU.UTF-8<\/b> \u043d\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <b>\/usr\/lib\/locale\/ru <\/b><\/p>\n<pre><code class=\"bash\"># ln -s \/usr\/lib\/locale\/ru_RU.UTF-8 \/usr\/lib\/locale\/ru; <\/code><\/pre>\n<p>  \u0438 \u0441\u043a\u0430\u0436\u0435\u043c glibc, \u0447\u0442\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c ru_RU.UTF-8, \u0430 \u043d\u0435 ru. <br \/>  (\u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043a\u0430\u043a \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0433\u043b\u044e\u043a\u043e\u0432, \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0434\u0435\u043b\u0430\u0439\u0442\u0435)  <\/p>\n<pre><code class=\"bash\"># localedef -f UTF-8 -i ru_RU ru_RU.UTF-8; <\/code><\/pre>\n<p>  \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c:  <\/p>\n<pre><code class=\"bash\">$ strace -e open ps  open(&quot;\/usr\/lib\/locale\/ru_RU.UTF-8\/LC_MEASUREMENT&quot;, O_RDONLY|O_CLOEXEC) = 3 open(&quot;\/usr\/lib\/locale\/ru_RU.UTF-8\/LC_TELEPHONE&quot;, O_RDONLY|O_CLOEXEC) = 3 open(&quot;\/usr\/lib\/locale\/ru_RU.UTF-8\/LC_ADDRESS&quot;, O_RDONLY|O_CLOEXEC) = 3 open(&quot;\/usr\/lib\/locale\/ru_RU.UTF-8\/LC_NAME&quot;, O_RDONLY|O_CLOEXEC) = 3 open(&quot;\/usr\/lib\/locale\/ru_RU.UTF-8\/LC_PAPER&quot;, O_RDONLY|O_CLOEXEC) = 3 open(&quot;\/usr\/lib\/locale\/ru_RU.UTF-8\/LC_MESSAGES&quot;, O_RDONLY|O_CLOEXEC) = 3 \u2026 <\/code><\/pre>\n<p>  \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u0438\u043d\u0443\u0441 \u043f\u043e \u0434\u0432\u0430 open \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440! <\/p>\n<h5><b>3. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/b><\/h5>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u043a\u0438 \u2014 xterm. \u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u043f\u043e\u043b\u043d\u043e\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 POSIX, LSB, X\/Open, IEEE, ISO, \u0413\u041e\u0421\u0422, DIN \ud83d\ude42 \u041b\u0435\u0437\u0435\u0442 \u0432 shared library, \u0432 \u043b\u043e\u043a\u0430\u043b\u0438, \u043b\u043e\u043a\u0430\u043b\u0438 Xorg \u0438 \u0434\u0430\u043b\u0435\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u0434\u043b\u044f Xorg\/Xfree86 \u043a\u043e\u043d\u0444\u0438\u0433\u0438. \u041e\u043f\u044f\u0442\u044c \u0436\u0435 \u0431\u0435\u0437 \u0432\u043d\u0438\u043a\u0430\u043d\u0438\u044f \u0432 \u0441\u0443\u0442\u044c, Xorg \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0438, \u0442\u043e\u0447\u043d\u0435\u0435 \u0438\u0445 \u0438\u043c\u0435\u043d\u0430: \u041d\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 glibc, Xorg \u0438\u043d\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e stat()<\/p>\n<pre><code class=\"cs\">$ strace -e open,stat xterm  # (\u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e - \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0443\u0436\u043d\u044b \u0441\u0438\u0441\u043a\u0430\u043b\u043e\u0432)  stat(&quot;\/home\/pavel\/XTerm&quot;, {st_mode=S_IFREG|0600, st_size=333, ...}) = 0  open(&quot;\/home\/pavel\/XTerm&quot;, O_RDONLY)     = 4 open(&quot;\/usr\/share\/X11\/app-defaults\/XTerm&quot;, O_RDONLY) = 4 <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u044d\u0442\u043e \u043c\u043e\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u043e\u0431\u0449\u0435\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439.<\/p>\n<p>  \u0422\u0443\u0442 \u043c\u0435\u0434\u0430\u043b\u044c \u043e \u0434\u0432\u0443\u0445 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u0445, \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0438\u043b\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043c\u043e\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0434\u0432\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u0430, \u043d\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u043c\u0435\u043d\u0435\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0451\u043c\u043a\u0438\u0439 \u2014 <b>stat()<\/b>. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u043d\u0435\u0442 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043b\u044f xterm, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u043f\u0430\u043f\u043a\u0438. \u042d\u0442\u043e \u043c\u043e\u0433\u0443 \u0431\u044b\u0442\u044c <b>.Xdefaults-$(hostname), .Xdefaults, .terminfo<\/b> (\u0444\u0430\u0439\u043b\u044b \u0441\u043e \u0441\u043b\u043e\u0432\u0430\u043c\u0438 <b>auth<\/b>, \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0442\u044c :)) <br \/>   \u041f\u043e\u0445\u043e\u0436\u0430\u044f, \u043d\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441 \u043a\u0443\u0440\u0441\u043e\u0440\u0430\u043c\u0438 \u043c\u044b\u0448\u0438. \u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0430 \u044d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 libXcursor, \u0437\u043d\u0430\u0447\u0438\u0442 \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440\u044b \u0438 \u0438\u043a\u043e\u043d\u043a\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432 <b>$HOME\/.icons\/<\/b> \u0438 \u0437\u0430\u0442\u0435\u043c \u0432<b> \/usr\/share\/icons <\/b>  <\/p>\n<pre><code class=\"bash\">$ strace -e open,stat xterm   open(&quot;\/home\/pavel\/.icons\/DMZ\/cursors\/top_left_arrow&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) open(&quot;\/home\/pavel\/.icons\/DMZ\/index.theme&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) open(&quot;\/usr\/share\/icons\/DMZ\/cursors\/top_left_arrow&quot;, O_RDONLY) = 5 open(&quot;\/home\/pavel\/.icons\/DMZ\/cursors\/sb_v_double_arrow&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) open(&quot;\/home\/pavel\/.icons\/DMZ\/index.theme&quot;, O_RDONLY) = -1 ENOENT (No such file or directory) open(&quot;\/usr\/share\/icons\/DMZ\/cursors\/sb_v_double_arrow&quot;, O_RDONLY) = 5 <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u0441 \/usr\/share\/icons \u043d\u0430 $HOME\/.icons \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:  <\/p>\n<pre><code class=\"bash\">$ ln -s \/usr\/share\/icons $HOME\/.icons $ strace -e open,stat xterm  open(&quot;\/home\/pavel\/.icons\/DMZ\/cursors\/top_left_arrow&quot;, O_RDONLY) = 5 open(&quot;\/home\/pavel\/.icons\/DMZ\/cursors\/sb_v_double_arrow&quot;, O_RDONLY) = 5 <\/code><\/pre>\n<p>  \u0412\u0435\u043b\u0438\u043a\u043e\u043b\u0435\u043f\u043d\u043e, \u043c\u0438\u043d\u0443\u0441 4 \u043e\u043f\u0435\u043d\u0430()!<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a <b>strace<\/b> \u0444\u043b\u0430\u0433 <b>-f<\/b>, \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432.   <\/p>\n<pre><code class=\"bash\">$ strace -f -e open,stat xterm <\/code><\/pre>\n<p>  \u0412\u044b\u0432\u043e\u0434 \u043e\u0447\u0435\u043d\u044c \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u0438\u0439, \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0432\u0430\u043c \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f. \u0421\u043a\u0430\u0436\u0443 \u043b\u0438\u0448\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u043e\u043d\u0438\u0442\u0438\u0435\u0432\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043b\u0443\u0447\u0448\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u00ab\u0434\u043e\u0447\u043a\u0438\u00bb.  <\/p>\n<pre><code class=\"bash\">$ mkdir \/tmp\/Xterm (\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0447\u0438\u0441\u0442\u043e\u0442\u044b \u0444\u0435\u043d\u0448\u0443\u044f)   $ cd \/tmp\/Xterm $ strace -o Xterm.trace -ff xterm  $ ls   Xterm.trace.6001  Xterm.trace.6009  Xterm.trace.6017 Xterm.trace.6025  Xterm.trace.6034   Xterm.trace.6042  Xterm.trace.6050  Xterm.trace.6002  Xterm.trace.6010  Xterm.trace.6018   Xterm.trace.6026  Xterm.trace.6035  Xterm.trace.6043  Xterm.trace.6051  Xterm.trace.6003   Xterm.trace.6011  Xterm.trace.6019  Xterm.trace.6027  Xterm.trace.6036  Xterm.trace.6044   Xterm.trace.6052  Xterm.trace.6004  Xterm.trace.6012  Xterm.trace.6020  Xterm.trace.6028   ... <\/code><\/pre>\n<p>  \u0438\u0437\u0443\u0447\u0430\u0439\u0442\u0435 \ud83d\ude42<\/p>\n<p>  \u0432\u0441\u0435 \u0441\u0440\u0430\u0437\u0443   <\/p>\n<pre><code class=\"bash\">$ egrep &quot;open|stat&quot; .\/Xterm.trace.* | grep --color &quot; = -&quot; <\/code><\/pre>\n<p>  \u0438\u043b\u0438 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443   <\/p>\n<pre><code class=\"bash\">$ egrep &quot;open|stat&quot; .\/Xterm.trace.6022 | grep --color &quot; = -&quot; <\/code><\/pre>\n<p>  \u0414\u0430\u0436\u0435 \u0441\u0435\u0439\u0447\u0430\u0441, \u043d\u0430\u0448\u0435\u043b, \u0447\u0442\u043e \u043a\u0442\u043e-\u0442\u043e \u0443\u043f\u043e\u0440\u043d\u043e \u0438\u0449\u0435\u0442 libreadline.so.6  <\/p>\n<pre><code class=\"bash\">.\/Xterm.trace.28465:open(&quot;\/usr\/lib64\/tls\/x86_64\/libreadline.so.6&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) .\/Xterm.trace.28465:open(&quot;\/usr\/lib64\/tls\/libreadline.so.6&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) .\/Xterm.trace.28465:open(&quot;\/usr\/lib64\/x86_64\/libreadline.so.6&quot;, O_RDONLY|O_CLOEXEC) = -1 EACCES (Permission denied) .\/Xterm.trace.28465:open(&quot;\/usr\/lib64\/libreadline.so.6&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) <\/code><\/pre>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u0441\u044f\u043a \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435\u0440\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u044f\u0432\u043d\u043e (\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0441\u0435\u0440) \u0432\u0435\u0440\u0441\u0438\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0412\u043c\u0435\u0441\u0442\u043e libreadline.so, \u0437\u0430\u0445\u0430\u0440\u043a\u043e\u0434\u0438\u043b\u0438 libreadline.so.6. \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c. <\/p>\n<pre><code class=\"bash\">$ cd \/usr\/lib64\/tls\/x86_64\/ # ln -s libreadline.so libreadline.so.6  $ cd \/tmp\/Xterm && rm .\/*; $ strace -o Xterm.trace -ff xterm $ egrep &quot;open|stat&quot; .\/Xterm.trace.* | grep --color &quot;libreadline&quot;  .\/Xterm.trace.21278:open(&quot;\/usr\/lib64\/tls\/x86_64\/libreadline.so.6&quot;, O_RDONLY|O_CLOEXEC) = 3 <\/code><\/pre>\n<p>  \u0423\u0440\u0430! <br \/>  <habracut\/>  <\/p>\n<h5><b>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/b><\/h5>\n<p>  \u0414\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 KDE, GNOME, Xfce \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b gdm\/kdm\/xfwm4, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u044e\u0431\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u043d\u0430\u0431\u043e\u0440\u0430 \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0443, \u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u0430\u044f. <\/p>\n<p>  \u0417\u0430\u0439\u043c\u0438\u0442\u0435\u0441\u044c \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0432\u0441\u0435\u043c\u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430\u043c\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u043c\u0438 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435. <\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0434\u043e 10-15 \u0441\u0435\u043a. \u0412\u0440\u0435\u043c\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u2014 \u044d\u0442\u043e \u043e\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u0434\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0432 \u0444\u0435\u0439\u0441\u0431\u0443\u043a\u0435, \u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u043e\u0438\u043d\u044b \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435, \u043a\u0430\u043a \u0434\u0443\u043c\u0430\u0435\u0442 Microsoft \u0438 \u041f\u043e\u0442\u0442\u0435\u0440\u0438\u043d\u0433. <\/p>\n<p>  \u041f\u043e\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c\u0441\u044f \u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b Google Chrome, Firefox, Gimp, LibreOffice, etc. <\/p>\n<h5>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043a\u043e\u0441\u044f\u043a\u0438<\/h5>\n<p>   \u041a\u0430\u043a \u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u0434\u0435\u043b\u0435 \u2014 \u0432\u0430\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u043c\u0435\u0440\u0443, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u00ab\u0437\u0430\u0446\u0438\u043a\u043b\u0435\u043d\u043d\u044b\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430\u043c\u00bb \u0438 \u0432\u044b\u0437\u043e\u0432, \u0441\u043a\u0430\u0436\u0435\u043c find .\/, \u043c\u043e\u0436\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 DoS \u0441\u0438\u0441\u0442\u0435\u043c\u0435. (\u0432\u0440\u043e\u0434\u0435 \u0432 \u044f\u0434\u0440\u0435 \u0443\u0436\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438, \u043d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 ). \u0413\u043e\u0434\u0430 \u0434\u0432\u0430 \u043d\u0430\u0437\u0430\u0434, \u043d\u0430 SuSE \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 glibc. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e TLS (Thread Local Storage) \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/192264\/\"> http:\/\/habrahabr.ru\/post\/192264\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0423\u0436\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0442\u043e\u043d\u043d\u044b \u0441\u0442\u0430\u0442\u0435\u0439 \u043d\u0430 \u0434\u0430\u043d\u043d\u0443\u044e \u0442\u0435\u043c\u0443, \u043d\u043e \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043f\u0438\u0441\u0430\u0442\u0435\u043b\u0438 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0438 \u043c\u0430\u0439\u043d\u0442\u0435\u043d\u0435\u0440\u044b \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u043c\u0438\u043c\u043e \u0442\u0430\u043a\u0438\u0435 \u0432\u0435\u0449\u0438 \u043a\u0430\u043a \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u0443\u0442\u0435\u0439 \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432: \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a, \u0437\u0432\u0443\u043a\u043e\u0432, \u0438\u043a\u043e\u043d\u043e\u043a, \u0448\u0440\u0438\u0444\u0442\u043e\u0432, \u0438 \u043f\u0440.<\/p>\n<p>  \u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0441 \u0443\u0442\u0438\u043b\u0438\u0442\u044b bootchart \u0438\u043b\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: <a href=\"http:\/\/www.bootchart.org\/samples.html\">www.bootchart.org\/samples.html<\/a> <\/p>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a, \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438, \u0441\u043b\u0438\u043d\u043a\u043e\u0432\u0430\u043d \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0441 glibc, \u0438 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438. \u041f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u0435, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u0432\u044b\u0437\u043e\u0432 dlopen(),<\/p>\n<pre><code class=\"cpp\">handle = dlopen(&quot;libm.so&quot;, RTLD_LAZY);           if (!handle) {                fprintf(stderr, &quot;%s\\n&quot;, dlerror());                exit(EXIT_FAILURE); } <\/code><\/pre>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-192264","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192264"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192264\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}