Update css

This commit is contained in:
2018-02-23 15:42:20 -05:00
parent 2522eb7da1
commit 0114b21336
7 changed files with 32 additions and 38 deletions
-2
View File
@@ -20,9 +20,7 @@ This interface-like function will then pass the function name, in this case func
~~~~c ~~~~c
#define SYS_function ## // ## is the system call number #define SYS_function ## // ## is the system call number
[SYS_function] sys_function // real system function name [SYS_function] sys_function // real system function name
extern int sys_function(void); // real system function declaration extern int sys_function(void); // real system function declaration
~~~~ ~~~~
+3 -3
View File
@@ -26,13 +26,13 @@
padding: 20px 40px; padding: 20px 40px;
list-style: none; list-style: none;
> li { > li {
padding-bottom: 30px; padding-bottom: 15px;
border-bottom: 1px solid #CCC; border-bottom: 1px solid #CCC;
margin-bottom: 30px; margin-bottom: 15px;
} }
.post-title { .post-title {
font-size: 28px; font-size: 28px;
font-weight: normal; font-weight: bold;
margin: 0; margin: 0;
} }
.post-meta { .post-meta {
+1 -3
View File
@@ -83,9 +83,7 @@
<p>This interface-like function will then pass the function name, in this case function, to <em>usys.S</em>. When using user mode function in programs, <em>usys.S</em> will generate a reference to SYS_function and push system call number of this function into %eax. After that, system can know from <em>syscall.c</em> and determining whether this system call is available. We must define same name system function and add it into <em>syscall.h</em> and <em>syscall.c</em>.</p> <p>This interface-like function will then pass the function name, in this case function, to <em>usys.S</em>. When using user mode function in programs, <em>usys.S</em> will generate a reference to SYS_function and push system call number of this function into %eax. After that, system can know from <em>syscall.c</em> and determining whether this system call is available. We must define same name system function and add it into <em>syscall.h</em> and <em>syscall.c</em>.</p>
<div class="language-c highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">#define SYS_function ## // ## is the system call number <div class="language-c highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="cp">#define SYS_function ## // ## is the system call number
</span> </span><span class="p">[</span><span class="n">SYS_function</span><span class="p">]</span> <span class="n">sys_function</span> <span class="c1">// real system function name</span>
<span class="p">[</span><span class="n">SYS_function</span><span class="p">]</span> <span class="n">sys_function</span> <span class="c1">// real system function name</span>
<span class="k">extern</span> <span class="kt">int</span> <span class="n">sys_function</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> <span class="c1">// real system function declaration</span> <span class="k">extern</span> <span class="kt">int</span> <span class="n">sys_function</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> <span class="c1">// real system function declaration</span>
</code></pre></div></div> </code></pre></div></div>
+20 -20
View File
@@ -2,7 +2,7 @@
body { body {
margin: 0; margin: 0;
font-family: "Open Sans", "Helvetica Neue", "DejaVu Sans", Arial, "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", "微软雅黑", Helvetica, sans-serif; font-family: "Open Sans", "Helvetica Neue", "DejaVu Sans", Arial, "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", "微软雅黑", Helvetica, sans-serif;
font-size: 16px; font-size: 15px;
line-height: 1.5; } line-height: 1.5; }
a { a {
@@ -21,7 +21,7 @@ blockquote {
code, pre { code, pre {
font-family: Menlo, Monaco, Consolas, "DejaVu Sans Mono", "Liberation Mono", "文泉驿等宽微米黑", "Courier New", Courier, SimSun, monospace; font-family: Menlo, Monaco, Consolas, "DejaVu Sans Mono", "Liberation Mono", "文泉驿等宽微米黑", "Courier New", Courier, SimSun, monospace;
font-size: 15px; } font-size: 12px; }
code { code {
color: #900; color: #900;
@@ -74,8 +74,8 @@ h1, h2, h3, h4, h5, h6 {
.wrapper { .wrapper {
max-width: 800px; } } max-width: 800px; } }
.header { .header {
line-height: 32px; line-height: 30px;
background-color: #607D8B; background-color: rgba(53, 0, 138, 0.89);
padding: 10px; padding: 10px;
margin: 0; } margin: 0; }
.header:after { .header:after {
@@ -86,17 +86,17 @@ h1, h2, h3, h4, h5, h6 {
float: left; float: left;
color: #FFF; color: #FFF;
text-decoration: none; text-decoration: none;
font-size: 16px; font-size: 15px;
line-height: 32px; } line-height: 30px; }
.header .site-nav { .header .site-nav {
text-align: right; } text-align: right; }
.header .site-nav a { .header .site-nav a {
text-decoration: none; text-decoration: none;
color: #CFD8DC; color: white;
padding: 10px 20px; padding: 10px 20px;
white-space: nowrap; } white-space: nowrap; }
.header .site-nav a:hover, .header .site-nav a:focus { .header .site-nav a:hover, .header .site-nav a:focus {
background: #78909C; } background: #2b0070; }
.page-content { .page-content {
background: #e0e0e3; background: #e0e0e3;
@@ -140,7 +140,7 @@ h1, h2, h3, h4, h5, h6 {
.col-box { .col-box {
color: #666; color: #666;
font-size: 14px; font-size: 13.125px;
padding-bottom: 20px; } padding-bottom: 20px; }
.col-box p { .col-box p {
margin: 0; } margin: 0; }
@@ -153,7 +153,7 @@ h1, h2, h3, h4, h5, h6 {
.col-box .col-box-title { .col-box .col-box-title {
color: #333; color: #333;
margin-bottom: 10px; margin-bottom: 10px;
font-size: 15.4px; } font-size: 14.4375px; }
@media (max-width: 1120px) { @media (max-width: 1120px) {
.page-content .wrapper:before { .page-content .wrapper:before {
@@ -186,7 +186,7 @@ h1, h2, h3, h4, h5, h6 {
margin: 20px auto; margin: 20px auto;
display: block; } display: block; }
.col-box-author .name { .col-box-author .name {
font-size: 16px; } font-size: 15px; }
.col-box-author .contact { .col-box-author .contact {
margin-top: 10px; } margin-top: 10px; }
.col-box-author .contact a { .col-box-author .contact a {
@@ -205,7 +205,7 @@ h1, h2, h3, h4, h5, h6 {
background-color: #e0e0e3; background-color: #e0e0e3;
text-align: center; text-align: center;
color: #666; color: #666;
font-size: 14px; } font-size: 13.125px; }
.post .post-header { .post .post-header {
margin: 0 100px; margin: 0 100px;
@@ -220,7 +220,7 @@ h1, h2, h3, h4, h5, h6 {
font-size: 34px; } } font-size: 34px; } }
.post .post-header .post-meta { .post .post-header .post-meta {
color: #999; color: #999;
font-size: 14px; font-size: 13.125px;
margin: 0 -100px; } margin: 0 -100px; }
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
.post .post-header { .post .post-header {
@@ -262,7 +262,7 @@ h1, h2, h3, h4, h5, h6 {
border: 1px solid; border: 1px solid;
color: #999; color: #999;
background: #fff; background: #fff;
font-size: 11.2px; font-size: 10.5px;
padding: 1px 8px; } padding: 1px 8px; }
.home .rss-link:hover, .home .rss-link:focus { .home .rss-link:hover, .home .rss-link:focus {
color: #666; } color: #666; }
@@ -271,23 +271,23 @@ h1, h2, h3, h4, h5, h6 {
padding: 20px 40px; padding: 20px 40px;
list-style: none; } list-style: none; }
.home .post-list > li { .home .post-list > li {
padding-bottom: 30px; padding-bottom: 15px;
border-bottom: 1px solid #CCC; border-bottom: 1px solid #CCC;
margin-bottom: 30px; } margin-bottom: 15px; }
.home .post-list .post-title { .home .post-list .post-title {
font-size: 28px; font-size: 28px;
font-weight: normal; font-weight: bold;
margin: 0; } margin: 0; }
.home .post-list .post-meta { .home .post-list .post-meta {
font-size: 14px; font-size: 13.125px;
color: #666; color: #666;
margin: 0 20px; margin: 0 20px;
margin-bottom: .5em; } margin-bottom: .5em; }
.home .post-list .post-excerpt { .home .post-list .post-excerpt {
margin: 0 20px; } margin: 0 20px; }
.home .post-list .post-excerpt, .home .post-list .post-excerpt * { .home .post-list .post-excerpt, .home .post-list .post-excerpt * {
font-size: 14px; font-size: 13.125px;
line-height: 14px; line-height: 13.125px;
padding-top: 0; padding-top: 0;
padding-bottom: 0; padding-bottom: 0;
color: #333; } color: #333; }
+3 -5
View File
@@ -6,8 +6,8 @@
</description> </description>
<link>https://codersherlock.github.com//</link> <link>https://codersherlock.github.com//</link>
<atom:link href="https://codersherlock.github.com//feed.xml" rel="self" type="application/rss+xml"/> <atom:link href="https://codersherlock.github.com//feed.xml" rel="self" type="application/rss+xml"/>
<pubDate>Fri, 23 Feb 2018 15:23:54 -0500</pubDate> <pubDate>Fri, 23 Feb 2018 15:42:08 -0500</pubDate>
<lastBuildDate>Fri, 23 Feb 2018 15:23:54 -0500</lastBuildDate> <lastBuildDate>Fri, 23 Feb 2018 15:42:08 -0500</lastBuildDate>
<generator>Jekyll v3.7.2</generator> <generator>Jekyll v3.7.2</generator>
<item> <item>
@@ -25,9 +25,7 @@
&lt;p&gt;This interface-like function will then pass the function name, in this case function, to &lt;em&gt;usys.S&lt;/em&gt;. When using user mode function in programs, &lt;em&gt;usys.S&lt;/em&gt; will generate a reference to SYS_function and push system call number of this function into %eax. After that, system can know from &lt;em&gt;syscall.c&lt;/em&gt; and determining whether this system call is available. We must define same name system function and add it into &lt;em&gt;syscall.h&lt;/em&gt; and &lt;em&gt;syscall.c&lt;/em&gt;.&lt;/p&gt; &lt;p&gt;This interface-like function will then pass the function name, in this case function, to &lt;em&gt;usys.S&lt;/em&gt;. When using user mode function in programs, &lt;em&gt;usys.S&lt;/em&gt; will generate a reference to SYS_function and push system call number of this function into %eax. After that, system can know from &lt;em&gt;syscall.c&lt;/em&gt; and determining whether this system call is available. We must define same name system function and add it into &lt;em&gt;syscall.h&lt;/em&gt; and &lt;em&gt;syscall.c&lt;/em&gt;.&lt;/p&gt;
&lt;div class=&quot;language-c highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;#define SYS_function ## // ## is the system call number &lt;div class=&quot;language-c highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;#define SYS_function ## // ## is the system call number
&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SYS_function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sys_function&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// real system function name&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SYS_function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sys_function&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// real system function name&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;extern&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sys_function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// real system function declaration&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;extern&lt;/span&gt; &lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sys_function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// real system function declaration&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
+5 -5
View File
@@ -4,12 +4,12 @@
@charset "utf-8"; @charset "utf-8";
$base-font-family: "Open Sans", "Helvetica Neue", "DejaVu Sans", Arial, "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", "微软雅黑", Helvetica, sans-serif; $base-font-family: "Open Sans", "Helvetica Neue", "DejaVu Sans", Arial, "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", "微软雅黑", Helvetica, sans-serif;
$base-font-size: 16px; $base-font-size: 15px;
$small-font-size: $base-font-size * 0.875; $small-font-size: $base-font-size * 0.875;
$base-line-height: 1.5; $base-line-height: 1.5;
$code-font-family: Menlo, Monaco, Consolas, "DejaVu Sans Mono", "Liberation Mono", "文泉驿等宽微米黑", "Courier New", Courier, SimSun, monospace; $code-font-family: Menlo, Monaco, Consolas, "DejaVu Sans Mono", "Liberation Mono", "文泉驿等宽微米黑", "Courier New", Courier, SimSun, monospace;
$code-font-size: 15px; $code-font-size: 12px;
// Width of the content area // Width of the content area
$content-width: 800px; $content-width: 800px;
@@ -20,9 +20,9 @@ $on-laptop: 800px;
$color-link: #036; $color-link: #036;
$color-link-hover: #069; $color-link-hover: #069;
$header-bg: #607D8B; $header-bg: rgba(53, 0, 138, 0.89);
$header-bg-hover: #78909C; $header-bg-hover: rgb(43, 0, 112);
$header-link: #CFD8DC; $header-link: rgb(255, 255, 255);
$header-fg: #FFF; $header-fg: #FFF;
@mixin media-query($device) { @mixin media-query($device) {