从minix官网下载的3.3.0版本的源码。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.CA.... 428 2014-09-13 14:56 minix-3.3.0minix-3.3.0.gitignore
.CA.... 547 2014-09-13 14:56 minix-3.3.0minix-3.3.0.gitreview
.CA.... 5522 2014-09-13 14:56 minix-3.3.0minix-3.3.0incatcat.1
.CA.... 7189 2014-09-13 14:56 minix-3.3.0minix-3.3.0incatcat.c
.CA.... 132 2014-09-13 14:56 minix-3.3.0minix-3.3.0incatMakefile
.CA.... 7848 2014-09-13 14:56 minix-3.3.0minix-3.3.0inchmodchmod.1
.CA.... 6155 2014-09-13 14:56 minix-3.3.0minix-3.3.0inchmodchmod.c
.CA.... 136 2014-09-13 14:56 minix-3.3.0minix-3.3.0inchmodMakefile
.CA.... 7314 2014-09-13 14:56 minix-3.3.0minix-3.3.0incpcp.1
.CA.... 14370 2014-09-13 14:56 minix-3.3.0minix-3.3.0incpcp.c
.CA.... 2458 2014-09-13 14:56 minix-3.3.0minix-3.3.0incpextern.h
.CA.... 152 2014-09-13 14:56 minix-3.3.0minix-3.3.0incpMakefile
.CA.... 10879 2014-09-13 14:56 minix-3.3.0minix-3.3.0incputils.c
.CA.... 6434 2014-09-13 14:56 minix-3.3.0minix-3.3.0indatedate.1
.CA.... 7884 2014-09-13 14:56 minix-3.3.0minix-3.3.0indatedate.c
.CA.... 1787 2014-09-13 14:56 minix-3.3.0minix-3.3.0indateextern.h
.CA.... 255 2014-09-13 14:56 minix-3.3.0minix-3.3.0indateMakefile
.CA.... 5328 2014-09-13 14:56 minix-3.3.0minix-3.3.0indate
etdate.c
.CA.... 5951 2014-09-13 14:56 minix-3.3.0minix-3.3.0indfdf.1
.CA.... 14281 2014-09-13 14:56 minix-3.3.0minix-3.3.0indfdf.c
.CA.... 189 2014-09-13 14:56 minix-3.3.0minix-3.3.0indfMakefile
.CA.... 2472 2014-09-13 14:56 minix-3.3.0minix-3.3.0inechoecho.1
.CA.... 2592 2014-09-13 14:56 minix-3.3.0minix-3.3.0inechoecho.c
.CA.... 135 2014-09-13 14:56 minix-3.3.0minix-3.3.0inechoMakefile
.CA.... 7244 2014-09-13 14:56 minix-3.3.0minix-3.3.0ineduf.c
.CA.... 12766 2014-09-13 14:56 minix-3.3.0minix-3.3.0inedcbc.c
.CA.... 24481 2014-09-13 14:56 minix-3.3.0minix-3.3.0ineded.1
.CA.... 8456 2014-09-13 14:56 minix-3.3.0minix-3.3.0ineded.h
.CA.... 6311 2014-09-13 14:56 minix-3.3.0minix-3.3.0inedglbl.c
.CA.... 8845 2014-09-13 14:56 minix-3.3.0minix-3.3.0inedio.c
............此处省略49670个文件信息
/* $NetBSD: cat.cv 1.52 2012/11/19 19:41:31 christos Exp $ */
/*
* Copyright (c) 1989 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Kevin Fall.
*
* 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 REGENTS 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 REGENTS 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.
*/
#if HAVE_NBTOOL_CONFIG_H
#include “nbtool_config.h“
#endif
#include
#if !defined(lint)
__COPYRIGHT(
“@(#) Copyright (c) 1989 1993
The Regents of the University of California. All rights reserved.“);
#if 0
static char sccsid[] = “@(#)cat.c 8.2 (Berkeley) 4/27/95“;
#else
__RCSID(“$NetBSD: cat.cv 1.52 2012/11/19 19:41:31 christos Exp $“);
#endif
#endif /* not lint */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
static int bflag eflag fflag lflag nflag sflag tflag vflag;
static size_t bsize;
static int rval;
static const char *filename;
void cook_args(char *argv[]);
void cook_buf(FILE *);
void raw_args(char *argv[]);
void raw_cat(int);
int
main(int argc char *argv[])
{
int ch;
struct flock stdout_lock;
setprogname(argv[0]);
(void)setlocale(LC_ALL ““);
while ((ch = getopt(argc argv “B:beflnstuv“)) != -1)
switch (ch) {
case ‘B‘:
bsize = (size_t)strtol(optarg NULL 0);
break;
case ‘b‘:
bflag = nflag = 1; /* -b implies -n */
break;
case ‘e‘:
eflag = vflag = 1; /* -e implies -v */
break;
case ‘f‘:
fflag
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
.CA.... 428 2014-09-13 14:56 minix-3.3.0minix-3.3.0.gitignore
.CA.... 547 2014-09-13 14:56 minix-3.3.0minix-3.3.0.gitreview
.CA.... 5522 2014-09-13 14:56 minix-3.3.0minix-3.3.0incatcat.1
.CA.... 7189 2014-09-13 14:56 minix-3.3.0minix-3.3.0incatcat.c
.CA.... 132 2014-09-13 14:56 minix-3.3.0minix-3.3.0incatMakefile
.CA.... 7848 2014-09-13 14:56 minix-3.3.0minix-3.3.0inchmodchmod.1
.CA.... 6155 2014-09-13 14:56 minix-3.3.0minix-3.3.0inchmodchmod.c
.CA.... 136 2014-09-13 14:56 minix-3.3.0minix-3.3.0inchmodMakefile
.CA.... 7314 2014-09-13 14:56 minix-3.3.0minix-3.3.0incpcp.1
.CA.... 14370 2014-09-13 14:56 minix-3.3.0minix-3.3.0incpcp.c
.CA.... 2458 2014-09-13 14:56 minix-3.3.0minix-3.3.0incpextern.h
.CA.... 152 2014-09-13 14:56 minix-3.3.0minix-3.3.0incpMakefile
.CA.... 10879 2014-09-13 14:56 minix-3.3.0minix-3.3.0incputils.c
.CA.... 6434 2014-09-13 14:56 minix-3.3.0minix-3.3.0indatedate.1
.CA.... 7884 2014-09-13 14:56 minix-3.3.0minix-3.3.0indatedate.c
.CA.... 1787 2014-09-13 14:56 minix-3.3.0minix-3.3.0indateextern.h
.CA.... 255 2014-09-13 14:56 minix-3.3.0minix-3.3.0indateMakefile
.CA.... 5328 2014-09-13 14:56 minix-3.3.0minix-3.3.0indate
etdate.c
.CA.... 5951 2014-09-13 14:56 minix-3.3.0minix-3.3.0indfdf.1
.CA.... 14281 2014-09-13 14:56 minix-3.3.0minix-3.3.0indfdf.c
.CA.... 189 2014-09-13 14:56 minix-3.3.0minix-3.3.0indfMakefile
.CA.... 2472 2014-09-13 14:56 minix-3.3.0minix-3.3.0inechoecho.1
.CA.... 2592 2014-09-13 14:56 minix-3.3.0minix-3.3.0inechoecho.c
.CA.... 135 2014-09-13 14:56 minix-3.3.0minix-3.3.0inechoMakefile
.CA.... 7244 2014-09-13 14:56 minix-3.3.0minix-3.3.0ineduf.c
.CA.... 12766 2014-09-13 14:56 minix-3.3.0minix-3.3.0inedcbc.c
.CA.... 24481 2014-09-13 14:56 minix-3.3.0minix-3.3.0ineded.1
.CA.... 8456 2014-09-13 14:56 minix-3.3.0minix-3.3.0ineded.h
.CA.... 6311 2014-09-13 14:56 minix-3.3.0minix-3.3.0inedglbl.c
.CA.... 8845 2014-09-13 14:56 minix-3.3.0minix-3.3.0inedio.c
............此处省略49670个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)