Compare commits

..
Author SHA1 Message Date
cvs2svn 49bb443250 This commit was manufactured by cvs2svn to create tag
'RELENG_2_2_6_RELEASE'.
1998-03-24 11:00:04 +00:00
5871 changed files with 66274 additions and 219288 deletions

No files matched your search

-1
View File
@@ -1,4 +1,3 @@
# $FreeBSD$
# @(#)COPYRIGHT 8.2 (Berkeley) 3/21/94
All of the documentation and software included in the 4.4BSD and 4.4BSD-Lite
+14 -32
View File
@@ -1,13 +1,15 @@
#
# $FreeBSD$
# $Id: Makefile,v 1.109.2.24 1998/03/09 14:18:02 jkh Exp $
#
# Make command line options:
# -DCLOBBER will remove /usr/include
# -DMAKE_KERBEROS4 to build KerberosIV
# -DALLLANG to build documentation for all languages
# (where available -- see share/doc/Makefile)
#
# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
# -DNOCLEAN do not clean at all
# -DNOTOOLS do not rebuild any tools first
# -DNOTOOLS do not rebuild any tools first
# -DNOCRYPT will prevent building of crypt versions
# -DNOLKM do not build loadable kernel modules
# -DNOOBJDIR do not run ``${MAKE} obj''
@@ -16,7 +18,6 @@
# -DNOGAMES do not go into games subdir
# -DNOSHARE do not go into share subdir
# -DNOINFO do not make or install info files
# -DNOLIBC_R do not build libc_r.
# -DNOPERL do not make or install perl
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
@@ -125,8 +126,8 @@ CLEANDIR= cleandir
.endif
.endif
SUP?= cvsup
SUPFLAGS?= -g -L 2 -P -
SUP?= sup
SUPFLAGS?= -v
#
# While building tools for bootstrapping, we dont need to waste time on
@@ -344,7 +345,7 @@ reinstall:
update:
.if defined(SUP_UPDATE)
@echo "--------------------------------------------------------------"
@echo "Running ${SUP}"
@echo "Running sup"
@echo "--------------------------------------------------------------"
@${SUP} ${SUPFLAGS} ${SUPFILE}
.if defined(SUPFILE1)
@@ -525,15 +526,14 @@ lib-tools:
usr.bin/tsort \
gnu/usr.bin/as \
gnu/usr.bin/bison \
gnu/usr.bin/awk \
gnu/usr.bin/cc \
usr.bin/ar \
usr.bin/compile_et \
usr.bin/lex/lib \
usr.bin/mk_cmds \
usr.bin/nm \
usr.bin/ranlib \
usr.bin/uudecode \
gnu/usr.bin/cc
usr.bin/uudecode
cd ${.CURDIR}/$d && ${MAKE} depend && \
${MAKE} ${MK_FLAGS} all && \
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
@@ -553,16 +553,6 @@ libraries:
${MAKE} ${MK_FLAGS} all && \
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
.endif
.if exists(lib/libc)
cd ${.CURDIR}/lib/libc && ${MAKE} depend && \
${MAKE} ${MK_FLAGS} all && \
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
.endif
.if exists(lib/libmytinfo)
cd ${.CURDIR}/lib/libmytinfo && ${MAKE} depend && \
${MAKE} ${MK_FLAGS} all && \
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
.endif
.if exists(lib/libncurses)
cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \
${MAKE} ${MK_FLAGS} all && \
@@ -604,13 +594,6 @@ libraries:
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
.endif
# Exclude perl from the build-tools if NOPERL is defined.
.if defined(NOPERL)
_perl=
.else
_perl= gnu/usr.bin/perl/perl
.endif
#
# build-tools - build and install any other tools needed to complete the
# compile and install.
@@ -629,7 +612,6 @@ build-tools:
bin/date \
bin/dd \
bin/echo \
usr.bin/yacc \
bin/expr \
bin/hostname \
bin/ln \
@@ -637,16 +619,17 @@ build-tools:
bin/mkdir \
bin/mv \
bin/rm \
bin/sh \
bin/test \
gnu/usr.bin/awk \
gnu/usr.bin/bc \
gnu/usr.bin/grep \
gnu/usr.bin/groff \
gnu/usr.bin/gzip \
gnu/usr.bin/man/makewhatis \
gnu/usr.bin/patch \
${_perl} \
gnu/usr.bin/sort \
gnu/usr.bin/texinfo \
share/info \
usr.bin/basename \
usr.bin/cap_mkdb \
usr.bin/chflags \
@@ -657,7 +640,6 @@ build-tools:
usr.bin/file2c \
usr.bin/find \
usr.bin/gencat \
usr.bin/id \
usr.bin/lorder \
usr.bin/m4 \
usr.bin/mkdep \
@@ -675,10 +657,10 @@ build-tools:
usr.bin/vgrind \
usr.bin/vi \
usr.bin/wc \
usr.bin/yacc \
usr.sbin/chown \
usr.sbin/mtree \
usr.sbin/zic \
bin/sh
usr.sbin/zic
cd ${.CURDIR}/$d && ${MAKE} depend && \
${MAKE} ${MK_FLAGS} all && \
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
+2 -4
View File
@@ -1,5 +1,5 @@
This is the top level of the FreeBSD source directory. This file
was last revised on: $FreeBSD$
was last revised on: $Id: README,v 1.7.2.1 1997/08/13 19:49:35 jkh Exp $
For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
@@ -34,7 +34,7 @@ bin System/User commands.
contrib Packages contributed by 3rd parties.
crypto Export controlled stuff (see crypto/README).
eBones Kerberos package - NOT FOR EXPORT!
etc Template files for /etc
@@ -45,8 +45,6 @@ gnu Various commands and libraries under the GNU Public License.
include System include files.
kerberosIV Kerberos package - also export controlled.
lib System libraries.
libexec System daemons.
+1 -1
View File
@@ -1,5 +1,5 @@
# From: @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
# $Id: Makefile,v 1.4 1995/10/01 14:24:01 markm Exp $
SUBDIR= cat chio chmod cp csh date dd df domainname echo ed expr hostname \
kill ln ls mkdir mv pax ps pwd rcp rm rmail rmdir sh sleep \
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile.inc 8.1 (Berkeley) 5/31/93
# $FreeBSD$
# $Id$
BINDIR?= /bin
NOSHARED?= YES
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
# $Id$
PROG= cat
+18 -16
View File
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)cat.1 8.3 (Berkeley) 5/2/95
.\" $FreeBSD$
.\" $Id: cat.1,v 1.6 1997/02/22 14:01:26 peter Exp $
.\"
.Dd May 2, 1995
.Dt CAT 1
@@ -48,7 +48,7 @@
.Op Ar
.Sh DESCRIPTION
The
.Nm
.Nm cat
utility reads files sequentially, writing them to the standard output.
The
.Ar file
@@ -56,44 +56,47 @@ operands are processed in command line order.
A single dash represents the standard input.
.Pp
The options are as follows:
.Bl -tag -width indent
.Bl -tag -width Ds
.It Fl b
Number the non-blank output lines, starting at 1.
Implies the
.Fl n
option but doesn't number blank lines.
.It Fl e
Display non-printing characters (see the
Implies the
.Fl v
option), and display a dollar sign
option, and displays a dollar sign
.Pq Ql \&$
at the end of each line.
at the end of each line
as well.
.It Fl n
Number the output lines, starting at 1.
.It Fl s
Squeeze multiple adjacent empty lines, causing the output to be
single spaced.
.It Fl t
Display non-printing characters (see the
Implies the
.Fl v
option), and display tab characters as
.Ql ^I .
option, and displays tab characters as
.Ql ^I
as well.
.It Fl u
The
.Fl u
option guarantees that the output is unbuffered.
.It Fl v
Display non-printing characters so they are visible.
Displays non-printing characters so they are visible.
Control characters print as
.Ql ^X
for control-X; the delete
character (octal 0177) prints as
.Ql ^?
.Pf Non- Tn ASCII
characters (with the high bit set) are printed as
Non-ascii characters (with the high bit set) are printed as
.Ql M-
(for meta) followed by the character for the low 7 bits.
.El
.Pp
The
.Nm
.Nm cat
utility exits 0 on success, and >0 if an error occurs.
.Sh BUGS
Because of the shell language mechanism used to perform output
@@ -116,8 +119,7 @@ will cause the original data in file1 to be destroyed!
A
.Nm
command appeared in Version 1 AT&T UNIX.
.An Dennis Ritchie
designed and wrote the first man page.
Dennis Ritchie designed and wrote the first man page.
It appears to have been
.Xr cat 1 .
+1 -1
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: cat.c,v 1.5 1996/09/30 15:45:36 ache Exp $
*/
#ifndef lint
+1 -1
View File
@@ -1,4 +1,4 @@
# $FreeBSD$
# $Id: Makefile,v 1.1.1.1 1997/03/06 15:30:06 joerg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= chio
+53 -55
View File
@@ -30,8 +30,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $FreeBSD$
.\"
.Dd April 2, 1996
.Dt CHIO 1
.Os
@@ -63,53 +61,49 @@ rather than the default device
.El
.Pp
The default changer may be overridden by setting the environment variable
.Ev CHANGER
.Nm CHANGER
to the desired changer device.
.Pp
A medium changer apparatus is made up of
.Em elements .
.Pa elements .
There are four element types:
.Em picker
.Pa picker
(medium transport),
.Em slot
.Pa slot
(storage),
.Em portal
.Pa portal
(import/export), and
.Em drive
.Pa drive
(data transfer). In this command description, the shorthand
.Em ET
.Nm ET
will be used to represent an element type, and
.Em EU
.Nm EU
will be used to represent an element unit. For example, to represent
the first robotic arm in the changer, the
.Em ET
would be
the first robotic arm in the changer, the ET would be
.Dq picker
and the
.Em EU
would be
and the EU would be
.Dq 0 .
.Pp
.Sh SUPPORTED COMMANDS
.Bl -tag -width indent
.It Xo Nm chio move
.Nm chio move
.Ar <from ET> <from EU> <to ET> <to EU>
.Op Ar inv
.Xc
Move the media unit from
.Pp
Moves the media unit from
.Pa <from ET/EU>
to
.Pa <to ET/EU> .
If the optional modifier
.Pa inv
is specified, the media unit will be inverted before insertion.
.It Xo Nm chio exchange
.Pp
.Nm chio exchange
.Ar <src ET> <src EU> <dst1 ET> <dst1 EU>
.Op Ar <dst2 ET> <dst2 ET>
.Op Ar inv1
.Op Ar inv2
.Xc
Perform a media unit exchange operation. The media unit in
.Pp
Performs a media unit exchange operation. The media unit in
.Pa <src ET/EU>
is moved to
.Pa <dst1 ET/EU>
@@ -136,10 +130,11 @@ Note that not all medium changers support the
.Nm exchange
operation; The changer must have multiple free pickers or emulate
multiple free pickers with transient storage.
.It Xo Nm chio position
.Pp
.Nm chio position
.Ar <to ET> <to EU>
.Op Ar inv
.Xc
.Pp
Position the picker in front of the element described by
.Pa <to ET/EU> .
If the optional modifier
@@ -147,59 +142,62 @@ If the optional modifier
is specified, the media unit will be inverted before insertion.
.Pp
Note that not all changers behave as expected when issued this command.
.It Nm chio params
.Pp
.Nm chio params
.Pp
Report the number of slots, drives, pickers, and portals in the changer,
and which picker unit the changer is currently configured to use.
.It Nm chio getpicker
.Pp
.Nm chio getpicker
.Pp
Report which picker unit the changer is currently configured to use.
.It Xo Nm chio setpicker
.Pp
.Nm chio setpicker
.Ar <unit>
.Xc
.Pp
Configure the changer to use picker
.Pa <unit> .
.It Xo Nm chio status
.Pp
.Nm chio status
.Op Ar <type>
.Xc
.Pp
Report the status of all elements in the changer. If
.Pa <type>
is specified, report the status of all elements of type
.Pa <type> .
.El
.Pp
The status bits are defined as follows:
.Bl -tag -width indent
.It FULL
.It Nm FULL
Element contains a media unit.
.It IMPEXP
.It Nm IMPEXP
Media was deposited into element by an outside human operator.
.It EXCEPT
.It Nm EXCEPT
Element is in an abnormal state.
.It ACCESS
.It Nm ACCESS
Media in this element is accessible by a picker.
.It EXENAB
Element supports passing media (exporting) to an outside human operator.
.It INENAB
.It Nm EXENAB
Element supports passing media (exporting) to an outsite human operator.
.It Nm INENAB
Element supports receiving media (importing) from an outside human operator.
.El
.Pp
.Sh EXAMPLES
.Bl -tag -width indent
.It Nm chio move slot 3 drive 0
Move the media in slot 3 (fourth slot) to drive 0 (first drive).
.It Nm chio setpicker 2
Configure the changer to use picker 2 (third picker) for operations.
.El
.Nm chio move slot 3 drive 0
.Pp
Moves the media in slot 3 (fourth slot) to drive 0 (first drive).
.Pp
.Nm chio setpicker 2
Configures the changer to use picker 2 (third picker) for operations.
.Pp
.Sh FILES
.Bl -tag -width /dev/ch0 -compact
.It Pa /dev/ch0
default changer device
.El
/dev/ch0 - default changer device
.Sh SEE ALSO
.Xr mt 1 ,
.Xr ch 4 ,
.Xr mount 8
.Sh AUTHORS
.Xr mount 8 .
.Sh AUTHOR
The
.Nm
program and SCSI changer driver were written by
.An Jason R. Thorpe Aq [email protected]
for And Communications, http://www.and.com/
.Nm chio
program and SCSI changer driver were written by Jason R. Thorpe
<[email protected]> for And Communications, http://www.and.com/
+1 -1
View File
@@ -1,4 +1,4 @@
/* $FreeBSD$ */
/* $Id: chio.c,v 1.1.1.1.2.2 1997/08/24 10:29:16 jkh Exp $ */
/*
* Copyright (c) 1996 Jason R. Thorpe <[email protected]>
+1 -1
View File
@@ -1,4 +1,4 @@
/* $FreeBSD$ */
/* $Id: $ */
/*
* Copyright (c) 1996 Jason R. Thorpe <[email protected]>
+1 -1
View File
@@ -1,4 +1,4 @@
/* $FreeBSD$ */
/* $Id: $ */
/*
* Copyright (c) 1996 Jason R. Thorpe <[email protected]>
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
# $Id$
PROG= chmod
+24 -50
View File
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
.\" $FreeBSD$
.\" $Id: chmod.1,v 1.4.2.1 1997/02/28 07:54:25 mpp Exp $
.\"
.Dd March 31, 1994
.Dt CHMOD 1
@@ -51,7 +51,7 @@
.Ar file ...
.Sh DESCRIPTION
The
.Nm
.Nm chmod
utility modifies the file mode bits of the listed files
as specified by the
.Ar mode
@@ -82,7 +82,7 @@ Symbolic links do not have modes, so unless the
or
.Fl L
option is set,
.Nm
.Nm chmod
on a symbolic link always succeeds and has no effect.
The
.Fl H ,
@@ -99,63 +99,39 @@ Only the owner of a file or the super-user is permitted to change
the mode of a file.
.Pp
The
.Nm
.Nm chmod
utility exits 0 on success, and >0 if an error occurs.
.Sh MODES
Modes may be absolute or symbolic.
An absolute mode is an octal number constructed from the sum of
one or more of the following values:
An absolute mode is an octal number constructed by
.Ar or-ing
the following values:
.Pp
.Bl -tag -width 6n -compact -offset indent
.It Li 4000
(the set-user-ID-on-execution bit) Executable files with this bit set
will run with effective uid set to the uid of the file owner.
Directories with the set-user-id bit set will force all files and
sub-directories created in them to be owned by the directory owner
and not by the uid of the creating process, if the underlying file
system supports this feature: see
set-user-ID-on-execution
( see
.Xr chmod 2
and the
.Ar suiddir
option to
.Xr mount 1 .
for directories )
.It Li 2000
(the set-group-ID-on-execution bit) Executable files with this bit set
will run with effective gid set to the gid of the file owner.
set-group-ID-on-execution
.It Li 1000
(the sticky bit)
When set on a directory, unprivileged users can delete and rename
only those files in the directory that are owned by them, regardless of
the permissions on the directory. Under FreeBSD, the sticky bit is
ignored for executable files and may only be set for directories (see
.Xr sticky 8 ).
sticky bit, see
.Xr chmod 2
.It Li 0400
Allow read by owner.
read by owner
.It Li 0200
Allow write by owner.
write by owner
.It Li 0100
For files, allow execution by owner. For directories, allow the owner to
search in the directory.
.It Li 0040
Allow read by group members.
.It Li 0020
Allow write by group members.
.It Li 0010
For files, allow execution by group members. For directories, allow
group members to search in the directory.
.It Li 0004
Allow read by others.
.It Li 0002
Allow write by others.
.It Li 0001
For files, allow execution by others. For directories allow others to
search in the directory.
execute (or search for directories) by owner
.It Li 0070
read, write, execute/search by group
.It Li 0007
read, write, execute/search by others
.El
.Pp
For example, the absolute mode that permits read, write and execute by
the owner, read and execute by group members, read and execute by
others, and no set-uid or set-gid behaviour is 755
(400+200+100+040+010+004+001).
The read, write, and execute/search values for group and others
are encoded as described for owner.
.Pp
The symbolic mode is described by the following grammar:
.Bd -literal -offset indent
@@ -304,18 +280,16 @@ option for the naughty bits.
.Sh SEE ALSO
.Xr chflags 1 ,
.Xr install 1 ,
.Xr mount 1 ,
.Xr chmod 2 ,
.Xr stat 2 ,
.Xr umask 2 ,
.Xr fts 3 ,
.Xr setmode 3 ,
.Xr symlink 7 ,
.Xr chown 8 ,
.Xr sticky 8
.Xr chown 8
.Sh STANDARDS
The
.Nm
.Nm chmod
utility is expected to be
.St -p1003.2
compatible with the exception of the
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: chmod.c,v 1.5.2.1 1997/08/24 10:30:25 jkh Exp $
*/
#ifndef lint
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
# $Id$
PROG= cp
SRCS= cp.c utils.c
+14 -16
View File
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)cp.1 8.3 (Berkeley) 4/18/94
.\" $FreeBSD$
.\" $Id: cp.1,v 1.9 1997/02/22 14:01:32 peter Exp $
.\"
.Dd April 18, 1994
.Dt CP 1
@@ -60,7 +60,7 @@
.Ar source_file ... target_directory
.Sh DESCRIPTION
In the first synopsis form, the
.Nm
.Nm cp
utility copies the contents of the
.Ar source_file
to the
@@ -72,7 +72,7 @@ is copied to the destination
.Ar target_directory .
The names of the files themselves are not changed.
If
.Nm
.Nm cp
detects an attempt to copy a file to itself, the copy will fail.
.Pp
The following options are available:
@@ -94,11 +94,11 @@ option is specified, no symbolic links are followed.
If
.Ar source_file
designates a directory,
.Nm
.Nm cp
copies the directory and the entire subtree connected at that point.
This option also causes symbolic links to be copied, rather than
indirected through, and for
.Nm
.Nm cp
to create special files rather than copying them as normal files.
Created directories have the same mode as the corresponding source
directory, unmodified by the process' umask.
@@ -112,8 +112,8 @@ option overrides any previous
.Fl i
options.)
.It Fl i
Cause
.Nm
Causes
.Nm cp
to write a prompt to the standard error output before copying a file
that would overwrite an existing file.
If the response from the standard input begins with the character
@@ -127,8 +127,8 @@ option overrides any previous
.Fl f
options.)
.It Fl p
Cause
.Nm
Causes
.Nm cp
to preserve in the copy as many of the modification time, access time,
file flags, file mode, user ID, and group ID as allowed by permissions.
.Pp
@@ -143,15 +143,13 @@ be preserved, the set group ID bit is not preserved
in the copy's permissions.
If the source file has both its set user ID and set group ID bits on,
and either the user ID or group ID cannot be preserved, neither
the set user ID nor set group ID bits are preserved in the copy's
the set user ID or set group ID bits are preserved in the copy's
permissions.
.El
.Pp
For each destination file that already exists, its contents are
overwritten if permissions allow. Its mode, user ID, and group
ID are unchanged unless the
.Fl p
option was specified.
overwritten if permissions allow, but its mode, user ID, and group
ID are unchanged.
.Pp
In the second synopsis form,
.Ar target_directory
@@ -202,7 +200,7 @@ command's actions are determined by the last one specified.
exits 0 on success, >0 if an error occurred.
.Sh COMPATIBILITY
Historic versions of the
.Nm
.Nm cp
utility had a
.Fl r
option.
@@ -217,7 +215,7 @@ or fifo's.
.Xr symlink 7
.Sh STANDARDS
The
.Nm
.Nm cp
command is expected to be
.St -p1003.2
compatible.
+1 -2
View File
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: cp.c,v 1.10 1996/03/08 06:58:06 wosch Exp $
*/
#ifndef lint
@@ -261,7 +261,6 @@ copy(argv, type, fts_options)
for (rval = 0; (curr = fts_read(ftsp)) != NULL;) {
switch (curr->fts_info) {
case FTS_NS:
case FTS_DNR:
case FTS_ERR:
warnx("%s: %s",
curr->fts_path, strerror(curr->fts_errno));
+1 -1
View File
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)extern.h 8.2 (Berkeley) 4/1/94
* $FreeBSD$
* $Id: extern.h,v 1.3 1996/02/18 18:48:26 wosch Exp $
*/
typedef struct {
+16 -30
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: utils.c,v 1.9.2.1 1997/08/24 10:34:49 jkh Exp $
*/
#ifndef lint
@@ -207,7 +207,7 @@ copy_link(p, exists)
int len;
char link[MAXPATHLEN];
if ((len = readlink(p->fts_path, link, sizeof(link) - 1)) == -1) {
if ((len = readlink(p->fts_path, link, sizeof(link))) == -1) {
warn("readlink: %s", p->fts_path);
return (1);
}
@@ -262,9 +262,7 @@ setfile(fs, fd)
int fd;
{
static struct timeval tv[2];
struct stat ts;
int rval;
int gotstat;
rval = 0;
fs->st_mode &= S_ISUID | S_ISGID | S_ISVTX |
@@ -276,42 +274,30 @@ setfile(fs, fd)
warn("utimes: %s", to.p_path);
rval = 1;
}
if (fd ? fstat(fd, &ts) : stat(to.p_path, &ts))
gotstat = 0;
else {
gotstat = 1;
ts.st_mode &= S_ISUID | S_ISGID | S_ISVTX |
S_IRWXU | S_IRWXG | S_IRWXO;
}
/*
* Changing the ownership probably won't succeed, unless we're root
* or POSIX_CHOWN_RESTRICTED is not set. Set uid/gid before setting
* the mode; current BSD behavior is to remove all setuid bits on
* chown. If chown fails, lose setuid/setgid bits.
*/
if (!gotstat || fs->st_uid != ts.st_uid || fs->st_gid != ts.st_gid)
if (fd ? fchown(fd, fs->st_uid, fs->st_gid) :
chown(to.p_path, fs->st_uid, fs->st_gid)) {
if (errno != EPERM) {
warn("chown: %s", to.p_path);
rval = 1;
}
fs->st_mode &= ~(S_ISUID | S_ISGID);
}
if (!gotstat || fs->st_mode != ts.st_mode)
if (fd ? fchmod(fd, fs->st_mode) : chmod(to.p_path, fs->st_mode)) {
if (fd ? fchown(fd, fs->st_uid, fs->st_gid) :
chown(to.p_path, fs->st_uid, fs->st_gid)) {
if (errno != EPERM) {
warn("chown: %s", to.p_path);
rval = 1;
}
fs->st_mode &= ~(S_ISUID | S_ISGID);
}
if (fd ? fchmod(fd, fs->st_mode) : chmod(to.p_path, fs->st_mode)) {
warn("chown: %s", to.p_path);
rval = 1;
}
if (!gotstat || fs->st_flags != ts.st_flags)
if (fd ?
fchflags(fd, fs->st_flags) : chflags(to.p_path, fs->st_flags)) {
warn("chflags: %s", to.p_path);
rval = 1;
}
if (fd ?
fchflags(fd, fs->st_flags) : chflags(to.p_path, fs->st_flags)) {
warn("chflags: %s", to.p_path);
rval = 1;
}
return (rval);
}
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
# $Id: Makefile,v 1.5 1994/09/24 02:53:44 davidg Exp $
#
# C Shell with process control; VM/UNIX VAX Makefile
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 8/14/93
# $FreeBSD$
# $Id$
DIR= usd/04.csh
SRCS= tabs csh.1 csh.2 csh.3 csh.4 csh.a csh.g
+1 -1
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)csh.1 8.1 (Berkeley) 6/8/93
.\" $FreeBSD$
.\" $Id: csh.1,v 1.2 1994/09/24 02:54:23 davidg Exp $
.\"
.EH 'USD:4-%''An Introduction to the C shell'
.OH 'An Introduction to the C shell''USD:4-%'
+1 -1
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)csh.2 8.1 (Berkeley) 6/8/93
.\" $FreeBSD$
.\" $Id: csh.2,v 1.2 1994/09/24 02:54:24 davidg Exp $
.\"
.nr H1 1
.NH
+1 -1
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)csh.3 8.1 (Berkeley) 6/8/93
.\" $FreeBSD$
.\" $Id$
.\"
.nr H1 2
.NH
+1 -1
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)csh.4 8.1 (Berkeley) 6/8/93
.\" $FreeBSD$
.\" $Id$
.\"
.nr H1 3
.NH
+1 -1
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)csh.a 8.1 (Berkeley) 6/8/93
.\" $FreeBSD$
.\" $Id$
.\"
.SH
Appendix \- Special characters
+1 -1
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)csh.g 8.1 (Berkeley) 6/8/93
.\" $FreeBSD$
.\" $Id$
.\"
.SH
Glossary
+1 -1
View File
@@ -30,6 +30,6 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)tabs 8.1 (Berkeley) 6/8/93
.\" $FreeBSD$
.\" $Id$
.\"
.ta 5n 10n 15n 20n 25n 30n 35n 40n 45n 50n 55n 60n 65n 70n 75n 80n
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: alloc.c,v 1.3 1995/03/19 13:28:10 joerg Exp $
*/
#ifndef lint
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id$
*/
#ifndef lint
+1 -1
View File
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)char.h 8.1 (Berkeley) 5/31/93
* $FreeBSD$
* $Id$
*/
#include <ctype.h>
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: const.c,v 1.3 1995/05/30 00:06:29 rgrimes Exp $
*/
#ifndef lint
+76 -85
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)csh.1 8.2 (Berkeley) 1/21/94
.\" $FreeBSD$
.\" $Id: csh.1,v 1.8 1997/02/22 14:01:40 peter Exp $
.\"
.Dd January 21, 1994
.Dt CSH 1
@@ -46,15 +46,15 @@
.Op Fl l
.Sh DESCRIPTION
The
.Nm
.Nm csh
is a command language interpreter
incorporating a history mechanism (see
.Sx History Substitutions ) ,
.Nm History Substitutions ) ,
job control facilities (see
.Sx Jobs ) ,
.Nm Jobs ) ,
interactive file name
and user name completion (see
.Sx File Name Completion ) ,
.Nm File Name Completion ) ,
and a C-like syntax. It is used both as an interactive
login shell and a shell script command processor.
.Ss Argument list processing
@@ -100,7 +100,7 @@ is the only flag specified).
The shell loads
.Pa .cshrc
even if it does not belong to the effective user.
.Xr Su 1
.Xr su 1
can pass
.Fl m
to the shell.
@@ -116,16 +116,16 @@ A
may be used to escape the newline at the end of this
line and continue onto another line.
.It Fl v
Cause the
Causes the
.Ar verbose
variable to be set, with the effect
that command input is echoed after history substitution.
.It Fl x
Cause the
Causes the
.Ar echo
variable to be set, so that commands are echoed immediately before execution.
.It Fl V
Cause the
Causes the
.Ar verbose
variable to be set even before
.Pa .cshrc
@@ -157,7 +157,7 @@ Remaining arguments initialize the variable
.Ar argv .
.Pp
An instance of
.Nm
.Nm csh
begins by executing commands from the file
.Pa /etc/csh.cshrc
and,
@@ -256,7 +256,7 @@ showing that the job which was started asynchronously was job number
1 and had one (top-level) process, whose process id was 1234.
.Pp
If you are running a job and wish to do something else you may hit the key
.Em ^Z
.Nm ^Z
(control-Z) which sends a STOP signal to the current job.
The shell will then normally show that the job has been `Stopped',
and print another prompt. You can then manipulate the state of this job,
@@ -271,11 +271,11 @@ the
command
.Ar fg .
A
.Em ^Z
.Nm ^Z
takes effect immediately and
is like an interrupt in that pending output and unread input are discarded
when it is typed. There is another special key
.Em ^Y
.Nm ^Y
that does not generate a STOP signal until a program attempts to
.Xr read 2
it.
@@ -353,7 +353,7 @@ the shell variable
.Ar filec
(see
.Ic set ) ,
.Nm
.Nm csh
will
interactively complete file names and user names from unique
prefixes, when they are input from the terminal followed by
@@ -370,7 +370,7 @@ and the input is
.Pp
.Dl % vi ch<escape>
.Pp
.Nm
.Nm csh
will complete the prefix ``ch''
to the only matching file name ``chaosnet'', changing the input
line to
@@ -381,7 +381,7 @@ However, given
.Pp
.Dl % vi D<escape>
.Pp
.Nm
.Nm csh
will only expand the input to
.Pp
.Dl % vi DSC.
@@ -391,7 +391,7 @@ incomplete, since there are two file names matching the prefix ``D''.
.Pp
If a partial file name is followed by the end-of-file character
(usually control-D), then, instead of completing the name,
.Nm
.Nm csh
will list all file names matching the prefix. For example,
the input
.Pp
@@ -455,7 +455,7 @@ in the previous command with little typing and a high degree of confidence.
History substitutions begin with the character `!' and may begin
.Ar anywhere
in the input stream (with the proviso that they
.Em "do not"
.Nm "do not"
nest.)
This `!' may be preceded by a `\e' to prevent its special meaning; for
convenience, an `!' is passed unchanged when it is followed by a blank,
@@ -631,7 +631,7 @@ Strings enclosed in `"' may be expanded as described below.
.Pp
In both cases the resulting text becomes (all or part of) a single word;
only in one special case (see
.Sx Command Substitution
.Em Command Substitution
below) does a `"' quoted string yield parts of more than one word;
`\'' quoted strings never do.
.Ss Alias substitution
@@ -708,7 +708,7 @@ occurs, and within `\''s where it
.Em never
occurs.
Strings quoted by `\*(ga' are interpreted later (see
.Sx "Command substitution"
.Nm "Command substitution"
below) so `$' substitution does not occur there until later, if at all.
A `$' is passed unchanged if followed by a blank, tab, or end-of-line.
.Pp
@@ -764,11 +764,11 @@ It is not an error for a range to be empty if the second argument is omitted
or in range.
.It $#name
.It ${#name}
Give the number of words in the variable.
Gives the number of words in the variable.
This is useful for later use in a
`$argv[selector]'.
.It $0
Substitute the name of the file from which command input is being read.
Substitutes the name of the file from which command input is being read.
An error occurs if the name is not known.
.It $number
.It ${number}
@@ -788,16 +788,16 @@ The following substitutions may not be modified with `:' modifiers.
.Bl -tag -width Ds -compact -offset indent
.It $?name
.It ${?name}
Substitute the string `1' if name is set, `0' if it is not.
Substitutes the string `1' if name is set, `0' if it is not.
.It $?0
Substitute `1' if the current input filename is known, `0' if it is not.
Substitutes `1' if the current input filename is known, `0' if it is not.
.It \&$\&$\&
Substitute the (decimal) process number of the (parent) shell.
.It $!
Substitute the (decimal) process number of the last background process
started by this shell.
.It $<
Substitute a line from the standard
Substitutes a line from the standard
input, with no further interpretation.
It can be used to read from the keyboard in a shell script.
.El
@@ -922,7 +922,7 @@ is expanded in the same way as `<' input filenames are.
.It >>& name
.It >>! name
.It >>&! name
Use file
Uses file
.Ar name
as the standard output;
like `>' but places output at the end of the file.
@@ -961,11 +961,11 @@ Several of the builtin commands (to be described later)
take expressions, in which the operators are similar to those of C, with
the same precedence.
These expressions appear in the
.Em @ ,
.Em exit ,
.Em if ,
.Nm @,
.Ar exit ,
.Ar if ,
and
.Em while
.Ar while
commands.
The following operators are available:
.Bd -ragged -offset indent
@@ -1076,7 +1076,7 @@ or
.Ar unalias .
.Pp
.It Ic alloc
Show the amount of dynamic memory acquired, broken down into used and
Shows the amount of dynamic memory acquired, broken down into used and
free memory.
With an argument shows the number of free and used blocks in each size
category. The categories start at size 8 and double at each step.
@@ -1085,11 +1085,11 @@ systems other than the VAX may use a different memory allocator.
.Pp
.It Ic bg
.It Ic bg \&% Ns Ar job ...
Put the current or specified jobs into the background, continuing them
Puts the current or specified jobs into the background, continuing them
if they were stopped.
.Pp
.It Ic break
Cause execution to resume after the
Causes execution to resume after the
.Ic end
of the nearest enclosing
.Ic foreach
@@ -1099,7 +1099,7 @@ The remaining commands on the current line are executed.
Multi-level breaks are thus possible by writing them all on one line.
.Pp
.It Ic breaksw
Cause a break from a
Causes a break from a
.Ic switch ,
resuming after the
.Ic endsw .
@@ -1137,7 +1137,7 @@ or
The rest of the commands on the current line are executed.
.Pp
.It Ic default :
Label the default case in a
Labels the default case in a
.Ic switch
statement.
The default should come after all
@@ -1145,7 +1145,7 @@ The default should come after all
labels.
.Pp
.It Ic dirs
Print the directory stack; the top of the stack is at the left,
Prints the directory stack; the top of the stack is at the left,
the first directory in the stack being the current directory.
.Pp
.It Ic echo Ar wordlist
@@ -1192,7 +1192,7 @@ variable (first form) or with the value of the specified
.Pp
.It Ic fg
.It Ic fg % Ns Ar job ...
Bring the current or specified jobs into the foreground, continuing them if
Brings the current or specified jobs into the foreground, continuing them if
they were stopped.
.Pp
.It Ic foreach Ar name (wordlist)
@@ -1252,7 +1252,7 @@ that does not begin with a `/'.
.It Ic history Ar n
.It Ic history Fl r Ar n
.It Ic history Fl h Ar n
Display the history event list; if
Displays the history event list; if
.Ar n
is given only the
.Ar n
@@ -1324,7 +1324,7 @@ must appear alone on its input line or after an
.Pp
.It Ic jobs
.It Ic jobs Fl l
List the active jobs; the
Lists the active jobs; the
.Fl l
option lists process id's in addition to the normal information.
.Pp
@@ -1332,10 +1332,10 @@ option lists process id's in addition to the normal information.
.It Ic kill Ar pid
.It Ic kill Fl sig Ar pid ...
.It Ic kill Fl l
Send either the TERM (terminate) signal or the
Sends either the TERM (terminate) signal or the
specified signal to the specified jobs or processes.
Signals are either given by number or by names (as given in
.Pa /usr/include/signal.h ,
.Pa /usr/include/signal.h,
stripped of the prefix ``SIG'').
The signal names are listed by ``kill \-l''.
There is no default, just saying `kill' does not
@@ -1349,7 +1349,7 @@ then the job or process will be sent a CONT (continue) signal as well.
.It Ic limit Fl h
.It Ic limit Fl h Ar resource
.It Ic limit Fl h Ar resource maximum-use
Limit the consumption by the current process and each process
Limits the consumption by the current process and each process
it creates to not individually exceed
.Ar maximum-use
on the
@@ -1405,7 +1405,7 @@ of the names suffice.
.Pp
.It Ic login
Terminate a login shell, replacing it with an instance of
.Pa /usr/bin/login .
.Pa /usr/bin/login.
This is one way to log off, included for compatibility with
.Xr sh 1 .
.Pp
@@ -1448,7 +1448,7 @@ All processes detached with `&' are effectively
.Pp
.It Ic notify
.It Ic notify % Ns Ar job ...
Cause the shell to notify the user asynchronously when the status of the
Causes the shell to notify the user asynchronously when the status of the
current or specified jobs change; normally notification is presented
before a prompt. This is automatic if the shell variable
.Ic notify
@@ -1478,7 +1478,7 @@ are disabled (/etc/csh.cshrc, /etc/csh.login).
.Pp
.It Ic popd
.It Ic popd Ar +n
Pop the directory stack, returning to the new top directory.
Pops the directory stack, returning to the new top directory.
With an argument
.Ns \`+ Ar n Ns \'
discards the
@@ -1511,7 +1511,7 @@ stack around to be the top element and changes to it. The members
of the directory stack are numbered from the top starting at 0.
.Pp
.It Ic rehash
Cause the internal hash table of the contents of the directories in
Causes the internal hash table of the contents of the directories in
the
.Ic path
variable to be recomputed. This is needed if new commands are added
@@ -1589,7 +1589,7 @@ The most commonly used environment variables
and
.Ev PATH
are automatically imported to and exported from the
.Nm
.Nm csh
variables
.Ar user ,
.Ar term ,
@@ -1625,21 +1625,19 @@ commands.
Normally input during
.Ic source
commands is not placed on the history list;
the
.Fl h
option causes the commands to be placed on the
the \-h option causes the commands to be placed on the
history list without being executed.
.Pp
.It Ic stop
.It Ic stop % Ns Ar job ...
Stop the current or specified jobs that are executing in the background.
Stops the current or specified jobs that are executing in the background.
.Pp
.It Ic suspend
Cause the shell to stop in its tracks, much as if it had been sent a stop
Causes the shell to stop in its tracks, much as if it had been sent a stop
signal with
.Em ^Z .
.Ic ^Z .
This is most often used to stop shells started by
.Xr su 1 .
.Xr su 1 .
.Pp
.It Ic switch Ar (string)
.It Ic case Ar str1 :
@@ -1701,7 +1699,7 @@ is disabled.
.It Ic unlimit Ar resource
.It Ic unlimit Fl h
.It Ic unlimit Fl h Ar resource
Remove the limitation on
Removes the limitation on
.Ar resource .
If no
.Ar resource
@@ -1720,7 +1718,7 @@ It is not an error for nothing to be
.Ic unset .
.Pp
.It Ic unsetenv Ar pattern
Remove all variables whose name match the specified pattern from the
Removes all variables whose name match the specified pattern from the
environment. See also the
.Ic setenv
command above and
@@ -1732,7 +1730,7 @@ If the shell is interactive, then an interrupt can disrupt the wait.
After the interrupt, the shell prints names and job numbers of all jobs
known to be outstanding.
.It Ic which Ar command
Display the resolved command that will be executed by the shell.
Displays the resolved command that will be executed by the shell.
.Pp
.It Ic while Ar (expr)
.It \&...
@@ -1757,10 +1755,10 @@ Prompting occurs here the first time through the loop as for the
statement if the input is a terminal.
.Pp
.It Ic % Ns Ar job
Bring the specified job into the foreground.
Brings the specified job into the foreground.
.Pp
.It Ic % Ns Ar job Ic &
Continue the specified job in the background.
Continues the specified job in the background.
.Pp
.It Ic @
.It Ic @ Ar name Ns = Ns expr
@@ -1833,7 +1831,7 @@ is likewise handled; it is not
necessary to worry about its setting other than in the file
.Ar \&.cshrc
as inferior
.Nm
.Nm csh
processes will import the definition of
.Ar path
from the environment, and re-export it if you then change it.
@@ -1844,7 +1842,7 @@ positional parameters are substituted, i.e., `$1' is replaced by
`$argv[1]',
etc.
.It Ic cdpath
Give a list of alternate directories searched to find subdirectories
Gives a list of alternate directories searched to find subdirectories
in
.Ar chdir
commands.
@@ -1912,9 +1910,10 @@ files are not accidentally destroyed, and that `>>' redirections
refer to existing files.
.It Ic noglob
If set, filename expansion is inhibited.
This inhibition is most useful in shell scripts that are not dealing with
filenames, or after a list of filenames has been obtained and further
expansions are not desirable.
This inhibition is most useful in shell scripts that
are not dealing with filenames,
or after a list of filenames has been obtained and further expansions
are not desirable.
.It Ic nonomatch
If set, it is not an error for a filename expansion to not match any
existing files; instead the primitive pattern is returned.
@@ -1982,7 +1981,7 @@ If it terminated abnormally, then 0200 is added to the status.
Builtin commands that fail return exit status `1',
all other builtin commands set status to `0'.
.It Ic time
Control automatic timing of commands.
Controls automatic timing of commands.
If set, then any command that takes more than this many cpu seconds
will cause a line giving user, system, and real times and a utilization
percentage which is the ratio of user plus system times to real time
@@ -2081,35 +2080,27 @@ signal; otherwise this signal is passed on to children from the state in the
shell's parent.
Interrupts are not allowed when a login shell is reading the file
.Pa \&.logout .
.Sh AUTHORS
.An William Joy .
.Pp
Job control and directory stack features first implemented by
.An J.E. Kulp
of IIASA, Laxenburg, Austria,
.Sh AUTHOR
William Joy.
Job control and directory stack features first implemented by J.E. Kulp of
IIASA, Laxenburg, Austria,
with different syntax than that used now.
.Pp
File name completion code written by
.An Ken Greer ,
HP Labs.
.Pp
Eight-bit implementation
.An Christos S. Zoulas ,
Cornell University.
File name completion code written by Ken Greer, HP Labs.
Eight-bit implementation Christos S. Zoulas, Cornell University.
.Sh FILES
.Bl -tag -width /etc/passwd -compact
.It Pa ~/.cshrc
read at beginning of execution by each shell.
Read at beginning of execution by each shell.
.It Pa ~/.login
read by login shell, after `.cshrc' at login.
Read by login shell, after `.cshrc' at login.
.It Pa ~/.logout
read by login shell, at logout.
Read by login shell, at logout.
.It Pa /bin/sh
standard shell, for shell scripts not starting with a `#'.
Standard shell, for shell scripts not starting with a `#'.
.It Pa /tmp/sh*
temporary file for `<<'.
Temporary file for `<<'.
.It Pa /etc/passwd
source of home directories for `~name'.
Source of home directories for `~name'.
.El
.Sh LIMITATIONS
Word lengths \-
+6 -6
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: csh.c,v 1.6.2.1 1997/08/24 21:41:29 jkh Exp $
*/
#ifndef lint
@@ -525,7 +525,7 @@ notty:
{
int osetintr = setintr;
sig_t oparintr = parintr;
int omask = sigblock(sigmask(SIGINT));
sigset_t omask = sigblock(sigmask(SIGINT));
setintr = 0;
parintr = SIG_IGN; /* Disable onintr */
@@ -696,7 +696,7 @@ srcunit(unit, onlyown, hflg)
bool otell = cantell;
struct Bin saveB;
volatile int omask;
volatile sigset_t omask;
jmp_buf oldexit;
/* The (few) real local variables */
@@ -932,9 +932,9 @@ pintr1(wantnl)
bool wantnl;
{
Char **v;
int omask;
sigset_t omask;
omask = sigblock(0);
omask = sigblock((sigset_t) 0);
if (setintr) {
(void) sigsetmask(omask & ~sigmask(SIGINT));
if (pjobs) {
@@ -1004,7 +1004,7 @@ process(catch)
* Interruptible during interactive reads
*/
if (setintr)
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
/*
* For the sake of reset()
+1 -1
View File
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)csh.h 8.1 (Berkeley) 5/31/93
* $FreeBSD$
* $Id: csh.h,v 1.2 1994/09/24 02:53:52 davidg Exp $
*/
/*
+5 -3
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: dir.c,v 1.4 1995/06/18 14:34:48 ache Exp $
*/
#ifndef lint
@@ -702,7 +702,8 @@ dcanon(cp, p)
*/
*--sp = 0; /* form the pathname for readlink */
if (sp != cp && !adrof(STRignore_symlinks) &&
(cc = readlink(short2str(cp), tlink, sizeof(tlink) - 1)) >= 0) {
(cc = readlink(short2str(cp), tlink,
sizeof tlink)) >= 0) {
(void) Strcpy(link, str2short(tlink));
link[cc] = '\0';
@@ -786,7 +787,8 @@ dcanon(cp, p)
if (sp != cp && adrof(STRchase_symlinks) &&
!adrof(STRignore_symlinks) &&
(cc = readlink(short2str(cp), tlink, sizeof(tlink) - 1)) >= 0) {
(cc = readlink(short2str(cp), tlink,
sizeof tlink)) >= 0) {
(void) Strcpy(link, str2short(tlink));
link[cc] = '\0';
+1 -1
View File
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)dir.h 8.1 (Berkeley) 5/31/93
* $FreeBSD$
* $Id$
*/
/*
+6 -14
View File
@@ -30,14 +30,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: dol.c,v 1.3 1995/05/30 00:06:31 rgrimes Exp $
*/
#ifndef lint
static char sccsid[] = "@(#)dol.c 8.1 (Berkeley) 5/31/93";
#endif /* not lint */
#include <sys/times.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
@@ -848,20 +847,13 @@ heredoc(term)
Char **vp;
bool quoted;
char *tmp;
struct timeval tv;
again:
tmp = short2str(shtemp);
if (open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0600) < 0) {
if (creat(tmp = short2str(shtemp), 0600) < 0)
stderror(ERR_SYSTEM, tmp, strerror(errno));
(void) close(0);
if (open(tmp, O_RDWR) < 0) {
int oerrno = errno;
if (errno == EEXIST) {
if (unlink(tmp) == -1) {
(void) gettimeofday(&tv, NULL);
shtemp = Strspl(STRtmpsh, putn((((int)tv.tv_sec) ^
((int)tv.tv_usec) ^ ((int)getpid())) & 0x00ffffff));
}
goto again;
}
(void) unlink(tmp);
errno = oerrno;
stderror(ERR_SYSTEM, tmp, strerror(errno));
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: err.c,v 1.2.8.1 1997/08/24 21:41:31 jkh Exp $
*/
#ifndef lint
+2 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: exec.c,v 1.4 1995/06/18 14:20:16 ache Exp $
*/
#ifndef lint
@@ -193,7 +193,7 @@ doexec(v, t)
* We must do this AFTER any possible forking (like `foo` in glob) so that
* this shell can still do subprocesses.
*/
(void) sigsetmask(0);
(void) sigsetmask((sigset_t) 0);
/*
* If no path, no words in path, or a / in the filename then restrict the
* command search.
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: exp.c,v 1.2 1994/09/24 02:54:00 davidg Exp $
*/
#ifndef lint
+1 -1
View File
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)extern.h 8.1 (Berkeley) 5/31/93
* $FreeBSD$
* $Id: extern.h,v 1.2 1994/09/24 02:54:02 davidg Exp $
*/
#include <sys/cdefs.h>
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: file.c,v 1.4.2.1 1997/08/24 21:41:33 jkh Exp $
*/
#ifndef lint
+5 -5
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: func.c,v 1.5 1996/08/11 23:10:38 ache Exp $
*/
#ifndef lint
@@ -507,7 +507,7 @@ preread()
{
whyles->w_end.type = I_SEEK;
if (setintr)
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
search(T_BREAK, 0, NULL); /* read the expression in */
if (setintr)
@@ -565,7 +565,7 @@ dorepeat(v, kp)
struct command *kp;
{
int i;
int omask = 0;
sigset_t omask = 0;
i = getn(v[1]);
if (setintr)
@@ -907,7 +907,7 @@ xecho(sep, v)
int nonl = 0;
if (setintr)
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
v++;
if (*v == 0)
return;
@@ -955,7 +955,7 @@ dosetenv(v, t)
Char **ep;
if (setintr)
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
for (ep = STR_environ; *ep; ep++)
(void) fprintf(cshout, "%s\n", vis_str(*ep));
return;
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: glob.c,v 1.6 1996/10/31 07:22:48 ache Exp $
*/
#ifndef lint
+2 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: hist.c,v 1.2 1994/09/24 02:54:06 davidg Exp $
*/
#ifndef lint
@@ -127,7 +127,7 @@ dohist(v, t)
if (getn(value(STRhistory)) == 0)
return;
if (setintr)
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
while (*++v && **v == '-') {
Char *vp = *v;
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id$
*/
#ifndef lint
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: lex.c,v 1.4 1995/08/10 05:13:42 ache Exp $
*/
#ifndef lint
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: misc.c,v 1.3 1996/09/28 14:32:01 bde Exp $
*/
#ifndef lint
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: parse.c,v 1.3 1995/05/30 00:06:37 rgrimes Exp $
*/
#ifndef lint
+1 -1
View File
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)pathnames.h 8.1 (Berkeley) 5/31/93
* $FreeBSD$
* $Id: pathnames.h,v 1.2 1994/09/24 02:54:12 davidg Exp $
*/
#define _PATH_BIN "/bin"
+10 -10
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: proc.c,v 1.2.8.1 1997/08/24 21:41:37 jkh Exp $
*/
#ifndef lint
@@ -205,7 +205,7 @@ pnote()
{
struct process *pp;
int flags;
int omask;
sigset_t omask;
neednote = 0;
for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) {
@@ -228,7 +228,7 @@ void
pwait()
{
struct process *fp, *pp;
int omask;
sigset_t omask;
/*
* Here's where dead procs get flushed.
@@ -259,7 +259,7 @@ pjwait(pp)
{
struct process *fp;
int jobflags, reason;
int omask;
sigset_t omask;
while (pp->p_pid != pp->p_jobid)
pp = pp->p_friends;
@@ -348,7 +348,7 @@ dowait(v, t)
struct command *t;
{
struct process *pp;
int omask;
sigset_t omask;
pjobs++;
omask = sigblock(sigmask(SIGCHLD));
@@ -356,7 +356,7 @@ loop:
for (pp = proclist.p_next; pp; pp = pp->p_next)
if (pp->p_pid && /* pp->p_pid == pp->p_jobid && */
pp->p_flags & PRUNNING) {
(void) sigpause(0);
(void) sigpause((sigset_t) 0);
goto loop;
}
(void) sigsetmask(omask);
@@ -1003,7 +1003,7 @@ pkill(v, signum)
struct process *pp, *np;
int jobflags = 0;
int pid, err1 = 0;
int omask;
sigset_t omask;
Char *cp;
omask = sigmask(SIGCHLD);
@@ -1087,7 +1087,7 @@ pstart(pp, foregnd)
int foregnd;
{
struct process *np;
int omask;
sigset_t omask;
long jobflags = 0;
omask = sigblock(sigmask(SIGCHLD));
@@ -1233,7 +1233,7 @@ pfork(t, wanttty)
int pid;
bool ignint = 0;
int pgrp;
int omask;
sigset_t omask;
/*
* A child will be uninterruptible only under very special conditions.
@@ -1330,7 +1330,7 @@ void
pgetty(wanttty, pgrp)
int wanttty, pgrp;
{
int omask = 0;
sigset_t omask = 0;
/*
* christos: I am blocking the tty signals till I've set things
+1 -1
View File
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)proc.h 8.1 (Berkeley) 5/31/93
* $FreeBSD$
* $Id$
*/
/*
+4 -4
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: sem.c,v 1.3 1995/05/30 00:06:37 rgrimes Exp $
*/
#ifndef lint
@@ -70,9 +70,9 @@ execute(t, wanttty, pipein, pipeout)
int pid = 0;
int pv[2];
static int csigmask;
static sigset_t csigmask;
static int ocsigmask;
static sigset_t ocsigmask;
static int onosigchld = 0;
static int nosigchld = 0;
@@ -226,7 +226,7 @@ execute(t, wanttty, pipein, pipeout)
else {
int ochild, osetintr, ohaderr, odidfds;
int oSHIN, oSHOUT, oSHERR, oOLDSTD, otpgrp;
int omask;
sigset_t omask;
/*
* Prepare for the vfork by saving everything that the child
+2 -2
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: set.c,v 1.4 1995/07/07 23:13:11 ache Exp $
*/
#ifndef lint
@@ -819,7 +819,7 @@ plist(p)
int len;
if (setintr)
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
for (;;) {
while (p->v_left)
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: str.c,v 1.3 1995/05/30 00:06:39 rgrimes Exp $
*/
#ifndef lint
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: time.c,v 1.5 1995/05/30 00:06:40 rgrimes Exp $
*/
#ifndef lint
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
# $Id: Makefile,v 1.2 1994/09/24 02:54:33 davidg Exp $
PROG= date
SRCS= date.c netdate.c vary.c
+16 -16
View File
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)date.1 8.3 (Berkeley) 4/28/95
.\" $FreeBSD$
.\" $Id: date.1,v 1.8.2.6 1997/10/03 12:54:28 danny Exp $
.\"
.Dd November 17, 1993
.Dt DATE 1
@@ -52,7 +52,7 @@
.Op Fl f Ar fmt Ar date | [[[[yy]mm]dd]HH]MM[\&.ss]
.Op Cm + Ns Ar format
.Sh DESCRIPTION
.Nm Date
.Nm
displays the current date and time when invoked without arguments.
Providing arguments will format the date and time in a user-defined
way or set the date.
@@ -84,12 +84,12 @@ is used to synchronize the clocks on groups of machines.
By default, if
.Xr timed
is running,
.Nm
.Nm date
will set the time on all of the machines in the local group.
The
.Fl n
option stops
.Nm
.Nm date
from setting the time for other than the current machine.
.It Fl r
Print out the date and time in
@@ -112,14 +112,14 @@ Adjust the minute, hour, month day, week day, month or year according to
.Ar val .
If
.Ar val
is preceded with a plus or minus sign, the date is adjusted forwards
is preceeded with a plus or minus sign, the date is adjusted forwards
or backwards according to the remaining string, otherwise the relevant
part of the date is set. The date can be adjusted as many times as
required using these flags. Flags are processed in the order given.
.Pp
Minutes are in the range 0-59, hours are in the range 1-12, month days
are in the range 1-31, week days are in the range 0-6 (Sun-Sat), months
are in the range 1-12 (Jan-Dec) and years are in the range 80-38 or
are in the range 1-31, week days are in the range 0-6 (sun-sat), months
are in the range 1-12 (jan-dec) and years are in the range 80-38 or
1980-2038.
.Pp
If
@@ -183,7 +183,7 @@ and years are handled automatically.
.Sh EXAMPLES
The command:
.Bd -literal -offset indent
date "+DATE: %Y-%m-%d%nTIME: %H:%M:%S"
date "+DATE: 19%y-%m-%d%nTIME: %H:%M:%S"
.Ed
.Pp
will display:
@@ -219,7 +219,7 @@ The command:
date -v1d -v+1m -v-1d -v-fri
.Ed
.Pp
will display the last Friday of the month:
will display the last friday of the month:
.Bd -literal -offset indent
Fri Aug 29 04:31:11 BST 1997
.Ed
@@ -242,7 +242,7 @@ date 1432
sets the time to
.Li "2:32 PM" ,
without modifying the date.
.Sh ENVIRONMENT
.Sh ENVIRONMENT VARIABLES
The execution of
.Nm
is affected by the following environment variables:
@@ -250,7 +250,7 @@ is affected by the following environment variables:
.It Ev TZ
The timezone to use when displaying dates.
The normal format is a pathname relative to
.Pa /usr/share/zoneinfo .
.Dq Pa /usr/share/zoneinfo .
For example, the command
.Dq TZ=America/Los_Angeles date
displays the current time in California.
@@ -261,9 +261,9 @@ for more information.
.Sh FILES
.Bl -tag -width /var/log/messages -compact
.It Pa /var/log/wtmp
a record of date resets and time changes
A record of date resets and time changes.
.It Pa /var/log/messages
a record of the user setting the time
A record of the user setting the time.
.El
.Sh SEE ALSO
.Xr gettimeofday 2 ,
@@ -285,14 +285,14 @@ Occasionally, when
synchronizes the time on many hosts, the setting of a new time value may
require more than a few seconds.
On these occasions,
.Nm
.Nm date
prints:
.Ql Network time being set .
The message
.Ql Communication error with timed
occurs when the communication
between
.Nm
.Nm date
and
.Xr timed
fails.
@@ -313,7 +313,7 @@ will be running on
.Tn GMT .
.Sh STANDARDS
The
.Nm
.Nm date
command is expected to be compatible with
.St -p1003.2 .
.Sh HISTORY
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: date.c,v 1.7.2.6 1997/10/03 12:54:30 danny Exp $
*/
#ifndef lint
+1 -1
View File
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)extern.h 8.1 (Berkeley) 5/31/93
* $FreeBSD$
* $Id$
*/
int netsettime __P((time_t));
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: netdate.c,v 1.3.6.1 1997/03/10 19:51:16 guido Exp $
*/
#ifndef lint
+3 -3
View File
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id$
*/
#include <time.h>
@@ -38,8 +38,8 @@ struct trans {
static struct trans trans_mon[] = {
{ 1, "january" }, { 2, "february" }, { 3, "march" }, { 4, "april" },
{ 5, "may" }, { 6, "june" }, { 7, "july" }, { 8, "august" },
{ 9, "september" }, { 10, "october" }, { 11, "november" }, { 12, "december" },
{ 6, "june" }, { 7, "july" }, { 8, "august" }, { 9, "september" },
{ 10, "october" }, { 11, "november" }, { 12, "december" },
{ -1, NULL }
};
+1 -1
View File
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id$
*/
struct vary {
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
# $Id$
PROG= dd
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
+1 -1
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: args.c,v 1.3.8.2 1997/08/24 21:45:26 jkh Exp $
*/
#ifndef lint
+1 -1
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: conv.c,v 1.3.8.1 1996/11/21 16:30:30 phk Exp $
*/
#ifndef lint
+1 -1
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: conv_tab.c,v 1.3 1995/01/17 23:04:28 ache Exp $
*/
#ifndef lint
+9 -9
View File
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)dd.1 8.2 (Berkeley) 1/13/94
.\" $FreeBSD$
.\" $Id: dd.1,v 1.2.8.2 1997/08/24 21:45:30 jkh Exp $
.\"
.Dd January 13, 1994
.Dt DD 1
@@ -52,7 +52,7 @@ Input data is read and written in 512-byte blocks.
If input reads are short, input from multiple reads are aggregated
to form the output block.
When finished,
.Nm
.Nm dd
displays the number of complete and partial input and output blocks
and truncated input records to the standard error output.
.Pp
@@ -237,7 +237,7 @@ will be positioned past the block in which the error occurred using
Do not truncate the output file.
This will preserve any blocks in the output file not explicitly written
by
.Nm Ns .
.Nm dd .
The
.Cm notrunc
value is not supported for tapes.
@@ -287,7 +287,7 @@ in an integer, respectively.
Two or more numbers may be separated by an ``x'' to indicate a product.
.Pp
When finished,
.Nm
.Nm dd
displays the number of complete and partial input and output blocks,
truncated input records and odd-length byte-swapping blocks to the
standard error output.
@@ -310,7 +310,7 @@ This means that the final output block may be shorter than the output
block size.
.Pp
If
.Nm
.Nm dd
receives a
.Dv SIGINFO
(see the ``status'' argument for
@@ -319,17 +319,17 @@ signal, the current input and output block counts will
be written to the standard error output
in the same format as the standard completion message.
If
.Nm
.Nm dd
receives a
.Dv SIGINT
signal, the current input and output block counts will
be written to the standard error output
in the same format as the standard completion message and
.Nm
.Nm dd
will exit.
.Pp
The
.Nm
.Nm dd
utility exits 0 on success and >0 if an error occurred.
.Sh SEE ALSO
.Xr cp 1 ,
@@ -337,7 +337,7 @@ utility exits 0 on success and >0 if an error occurred.
.Xr tr 1
.Sh STANDARDS
The
.Nm
.Nm dd
utility is expected to be a superset of the
.St -p1003.2
standard.
+1 -1
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: dd.c,v 1.5.2.4 1998/01/09 09:13:06 joerg Exp $
*/
#ifndef lint
+1 -1
View File
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)dd.h 8.3 (Berkeley) 4/2/94
* $FreeBSD$
* $Id: dd.h,v 1.2.8.2 1998/02/11 02:24:40 asami Exp $
*/
/* Input/output stream state. */
+1 -1
View File
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)extern.h 8.3 (Berkeley) 4/2/94
* $FreeBSD$
* $Id$
*/
#include <sys/cdefs.h>
+4 -5
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: misc.c,v 1.2.8.3 1998/02/11 02:24:41 asami Exp $
*/
#ifndef lint
@@ -100,10 +100,9 @@ summaryx(notused)
/* ARGSUSED */
void
terminate(sig)
int sig;
terminate(notused)
int notused;
{
/* XXX exit() shouldn't call exit() from a signal handler. */
exit(sig == 0 ? 0 : 1);
exit(0);
}
+1 -1
View File
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: position.c,v 1.2 1994/09/24 02:55:03 davidg Exp $
*/
#ifndef lint
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.2 (Berkeley) 4/1/94
# $FreeBSD$
# $Id$
PROG= df
BINGRP= operator
+25 -32
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)df.1 8.2 (Berkeley) 1/13/94
.\" $FreeBSD$
.\" $Id: df.1,v 1.4.2.2 1997/09/19 06:18:10 charnier Exp $
.\"
.Dd January 13, 1994
.Dt DF 1
@@ -40,7 +40,7 @@
.Nd display free disk space
.Sh SYNOPSIS
.Nm df
.Op Fl ikn
.Op Fl ink
.Op Fl t Ar type
.Op Ar file | Ar filesystem ...
.Sh DESCRIPTION
@@ -72,37 +72,31 @@ This option should be used if it is possible that one or more
filesystems are in a state such that they will not be able to provide
statistics without a long delay.
When this option is specified,
.Nm
.Nm df
will not request new statistics from the filesystems, but will respond
with the possibly stale statistics that were previously obtained.
.It Fl t
Only print out statistics for filesystems of the specified types.
More than one type may be specified in a comma separated list.
The list of filesystem types can be prefixed with
.Dq no
to specify the filesystem types for which action should
.Em not
be taken.
For example, the
.Nm
command:
.Bd -literal -offset indent
df -t nonfs,mfs
.Ed
.Pp
lists all filesystems except those of type
.Tn NFS
and
.Tn MFS .
The
.Xr sysctl 8
command can be used to find out the types of filesystems
that are available on the system:
.Bd -literal -offset indent
sysctl vfs
.Ed
The recognized types are:
ufs, nfs, mfs, lfs, msdos, fdesc, portal, kernfs, procfs, afs, isofs,
iso9660fs, cdfs, and cd9660,
along with the aggregates:
all (the default),
local (ufs, mfs, lfs, msdos, cd9660),
and misc (fdesc, portal, kernfs, procfs).
The names isofs, iso9660fs, cdfs, and cd9660 are aliases to each other
all of them refering to the same type of file system.
The string ``no'' may be prepending to a type to get its complement
(e.g. ``nonfs'' to get non-NFS filesystems). The first
.Fl t
option overrides the default, additional such options will add to
(or subtract from) the current set of types; e.g. either
``df -t ufs -t lfs''
or
``df -t local -t nomfs''
will display statistics for UFS and LFS filesystems.
.El
.Sh ENVIRONMENT
.Sh ENVIRONMENT VARIABLES
.Bl -tag -width BLOCKSIZE
.It Ev BLOCKSIZE
If the environment variable
@@ -117,16 +111,15 @@ and
flags are ignored if a file or filesystem is specified.
.Sh SEE ALSO
.Xr quota 1 ,
.Xr statfs 2 ,
.Xr fstatfs 2 ,
.Xr getfsstat 2 ,
.Xr statfs 2 ,
.Xr getmntinfo 3 ,
.Xr fstab 5 ,
.Xr mount 8 ,
.Xr quot 8 ,
.Xr sysctl 8
.Xr quot 8
.Sh HISTORY
A
.Nm
.Nm df
command appeared in
.At v1 .
+1 -1
View File
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: df.c,v 1.8.2.1 1996/12/13 17:15:11 joerg Exp $
*/
#ifndef lint
+1 -1
View File
@@ -1,4 +1,4 @@
# $FreeBSD$
# $Id$
PROG= domainname
+2 -2
View File
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" From: @(#)hostname.1 8.1 (Berkeley) 5/31/93
.\" $FreeBSD$
.\" $Id: domainname.1,v 1.2 1995/01/14 17:02:33 ats Exp $
.\"
.Dd September 18, 1994
.Dt DOMAINNAME 1
@@ -42,7 +42,7 @@
.Nm domainname
.Op Ar ypdomain
.Sh DESCRIPTION
.Nm Domainname
.Nm domainname
prints the name of the current YP/NIS domain. The super-user can
set the domain name by supplying an argument; this is usually done in the
network initialization script
+1 -1
View File
@@ -40,7 +40,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "From: @(#)hostname.c 8.1 (Berkeley) 5/31/93"; */
static const char rcsid[] =
"$FreeBSD$";
"$Id: domainname.c,v 1.5 1995/03/19 13:28:17 joerg Exp $";
#endif /* not lint */
#include <sys/param.h>
+1 -1
View File
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
# $Id$
PROG= echo
+4 -4
View File
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)echo.1 8.1 (Berkeley) 7/22/93
.\" $FreeBSD$
.\" $Id: echo.1,v 1.2 1994/09/24 02:55:17 davidg Exp $
.\"
.Dd July 22, 1993
.Dt ECHO 1
@@ -47,7 +47,7 @@
.Op "string ..."
.Sh DESCRIPTION
The
.Nm
.Nm echo
utility writes any specified operands, separated by single blank (`` '')
characters and followed by a newline (``\en'') character, to the standard
output.
@@ -61,13 +61,13 @@ by iBCS2 compatible systems.
.El
.Pp
The
.Nm
.Nm echo
utility exits 0 on success, and >0 if an error occurs.
.Sh SEE ALSO
.Xr printf 1
.Sh STANDARDS
The
.Nm
.Nm echo
utility is expected to be
.St -p1003.2
compatible.
+1 -1
View File
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: echo.c,v 1.2 1994/09/24 02:55:18 davidg Exp $
*/
#ifndef lint
+4 -4
View File
@@ -1,11 +1,11 @@
# $FreeBSD$
# $Id: Makefile,v 1.12 1995/10/03 15:44:50 markm Exp $
PROG= ed
SRCS= buf.c cbc.c glbl.c io.c main.c re.c sub.c undo.c
LINKS= ${BINDIR}/ed ${BINDIR}/red
MLINKS= ed.1 red.1
LINKS= ${BINDIR}/ed ${BINDIR}/red
MLINKS= ed.1 red.1
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
.if exists(../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
DISTRIBUTION=des
CFLAGS+=-DDES
LDADD+= -L${CIPHEROBJDIR} -lcipher
+1 -1
View File
@@ -1,4 +1,4 @@
$FreeBSD$
$Id$
This version of ed(1) is not strictly POSIX compliant, as described in
the POSIX 1003.2 document. The following is a summary of the omissions,
+1 -1
View File
@@ -1,4 +1,4 @@
$FreeBSD$
$Id$
ed is an 8-bit-clean, POSIX-compliant line editor. It should work with
any regular expression package that conforms to the POSIX interface
+1 -1
View File
@@ -31,7 +31,7 @@
static char * const rcsid = "@(#)buf.c,v 1.4 1994/02/01 00:34:35 alm Exp";
#else
static char * const rcsid =
"$FreeBSD$";
"$Id: buf.c,v 1.15 1997/12/31 12:25:33 helbig Exp $";
#endif
#endif /* not lint */
+1 -1
View File
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)bdes.c 5.5 (Berkeley) 6/27/91
* $FreeBSD$
* $Id: cbc.c,v 1.5 1995/03/19 13:28:24 joerg Exp $
*/
#ifndef lint
+549 -441
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -25,7 +25,7 @@
* SUCH DAMAGE.
*
* @(#)ed.h,v 1.5 1994/02/01 00:34:39 alm Exp
* $FreeBSD$
* $Id: ed.h,v 1.8 1994/11/03 21:46:55 davidg Exp $
*/
#include <sys/param.h> /* for MAXPATHLEN */
+1 -1
View File
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: glbl.c,v 1.3 1995/03/19 13:28:27 joerg Exp $
*/
#ifndef lint
+1 -1
View File
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: io.c,v 1.4 1995/03/19 13:28:32 joerg Exp $
*/
#ifndef lint
+1 -1
View File
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: main.c,v 1.6.2.1 1997/08/24 21:50:21 jkh Exp $
*/
#ifndef lint
+1 -1
View File
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: re.c,v 1.9 1995/03/19 13:28:36 joerg Exp $
*/
#ifndef lint
+1 -1
View File
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
* $Id: sub.c,v 1.5 1995/03/19 13:28:38 joerg Exp $
*/
#ifndef lint
+1 -1
View File
@@ -1,4 +1,4 @@
# $FreeBSD$
# $Id: Makefile,v 1.5 1994/09/24 02:55:35 davidg Exp $
SHELL= /bin/sh
ED= ${.OBJDIR}/ed
+1 -1
View File
@@ -1,4 +1,4 @@
# $FreeBSD$
# $Id$
The files in this directory with suffixes `.t', `.d', `.r' and `.err' are
used for testing ed. To run the tests, set the ED variable in the Makefile
+1 -1
View File
@@ -3,7 +3,7 @@
# and compares their output against the .r files, which contain
# the correct output
#
# $FreeBSD$
# $Id$
PATH="/bin:/usr/bin:/usr/local/bin/:."
ED=$1
Loaded 100 of 5871 files, more files were not shown because too many files have changed in this diff. Show more