Skip to content

Commit d10a64f

Browse files
committed
Fixed words
1 parent 1a6dc4c commit d10a64f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/apue/ch4.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The `buf` argument is a pointer to a [structure](http://en.wikipedia.org/wiki/St
2828
* Socket
2929
* Symbolic link
3030

31-
This program in prints the type of file for each command-line argument.
31+
This program prints the type of file for each command-line argument.
3232

3333
* [filetype.c](https://github.com/shichao-an/apue.3e/blob/master/filedir/filetype.c)
3434

@@ -51,7 +51,7 @@ FreeBSD 8.0 and Mac OS X 10.6.8 always copy the new file’s group ID from the d
5151
5252
These functions test accessibility based on the real user and group IDs.
5353

54-
The `flag` argument can be used to change the behavior of `faccessat`. If the `AT_EACCESS` flag is set, the access checks are made using the effective user and group IDs
54+
The `flag` argument can be used to change the behavior of `faccessat`. If the `AT_EACCESS` flag is set, the access checks are made using the effective user and group IDs.
5555

5656
* [access.c](https://github.com/shichao-an/apue.3e/blob/master/filedir/access.c)
5757

@@ -72,7 +72,7 @@ u=rwx,g=rx,o=
7272
### `chmod`, `fchmod`, and `fchmodat` Functions
7373
> [Functions](https://gist.github.com/shichao-an/9fa2e6e7e6e600cb62c1)
7474
75-
`chmod` automatically clear the following permission bits under the following conditions:
75+
`chmod` automatically clears the following permission bits under the following conditions:
7676

7777
1. Setting sticky bit on a regular file without superuser privileges (Solaris)
7878
2. If the group ID of the new file does not equal either the effective group ID of the process or one of the process’s supplementary group IDs and if the process does not have superuser privileges, then the set-group-ID bit is automatically turned off. On FreeBSD 8.0, Linux 3.2.0 and Mac OS X 10.6.8, if a process that does not have superuser privileges writes to a file, the set-user-ID and set-group-ID bits are automatically turned off.

site/apue/ch4/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ <h3 id="file-types">File Types</h3>
209209
<li>Socket</li>
210210
<li>Symbolic link</li>
211211
</ul>
212-
<p>This program in prints the type of file for each command-line argument.</p>
212+
<p>This program prints the type of file for each command-line argument.</p>
213213
<ul>
214214
<li><a href="https://github.com/shichao-an/apue.3e/blob/master/filedir/filetype.c">filetype.c</a></li>
215215
</ul>
@@ -230,7 +230,7 @@ <h3 id="access-and-faccessat-functions"><code>access</code> and <code>faccessat<
230230
<p><a href="https://gist.github.com/shichao-an/a0d8ab4d744d51be289f">Functions</a></p>
231231
</blockquote>
232232
<p>These functions test accessibility based on the real user and group IDs.</p>
233-
<p>The <code>flag</code> argument can be used to change the behavior of <code>faccessat</code>. If the <code>AT_EACCESS</code> flag is set, the access checks are made using the effective user and group IDs </p>
233+
<p>The <code>flag</code> argument can be used to change the behavior of <code>faccessat</code>. If the <code>AT_EACCESS</code> flag is set, the access checks are made using the effective user and group IDs.</p>
234234
<ul>
235235
<li><a href="https://github.com/shichao-an/apue.3e/blob/master/filedir/access.c">access.c</a></li>
236236
</ul>
@@ -249,7 +249,7 @@ <h3 id="chmod-fchmod-and-fchmodat-functions"><code>chmod</code>, <code>fchmod</c
249249
<blockquote>
250250
<p><a href="https://gist.github.com/shichao-an/9fa2e6e7e6e600cb62c1">Functions</a></p>
251251
</blockquote>
252-
<p><code>chmod</code> automatically clear the following permission bits under the following conditions:</p>
252+
<p><code>chmod</code> automatically clears the following permission bits under the following conditions:</p>
253253
<ol>
254254
<li>Setting sticky bit on a regular file without superuser privileges (Solaris)</li>
255255
<li>If the group ID of the new file does not equal either the effective group ID of the process or one of the process’s supplementary group IDs and if the process does not have superuser privileges, then the set-group-ID bit is automatically turned off. On FreeBSD 8.0, Linux 3.2.0 and Mac OS X 10.6.8, if a process that does not have superuser privileges writes to a file, the set-user-ID and set-group-ID bits are automatically turned off.</li>

0 commit comments

Comments
 (0)