Initial Spring 2016 commit.

This commit is contained in:
Geoffrey Challen
2015-12-23 00:50:04 +00:00
commit cafa9f5690
732 changed files with 92195 additions and 0 deletions

13
man/bin/Makefile Normal file
View File

@@ -0,0 +1,13 @@
# Man pages for /bin programs
TOP=../..
.include "$(TOP)/mk/os161.config.mk"
MANDIR=/man/bin
MANFILES=\
cat.html cp.html false.html index.html ln.html ls.html mkdir.html \
mv.html pwd.html rm.html rmdir.html sh.html sync.html tac.html \
true.html
.include "$(TOP)/mk/os161.man.mk"

81
man/bin/cat.html Normal file
View File

@@ -0,0 +1,81 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>cat</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>cat</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
<tt>cat</tt> - concatenate and print files
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/cat</tt> <em>files...</em>
</p>
<h3>Description</h3>
<p>
<tt>cat</tt> prints the files listed on its command line in order to its
standard output. If the magic filename "-" is encountered, <tt>cat</tt>
prints its standard input up to the first EOF.
</p>
<p>
With no arguments, <tt>cat</tt> prints its standard input.
</p>
<p>
<tt>cat</tt> takes no options.
</p>
<h3>Requirements</h3>
<p>
<tt>cat</tt> uses the following syscalls:
<ul>
<li><A HREF=../syscall/open.html>open</A>
<li><A HREF=../syscall/read.html>read</A>
<li><A HREF=../syscall/write.html>write</A>
<li><A HREF=../syscall/close.html>close</A>
<li><A HREF=../syscall/_exit.html>_exit</A>
</ul>
</p>
<p>
<tt>cat</tt> should function properly once the basic system calls
assignment is completed.
</p>
</body>
</html>

88
man/bin/cp.html Normal file
View File

@@ -0,0 +1,88 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>cp</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>cp</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
cp - copy files
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/cp</tt> <em>oldfile</em> <em>newfile</em>
</p>
<h3>Description</h3>
<p>
<tt>cp</tt> copies the file <em>oldfile</em> to the file <em>newfile</em>,
overwriting <em>newfile</em> if it already exists.
</p>
<p>
<tt>cp</tt> supports no options.
</p>
<p>
Note that <tt>cp</tt> does <em>not</em> support the Unix idiom
<tt>cp file1 file2 ... destination-dir</tt> to copy a number of files
at once. In particular, <tt>cp foo bar/</tt> will fail, probably with
"Is a directory".
</p>
<h3>Requirements</h3>
<p>
<tt>cp</tt> uses the following syscalls:
<ul>
<li><A HREF=../syscall/open.html>open</A>
<li><A HREF=../syscall/read.html>read</A>
<li><A HREF=../syscall/write.html>write</A>
<li><A HREF=../syscall/close.html>close</A>
<li><A HREF=../syscall/_exit.html>_exit</A>
</ul>
</p>
<p>
<tt>cp</tt> should function properly once the basic system calls
assignment is completed.
</p>
<h3>See Also</h3>
<p>
<A HREF=ln.html>ln</A>, <A HREF=mv.html>mv<A>
</p>
</body>
</html>

69
man/bin/false.html Normal file
View File

@@ -0,0 +1,69 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>false</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>false</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
false - return false value
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/false</tt>
</p>
<h3>Description</h3>
<p>
<tt>false</tt> exits with exit code 1, signifying failure.
</p>
<h3>Requirements</h3>
<p>
<tt>false</tt> uses the <A HREF=../syscall/_exit.html>_exit</A> system call.
</p>
<p>
false should function properly once the basic system calls assignment
is completed.
</p>
<h3>See Also</h3>
<p>
<A HREF=true.html>true</A>
</p>
</body>
</html>

67
man/bin/index.html Normal file
View File

@@ -0,0 +1,67 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>OS/161 Binaries</title>
<link rel="stylesheet" type="text/css" media="all" href="../manindex.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>OS/161 Binaries (/bin)</h2>
<p align=center>
<A HREF=..>Top</A> |
<A HREF=../sbin>Sysadmin binaries</A> |
<A HREF=../testbin>Test binaries</A> |
<A HREF=../syscall>System calls</A> |
<A HREF=../libc>C standard library</A> |
<A HREF=../dev>Device drivers</A> |
<A HREF=../misc>Miscellaneous</A>
</p>
<br>
<ul>
<li> <A HREF=cat.html>cat</A> - concatenate and print files
<li> <A HREF=cp.html>cp</A> - copy files
<li> <A HREF=false.html>false</A> - return false value
<li> <A HREF=ln.html>ln</A> - link files
<li> <A HREF=ls.html>ls</A> - list files or directory contents
<li> <A HREF=mkdir.html>mkdir</A> - create directory
<li> <A HREF=mv.html>mv</A> - rename or move files
<li> <A HREF=pwd.html>pwd</A> - print working directory
<li> <A HREF=rm.html>rm</A> - remove (unlink) files
<li> <A HREF=rmdir.html>rmdir</A> - remove directory
<li> <A HREF=sh.html>sh</A> - user command shell
<li> <A HREF=sync.html>sync</A> - synchronize buffers to disk
<li> <A HREF=tac.html>tac</A> - print files backwards
<li> <A HREF=true.html>true</A> - return true value
</ul>
</body>
</html>

99
man/bin/ln.html Normal file
View File

@@ -0,0 +1,99 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>ln</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>ln</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
ln - link files
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/ln</tt> <em>oldfile</em> <em>newfile</em>
<br>
<tt>/bin/ln -s</tt> <em>oldfile</em> <em>newfile</em>
</p>
<h3>Description</h3>
<p>
ln creates links to files. The first usage creates a hard link, that
is, an additional name for the <em>same</em> file. The second
usage, with the -s option, creates a symbolic link, a special
filesystem entry that redirects accesses back to the first original
file.
</p>
<p>
The symlink created is of the form <em>newfile</em> -> <em>oldfile</em>.
</p>
<p>
Note that <tt>ln</tt> does <em>not</em> support the Unix idiom
<tt>ln file1 file2 ... destination-dir</tt> to link a number of files
at once. In particular, <tt>ln foo bar/</tt> will fail, probably with
"Is a directory".
</p>
<h3>Requirements</h3>
<p>
<tt>ln</tt> uses the following syscalls:
<ul>
<li><A HREF=../syscall/link.html>link</A>
<li><A HREF=../syscall/symlink.html>symlink</A>
<li><A HREF=../syscall/write.html>write</A>
<li><A HREF=../syscall/_exit.html>_exit</A>
</ul>
</p>
<p>
<tt>ln</tt> without the -s option should work once (or if) you
implement hard links. <tt>ln</tt> with the -s option should work once
(or if) you implement symbolic links. Check your assignments for when
(or if) you need to implement these features.
</p>
<p>
<tt>ln</tt> is able to create symlinks even if hard links are not
implemented, and vice versa.
</p>
<h3>See Also</h3>
<p>
<A HREF=cp.html>cp</A>, <A HREF=mv.html>mv<A>
</p>
</body>
</html>

110
man/bin/ls.html Normal file
View File

@@ -0,0 +1,110 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>ls</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>ls</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
ls - list files or directory contents
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/ls</tt> [<tt>-adlRs</tt>] [<em>path</em>...]
</p>
<h3>Description</h3>
<p>
<tt>ls</tt> lists the filesystem objects specified on the command
line. If they are directories, the contents of the directories are
listed (unless the <tt>-d</tt> option is used).
</p>
<p>
If the <tt>-a</tt> option is given, filenames beginning with dot (.)
will be listed. Ordinarily, they are skipped.
</p>
<p>
If the <tt>-d</tt> option is given, directory contents will not be
listed; the directories themselves will be.
</p>
<p>
If the <tt>-l</tt> option is given, a long format listing showing the
file size, type, and link count will be displayed instead of just the
filenames.
</p>
<p>
If the <tt>-R</tt> option is given, subdirectories encountered will be
listed recursively.
</p>
<p>
If the <tt>-s</tt> option is given, the number of filesystem blocks
used by each object will be displayed in addition to other
information.
</p>
<p>
If no <em>paths</em> are specified, the current directory is assumed.
</p>
<h3>Requirements</h3>
<p>
<tt>ls</tt> uses the following syscalls:
<ul>
<li> <A HREF=../syscall/open.html>open</A>
<li> <A HREF=../syscall/write.html>write</A>
<li> <A HREF=../syscall/fstat.html>fstat</A>
<li> <A HREF=../syscall/getdirentry.html>getdirentry</A>
<li> <A HREF=../syscall/close.html>close</A>
<li> <A HREF=../syscall/_exit.html>_exit</A>
</ul>
</p>
<p>
As fstat and getdirentry are generally not part of the basic system
calls assignment, <tt>ls</tt> will usually still not function after
the basic system calls assignment is complete.
These calls are typically part of a later assignment, usually the file
system assignment. You may also need to implement the getdirentry
functionality at the file system level.
Consult your course materials for specific information.
</p>
</body>
</html>

81
man/bin/mkdir.html Normal file
View File

@@ -0,0 +1,81 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>mkdir</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>mkdir</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
mkdir - create directory
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/mkdir</tt> <em>directory</em>
</p>
<h3>Description</h3>
<p>
<tt>mkdir</tt> creates the named directory. All intermediate
components must already exist. If the named directory already exists,
an error occurs.
</p>
<h3>Requirements</h3>
<p>
<tt>mkdir</tt> uses the following syscalls:
<ul>
<li> <A HREF=../syscall/mkdir.html>mkdir</A>
<li> <A HREF=../syscall/write.html>write</A>
<li> <A HREF=../syscall/_exit.html>_exit</A>
</ul>
</p>
<p>
As the mkdir system call is generally not part of the basic system
calls assignment, <tt>mkdir</tt> will usually still not function after
the basic system calls assignment is complete.
This call is typically part of a later assignment, usually the file
system assignment. You may also need to implement subdirectories in
the file system.
Consult your course materials for specific information.
</p>
<h3>See Also</h3>
<p>
<A HREF=rmdir.html>rmdir</A>
</p>
</body>
</html>

98
man/bin/mv.html Normal file
View File

@@ -0,0 +1,98 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>mv</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>mv</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
mv - rename or move files
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/mv</tt> <em>oldname</em> <em>newname</em>
</p>
<h3>Description</h3>
<p>
<tt>mv</tt> renames the filesystem object specified by
<em>oldname</em> so that it is subsequently named <em>newname</em>.
Both files and directories can be renamed or moved into other parts of
the filesystem tree. However, devices may not be renamed and
filesystem objects may not be moved across filesystems.
</p>
<p>
<tt>mv</tt> accepts no options.
</p>
<p>
Note that <tt>mv</tt> does <em>not</em> support the Unix idiom
<tt>mv file1 file2 ... destination-dir</tt> to move a number of files
at once. In particular, <tt>mv foo bar/</tt> will fail, probably with
"Is a directory".
</p>
<h3>Requirements</h3>
<p>
<tt>mv</tt> uses the following system calls:
<ul>
<li> <A HREF=../syscall/rename.html>rename</A>
<li> <A HREF=../syscall/write.html>write</A>
<li> <A HREF=../syscall/_exit.html>_exit</A>
</ul>
</p>
<p>
As the rename system call is generally not part of the basic system
calls assignment, <tt>mv</tt> will usually still not function after
the basic system calls assignment is complete.
This call is typically part of a later assignment, usually the file
system assignment.
Once you implement the system call you should be able to rename
objects within the same directory.
To move things between directories you will need to implement
cross-directory support for rename at the file system layer.
This may or may not be part of your file system assignment;
consult your course materials for specific information.
</p>
<h3>See Also</h3>
<p>
<A HREF=cp.html>cp</A>, <A HREF=ln.html>ln<A>
</p>
</body>
</html>

77
man/bin/pwd.html Normal file
View File

@@ -0,0 +1,77 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>pwd</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>pwd</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
pwd - print working directory
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/pwd</tt>
</p>
<h3>Description</h3>
<p>
<tt>pwd</tt> prints the current working directory.
</p>
<h3>Requirements</h3>
<p>
<tt>pwd</tt> uses the following system calls:
<ul>
<li> <A HREF=../syscall/__getcwd.html>__getcwd</A>
<li> <A HREF=../syscall/write.html>write</A>
<li> <A HREF=../syscall/_exit.html>_exit</A>
</ul>
</p>
<p>
pwd should function properly once the basic system calls assignment is
completed, except on filesystems or in directories that do not support
getcwd.
Note that by default <A HREF=../dev/emu.html>emufs</A> does not
support getcwd except in its root directory.
</p>
<p>
<tt>pwd</tt> should function properly in all directories of your
filesystem once the file system assignment is completed.
</p>
</body>
</html>

91
man/bin/rm.html Normal file
View File

@@ -0,0 +1,91 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>rm</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>rm</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
rm - remove (unlink) files
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/rm</tt> <em>file...</em>
</p>
<h3>Description</h3>
<p>
<tt>rm</tt> deletes the files specified on its command line. (If one
of the filenames specified is one of several hard links to the same
file, the file is only removed erased when all links to it are
deleted.)
</p>
<p>
Using <tt>rm</tt> on directories produces an error. Use
<A HREF=rmdir.html>rmdir</A> to remove directories.
</p>
<h3>Requirements</h3>
<p>
<tt>rm</tt> uses the following system calls:
<ul>
<li> <A HREF=../syscall/remove.html>remove</A>
<li> <A HREF=../syscall/write.html>write</A>
<li> <A HREF=../syscall/_exit.html>_exit</A>
</ul>
<p>
As the remove system call is generally not part of the basic system
calls assignment, <tt>rm</tt> will usually still not function after
the basic system calls assignment is complete.
This call is typically part of a later assignment, usually the file
system assignment.
Consult your course materials for specific information.
</p>
<h3>Restrictions</h3>
<p>
<A HREF=../dev/emu.html>emufs</A> does not support <tt>rm</tt>. (This is
intentional.)
</p>
<h3>See Also</h3>
<p>
<A HREF=rmdir.html>rmdir</A>
</p>
</body>
</html>

90
man/bin/rmdir.html Normal file
View File

@@ -0,0 +1,90 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>rmdir</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>rmdir</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
rmdir - remove directory
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/rmdir</tt> <em>directory</em>
</p>
<h3>Description</h3>
<p>
<tt>rmdir</tt> removes the specified directory. The directory must be empty.
</p>
<p>
It is an error to attempt to remove the . or .. names in a directory,
or to apply rmdir to a filesystem object that is not a directory.
</p>
<h3>Requirements</h3>
<p>
<tt>rmdir</tt> uses the following system calls:
<ul>
<li> <A HREF=../syscall/rmdir.html>rmdir</A>
<li> <A HREF=../syscall/write.html>write</A>
<li> <A HREF=../syscall/_exit.html>_exit</A>
</ul>
</p>
<p>
As the rmdir system call is generally not part of the basic system
calls assignment, <tt>rmdir</tt> will usually still not function after
the basic system calls assignment is complete.
This call is typically part of a later assignment, usually the file
system assignment. You may also need to implement subdirectories in
the file system.
Consult your course materials for specific information.
</p>
<h3>Restrictions</h3>
<p>
<A HREF=../dev/emu.html>emufs</A> does not support <tt>rmdir</tt>.
(This is intentional.)
</p>
<h3>See Also</h3>
<p>
<A HREF=mkdir.html>mkdir</A>, <A HREF=rm.html>rm</A>
</p>
</body>
</html>

77
man/bin/sh.html Normal file
View File

@@ -0,0 +1,77 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>sh</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>sh</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
sh - user command shell
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/sh</tt> [<tt>-c</tt> <i>command</i>]
</p>
<h3>Description</h3>
<p>
This is a simple command interpreter. The shell provided with OS/161
(or, perhaps, provided as a solution set, if you had to write a shell)
is a simple shell accepting some basic Unix-like syntax.
</p>
<h3>Requirements</h3>
<p>
sh uses these system calls:
<ul>
<li> <A HREF=../syscall/chdir.html>chdir</A>
<li> <A HREF=../syscall/fork.html>fork</A>
<li> <A HREF=../syscall/execv.html>execv</A>
<li> <A HREF=../syscall/waitpid.html>waitpid</A>
<li> <A HREF=../syscall/read.html>read</A>
<li> <A HREF=../syscall/write.html>write</A>
<li> <A HREF=../syscall/_exit.html>_exit</A>
<li> <A HREF=../syscall/__time.html>__time</A>
</ul>
</p>
<p>
This shell's basic functionality should work properly once the basic
system calls assignment is complete. Some features may require
additional support which may be part of subsequent assignments.
</p>
</body>
</html>

66
man/bin/sync.html Normal file
View File

@@ -0,0 +1,66 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>sync</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>sync</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
sync - synchronize buffers to disk
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/sync</tt>
</p>
<h3>Description</h3>
<p>
<tt>sync</tt> causes filesystem I/O buffers that have been modified
but not yet written to be written to disk.
</p>
<h3>Requirements</h3>
<p>
<tt>sync</tt> uses the <A HREF=../syscall/sync.html>sync</A> system
call, and of course <A HREF=../syscall/_exit.html>_exit</A>.
</p>
<p>
<tt>sync</tt> should function once the sync system call is wired up.
This is likely part of the file system assignment
</p>
</body>
</html>

87
man/bin/tac.html Normal file
View File

@@ -0,0 +1,87 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013, 2014
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>tac</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>tac</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
<tt>tac</tt> - print in reverse order
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/tac</tt> <em>files...</em>
</p>
<h3>Description</h3>
<p>
<tt>tac</tt> prints the files listed on its command line in reverse
order to its standard output. If the magic filename "-" is
encountered, <tt>tac</tt> prints its standard input up to the first
EOF. Each file is printed backwards in line-by-line fashion.
</p>
<p>
With no arguments, <tt>tac</tt> prints its standard input.
</p>
<p>
<tt>tac</tt> takes no options.
</p>
<h3>Requirements</h3>
<p>
<tt>tac</tt> uses the following syscalls:
<ul>
<li><A HREF=../syscall/getpid.html>getpid</A>
<li><A HREF=../syscall/open.html>open</A>
<li><A HREF=../syscall/read.html>read</A>
<li><A HREF=../syscall/write.html>write</A>
<li><A HREF=../syscall/close.html>close</A>
<li><A HREF=../syscall/remove.html>remove</A>
<li><A HREF=../syscall/_exit.html>_exit</A>
</ul>
</p>
<p>
<tt>tac</tt> should function properly once the basic system calls
assignment is completed. However, until the file system assignment is
done and the <A HREF=../syscall/remove.html>remove</A> system call
implemented, it will leave two scratch files behind per invocation.
</p>
</body>
</html>

69
man/bin/true.html Normal file
View File

@@ -0,0 +1,69 @@
<!--
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009, 2013
The President and Fellows of Harvard College.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
-->
<html>
<head>
<title>true</title>
<link rel="stylesheet" type="text/css" media="all" href="../man.css">
</head>
<body bgcolor=#ffffff>
<h2 align=center>true</h2>
<h4 align=center>OS/161 Reference Manual</h4>
<h3>Name</h3>
<p>
true - return true value
</p>
<h3>Synopsis</h3>
<p>
<tt>/bin/true</tt>
</p>
<h3>Description</h3>
<p>
<tt>true</tt> exits with exit code 0, signifying success.
<p>
<h3>Requirements</h3>
<p>
<tt>true</tt> uses the <A HREF=../syscall/_exit.html>_exit</A> system call.
</p>
<p>
<tt>true</tt> should function properly once the basic system calls
assignment is completed.
</p>
<h3>See Also</h3>
<p>
<A HREF=false.html>false</A>
</p>
</body>
</html>