
{"id":382,"date":"2010-01-18T13:49:35","date_gmt":"2010-01-18T13:49:35","guid":{"rendered":"http:\/\/froisa.com\/?p=382"},"modified":"2010-01-18T13:49:35","modified_gmt":"2010-01-18T13:49:35","slug":"part-of-original-file-stat-c","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/01\/18\/part-of-original-file-stat-c\/","title":{"rendered":"part of original file [ stat.c ]"},"content":{"rendered":"<pre class=\"brush:c\">\n\/* stat.c -- display file or file system status\n   Copyright (C) 2001-2009 Free Software Foundation, Inc.\n\n   This program is free software: you can redistribute it and\/or modify\n   it under the terms of the GNU General Public License as published by\n   the Free Software Foundation, either version 3 of the License, or\n   (at your option) any later version.\n\n   This program is distributed in the hope that it will be useful,\n   but WITHOUT ANY WARRANTY; without even the implied warranty of\n   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n   GNU General Public License for more details.\n\n   You should have received a copy of the GNU General Public License\n   along with this program.  If not, see .\n\n   Written by Michael Meskes.  *\/\n\n   \/* Temporary hack to match original output until conditional\n             implemented.  *\/\n          if (S_ISBLK (statbuf.st_mode) || S_ISCHR (statbuf.st_mode))\n            {\n              format =\n                \"  File: %N\\n\"\n                \"  Size: %-10s\\tBlocks: %-10b IO Block: %-6o %F\\n\"\n                \"Device: %Dh\/%dd\\tInode: %-10i  Links: %-5h\"\n                \" Device type: %t,%T\\n\"\n                \"Access: (%04a\/%10.10A)  Uid: (%5u\/%8U)   Gid: (%5g\/%8G)\\n\"\n                \"Access: %x\\n\" \"Modify: %y\\n\" \"Change: %z\\n\";\n            }\n          else\n            {\n              format =\n                \"  File: %N\\n\"\n                \"  Size: %-10s\\tBlocks: %-10b IO Block: %-6o %F\\n\"\n                \"Device: %Dh\/%dd\\tInode: %-10i  Links: %h\\n\"\n                \"Access: (%04a\/%10.10A)  Uid: (%5u\/%8U)   Gid: (%5g\/%8G)\\n\"\n                \"Access: %x\\n\" \"Modify: %y\\n\" \"Change: %z\\n\";\n            }\n<\/pre>\n<p><a href=\"http:\/\/en.wikipedia.org\/wiki\/Data_structure\"> http:\/\/en.wikipedia.org\/wiki\/Data_structure<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* stat.c &#8212; display file or file system status Copyright (C) 2001-2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and\/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/01\/18\/part-of-original-file-stat-c\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;part of original file [ stat.c ]&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[878],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/382"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=382"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/382\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}