资源简介
从minix官网下载的3.3.0版本的源码。
代码片段和文件信息
/* $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.0\minix-3.3.0\.gitignore
.CA.... 547 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\.gitreview
.CA.... 5522 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\cat\cat.1
.CA.... 7189 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\cat\cat.c
.CA.... 132 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\cat\Makefile
.CA.... 7848 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\chmod\chmod.1
.CA.... 6155 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\chmod\chmod.c
.CA.... 136 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\chmod\Makefile
.CA.... 7314 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\cp\cp.1
.CA.... 14370 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\cp\cp.c
.CA.... 2458 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\cp\extern.h
.CA.... 152 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\cp\Makefile
.CA.... 10879 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\cp\utils.c
.CA.... 6434 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\date\date.1
.CA.... 7884 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\date\date.c
.CA.... 1787 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\date\extern.h
.CA.... 255 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\date\Makefile
.CA.... 5328 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\date\netdate.c
.CA.... 5951 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\df\df.1
.CA.... 14281 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\df\df.c
.CA.... 189 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\df\Makefile
.CA.... 2472 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\echo\echo.1
.CA.... 2592 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\echo\echo.c
.CA.... 135 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\echo\Makefile
.CA.... 7244 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\ed\buf.c
.CA.... 12766 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\ed\cbc.c
.CA.... 24481 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\ed\ed.1
.CA.... 8456 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\ed\ed.h
.CA.... 6311 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\ed\glbl.c
.CA.... 8845 2014-09-13 14:56 minix-3.3.0\minix-3.3.0\bin\ed\io.c
............此处省略49670个文件信息
- 上一篇:IOI国家集训队论文集1999-2019
- 下一篇:统计学习基础中英文版都有
相关资源
- 易语言取微云数据V1源码易语言取微云
- 易语言Excel多表对应处理源码
- 易语言取word打开、另存为对话框窗口
- 易语言EXCEL另存为CSV文件源码
- delphi百度地图源码
- 易语言EMS快递查询源码
- 易语言快递查询源码
- 易语言查询79种快递源码
- 易语言搜搜mp3源码
- 易语言迅雷补丁源码
- 易语言高仿迅雷5安装包源码
- bootstrap demo 源码大全
- springboot整合RabbitMQ实现延时队列的两
- 关于Spring MVC项目maven中通过fileupload上
- 新一代Lora芯片sx126x的驱动源码
- 易语言版迅雷视频转换器源码
- 今日头条源码.zip
- CtrlAltQ全屏截图源码
- 易语言全屏截图源码
- 百度图片识别源码.rar
- 易语言穿越火线辅助程序源码
- WINDOWS内核安全编程 寒江独钓 光盘源
- 寒江独钓-Windows内核安全编程(完整版
- DevExpress 15.1.6 源码 全 百度云
- 很久以前的MUD游戏源码和mudos
- 易语言屏幕锁屏工具源码
- 易语言Beep应用例程源码
- 易语言API的用法之beep源码
- 易语言Beep卡农源码
- 易语言DLL函数查看器源码
评论
共有 条评论