• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

*NIX用コマンドライン手順書自動作成ツール開発


コミットメタ情報

リビジョン823986530b414eb6ffa9efa2caa0345ed09edd0d (tree)
日時2016-09-01 21:07:09
作者Koine Yuusuke(koinec) <koinec@user...>
コミッターKoine Yuusuke(koinec)

ログメッセージ

* AddFiles: cmdline.[ch]

変更サマリ

差分

--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,48 @@
1-
2-
1+#PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
2+#
3+# procedure - Command-Line Procedure Manual generater for FreeBSD/Linux
4+#
5+# Copyrihgt (c) 2016 Koine Yuusuke (koinec). / All Rights Reserved.
6+#
7+# Redistribution and use in source and binary forms, with or without
8+# modification, are permitted provided that the following conditions
9+# are met:
10+# 1. Redistributions of source code must retain the above copyright
11+# notice, this list of conditions and the following disclaimer.
12+# 2. Redistributions in binary form must reproduce the above copyright
13+# notice, this list of conditions and the following disclaimer in the
14+# documentation and/or other materials provided with the distribution.
15+# 4. Neither the name of the University nor the names of its contributors
16+# may be used to endorse or promote products derived from this software
17+# without specific prior written permission.
18+#
19+# THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND
20+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29+# SUCH DAMAGE.
30+#
31+# Based on FreeBSD "script" command by
32+# David E. O'Brien / The Regents of the University of California.(Thanks!!)
33+#
34+#PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
335
436 MAKE = make
537 TARGET = procedure
638 OBJS = procedure.o \
739 master.o \
40+ cmdline.o \
841 depend_freebsd.o
942 HEADERS = procedure.h \
10- master.h
43+ master.h \
44+ cmdline.h \
45+ depend_freebsd.h
1146 FLAGS_LIB += -lutil -lkvm
1247 FLAGS_DEBUG =
1348 CFLAGS += -Wall
@@ -16,6 +51,8 @@ CFLAGS += -Wall
1651 all: $(TARGET)
1752 build: $(TARGET)
1853
54+cmdline.o: cmdline.c $(HEADERS)
55+ $(CC) -c -o cmdline.o $(FLAGS_DEBUG) $(CFLAGS) cmdline.c
1956 master.o: master.c $(HEADERS)
2057 $(CC) -c -o master.o $(FLAGS_DEBUG) $(CFLAGS) master.c
2158 procedure.o: procedure.c $(HEADERS)
--- /dev/null
+++ b/cmdline.c
@@ -0,0 +1,79 @@
1+/*PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
2+ *
3+ * procedure - Command-Line Procedure Manual generater for FreeBSD/Linux
4+ *
5+ * Copyrihgt (c) 2016 Koine Yuusuke (koinec). / All Rights Reserved.
6+ *
7+ * Redistribution and use in source and binary forms, with or without
8+ * modification, are permitted provided that the following conditions
9+ * are met:
10+ * 1. Redistributions of source code must retain the above copyright
11+ * notice, this list of conditions and the following disclaimer.
12+ * 2. Redistributions in binary form must reproduce the above copyright
13+ * notice, this list of conditions and the following disclaimer in the
14+ * documentation and/or other materials provided with the distribution.
15+ * 4. Neither the name of the University nor the names of its contributors
16+ * may be used to endorse or promote products derived from this software
17+ * without specific prior written permission.
18+ *
19+ * THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND
20+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29+ * SUCH DAMAGE.
30+ *
31+ * Based on FreeBSD "script" command by
32+ * David E. O'Brien / The Regents of the University of California.(Thanks!!)
33+ *
34+PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE*/
35+
36+#define PROCEDURE_SRC_CMDLINE
37+#include "procedure.h"
38+
39+static char *gpstr_cmdline = NULL;
40+
41+/*===========================================================================*/
42+PROCEDURE_CMDLINE_EXTERN
43+int
44+ CmdLine_Init(
45+ int i_maxlen )
46+{
47+ if( NULL != gpstr_cmdline )
48+ { return 0x00; }
49+
50+ gpstr_cmdline = (char *)malloc( i_maxlen + 8 );
51+ if( NULL == gpstr_cmdline )
52+ { return -0x01; }
53+
54+ memset( gpstr_cmdline, 0x00, (i_maxlen + 8) );
55+
56+ return 0x00;
57+}
58+
59+
60+/*===========================================================================*/
61+PROCEDURE_CMDLINE_EXTERN
62+int
63+ CmdLine_Term( void )
64+{
65+ if( NULL != gpstr_cmdline ) {
66+ free( gpstr_cmdline );
67+ gpstr_cmdline = NULL;
68+ }
69+
70+ return 0x00;
71+}
72+
73+
74+/*===========================================================================*/
75+
76+
77+
78+/* EOF ======================================================================*/
79+
--- /dev/null
+++ b/cmdline.h
@@ -0,0 +1,56 @@
1+/*PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
2+ *
3+ * procedure - Command-Line Procedure Manual generater for FreeBSD/Linux
4+ *
5+ * Copyrihgt (c) 2016 Koine Yuusuke (koinec). / All Rights Reserved.
6+ *
7+ * Redistribution and use in source and binary forms, with or without
8+ * modification, are permitted provided that the following conditions
9+ * are met:
10+ * 1. Redistributions of source code must retain the above copyright
11+ * notice, this list of conditions and the following disclaimer.
12+ * 2. Redistributions in binary form must reproduce the above copyright
13+ * notice, this list of conditions and the following disclaimer in the
14+ * documentation and/or other materials provided with the distribution.
15+ * 4. Neither the name of the University nor the names of its contributors
16+ * may be used to endorse or promote products derived from this software
17+ * without specific prior written permission.
18+ *
19+ * THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND
20+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29+ * SUCH DAMAGE.
30+ *
31+ * Based on FreeBSD "script" command by
32+ * David E. O'Brien / The Regents of the University of California.(Thanks!!)
33+ *
34+PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE*/
35+
36+#ifndef PROCEDURE_HEADER_CMDLINE
37+#define PROCEDURE_HEADER_CMDLINE
38+
39+#include "procedure.h"
40+
41+#ifdef PROCEDURE_SRC_CMDLINE
42+ #define PROCEDURE_CMDLINE_EXTERN
43+#else
44+ #define PROCEDURE_CMDLINE_EXTERN extern
45+#endif
46+
47+PROCEDURE_CMDLINE_EXTERN
48+ int CmdLine_Init( int i_maxlen );
49+PROCEDURE_CMDLINE_EXTERN
50+ int CmdLine_Term( void );
51+
52+
53+#endif
54+
55+/* EOF ======================================================================*/
56+
--- a/depend_freebsd.c
+++ b/depend_freebsd.c
@@ -1,3 +1,37 @@
1+/*PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
2+ *
3+ * procedure - Command-Line Procedure Manual generater for FreeBSD/Linux
4+ *
5+ * Copyrihgt (c) 2016 Koine Yuusuke (koinec). / All Rights Reserved.
6+ *
7+ * Redistribution and use in source and binary forms, with or without
8+ * modification, are permitted provided that the following conditions
9+ * are met:
10+ * 1. Redistributions of source code must retain the above copyright
11+ * notice, this list of conditions and the following disclaimer.
12+ * 2. Redistributions in binary form must reproduce the above copyright
13+ * notice, this list of conditions and the following disclaimer in the
14+ * documentation and/or other materials provided with the distribution.
15+ * 4. Neither the name of the University nor the names of its contributors
16+ * may be used to endorse or promote products derived from this software
17+ * without specific prior written permission.
18+ *
19+ * THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND
20+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29+ * SUCH DAMAGE.
30+ *
31+ * Based on FreeBSD "script" command by
32+ * David E. O'Brien / The Regents of the University of California.(Thanks!!)
33+ *
34+PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE*/
135
236 #define PROCEDURE_SRC_DEPEND_FREEBSD
337 #include "procedure.h"
@@ -102,7 +136,6 @@ int
102136 {
103137 int i_mib[2];
104138 int i_argsize;
105- int i_err;
106139 size_t sz_len;
107140
108141 i_mib[0] = CTL_KERN;
@@ -115,4 +148,5 @@ int
115148 return i_argsize;
116149 }
117150
151+/* EOF ======================================================================*/
118152
--- a/depend_freebsd.h
+++ b/depend_freebsd.h
@@ -1,3 +1,37 @@
1+/*PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
2+ *
3+ * procedure - Command-Line Procedure Manual generater for FreeBSD/Linux
4+ *
5+ * Copyrihgt (c) 2016 Koine Yuusuke (koinec). / All Rights Reserved.
6+ *
7+ * Redistribution and use in source and binary forms, with or without
8+ * modification, are permitted provided that the following conditions
9+ * are met:
10+ * 1. Redistributions of source code must retain the above copyright
11+ * notice, this list of conditions and the following disclaimer.
12+ * 2. Redistributions in binary form must reproduce the above copyright
13+ * notice, this list of conditions and the following disclaimer in the
14+ * documentation and/or other materials provided with the distribution.
15+ * 4. Neither the name of the University nor the names of its contributors
16+ * may be used to endorse or promote products derived from this software
17+ * without specific prior written permission.
18+ *
19+ * THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND
20+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29+ * SUCH DAMAGE.
30+ *
31+ * Based on FreeBSD "script" command by
32+ * David E. O'Brien / The Regents of the University of California.(Thanks!!)
33+ *
34+PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE*/
135
236 #ifndef PROCEDURE_HEADER_DEPEND_FREEBSD
337 #define PROCEDURE_HEADER_DEPEND_FREEBSD
@@ -21,3 +55,5 @@ PROCEDURE_DEPEND_FREEBSD_EXTERN
2155
2256 #endif
2357
58+/* EOF ======================================================================*/
59+
--- a/master.c
+++ b/master.c
@@ -1,9 +1,46 @@
1+/*PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
2+ *
3+ * procedure - Command-Line Procedure Manual generater for FreeBSD/Linux
4+ *
5+ * Copyrihgt (c) 2016 Koine Yuusuke (koinec). / All Rights Reserved.
6+ *
7+ * Redistribution and use in source and binary forms, with or without
8+ * modification, are permitted provided that the following conditions
9+ * are met:
10+ * 1. Redistributions of source code must retain the above copyright
11+ * notice, this list of conditions and the following disclaimer.
12+ * 2. Redistributions in binary form must reproduce the above copyright
13+ * notice, this list of conditions and the following disclaimer in the
14+ * documentation and/or other materials provided with the distribution.
15+ * 4. Neither the name of the University nor the names of its contributors
16+ * may be used to endorse or promote products derived from this software
17+ * without specific prior written permission.
18+ *
19+ * THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND
20+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29+ * SUCH DAMAGE.
30+ *
31+ * Based on FreeBSD "script" command by
32+ * David E. O'Brien / The Regents of the University of California.(Thanks!!)
33+ *
34+PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE*/
135
236 #define PROCEDURE_SRC_MASTER
337 #include "procedure.h"
438
39+static int gi_maxarg;
40+
541 static void ExitProcess(int) __dead2;
642
43+
744 /*===========================================================================*/
845 static int
946 InitMasterProcess( void )
@@ -13,7 +50,23 @@ static int
1350 close( gi_fd_slave );
1451
1552 i_err = InitDependOS();
53+ if( 0x00 != i_err ) {
54+ goto goto_InitMasterProcess_post;
55+ }
56+
57+ gi_maxarg = GetMaxArgSize();
58+ if( 0 == gi_maxarg ) {
59+ i_err = -0x10;
60+ goto goto_InitMasterProcess_post;
61+ }
62+
63+ i_err = CmdLine_Init( gi_maxarg );
64+ if( 0x00 != i_err ) {
65+ i_err += -0x20;
66+ goto goto_InitMasterProcess_post;
67+ }
1668
69+goto_InitMasterProcess_post:
1770 return i_err;
1871 }
1972
@@ -23,8 +76,6 @@ static void
2376 ExitProcess(
2477 int i_exit )
2578 {
26- TermDependOS();
27-
2879 if( gi_ttyflg )
2980 { (void)tcsetattr(STDIN_FILENO, TCSAFLUSH, &gt_term ); }
3081
@@ -33,6 +84,9 @@ static void
3384 (void)fclose( fscript );
3485 (void)close( gi_fd_master );
3586
87+ (void)CmdLine_Term();
88+ (void)TermDependOS();
89+
3690 exit( i_exit );
3791 }
3892
@@ -41,7 +95,6 @@ PROCEDURE_MASTER_EXTERN
4195 int
4296 MasterProcess_Main( void )
4397 {
44-// int i_readsz;
4598 int i_rdsz_inbuf;
4699 int i_rdsz_outbuf;
47100 int i_fds;
@@ -53,7 +106,6 @@ int
53106 struct termios t_stt;
54107 struct timeval t_tmval;
55108 struct timeval *pt_tmval;
56- char *pstr_out;
57109 char *pstr_in;
58110 char str_outbuf[BUFSIZ];
59111 char str_inbuf[BUFSIZ];
@@ -148,4 +200,5 @@ int
148200
149201
150202
203+/* EOF ======================================================================*/
151204
--- a/master.h
+++ b/master.h
@@ -1,3 +1,37 @@
1+/*PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
2+ *
3+ * procedure - Command-Line Procedure Manual generater for FreeBSD/Linux
4+ *
5+ * Copyrihgt (c) 2016 Koine Yuusuke (koinec). / All Rights Reserved.
6+ *
7+ * Redistribution and use in source and binary forms, with or without
8+ * modification, are permitted provided that the following conditions
9+ * are met:
10+ * 1. Redistributions of source code must retain the above copyright
11+ * notice, this list of conditions and the following disclaimer.
12+ * 2. Redistributions in binary form must reproduce the above copyright
13+ * notice, this list of conditions and the following disclaimer in the
14+ * documentation and/or other materials provided with the distribution.
15+ * 4. Neither the name of the University nor the names of its contributors
16+ * may be used to endorse or promote products derived from this software
17+ * without specific prior written permission.
18+ *
19+ * THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND
20+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29+ * SUCH DAMAGE.
30+ *
31+ * Based on FreeBSD "script" command by
32+ * David E. O'Brien / The Regents of the University of California.(Thanks!!)
33+ *
34+PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE*/
135
236 #ifndef PROCEDURE_HEADER_MASTER
337 #define PROCEDURE_HEADER_MASTER
@@ -22,3 +56,5 @@ PROCEDURE_MASTER_EXTERN int MasterProcess_Main( void );
2256
2357 #endif
2458
59+/* EOF ======================================================================*/
60+
--- a/procedure.c
+++ b/procedure.c
@@ -1,4 +1,7 @@
1-/*
1+/*PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
2+ *
3+ * procedure - Command-Line Procedure Manual generater for FreeBSD/Linux
4+ *
25 * Copyrihgt (c) 2016 Koine Yuusuke (koinec). / All Rights Reserved.
36 *
47 * Redistribution and use in source and binary forms, with or without
@@ -13,7 +16,7 @@
1316 * may be used to endorse or promote products derived from this software
1417 * without specific prior written permission.
1518 *
16- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19+ * THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND
1720 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1821 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1922 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
@@ -26,8 +29,9 @@
2629 * SUCH DAMAGE.
2730 *
2831 * Based on FreeBSD "script" command by
29- * David E. O'Brien / The Regents of the University of California.
30- */
32+ * David E. O'Brien / The Regents of the University of California.(Thanks!!)
33+ *
34+PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE*/
3135
3236 #define PROCEDURE_SRC_MAIN
3337 #include "procedure.h"
@@ -121,3 +125,5 @@ int
121125 // Don't reach this line!! ---
122126 }
123127
128+/* EOF ======================================================================*/
129+
--- a/procedure.h
+++ b/procedure.h
@@ -1,3 +1,37 @@
1+/*PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE
2+ *
3+ * procedure - Command-Line Procedure Manual generater for FreeBSD/Linux
4+ *
5+ * Copyrihgt (c) 2016 Koine Yuusuke (koinec). / All Rights Reserved.
6+ *
7+ * Redistribution and use in source and binary forms, with or without
8+ * modification, are permitted provided that the following conditions
9+ * are met:
10+ * 1. Redistributions of source code must retain the above copyright
11+ * notice, this list of conditions and the following disclaimer.
12+ * 2. Redistributions in binary form must reproduce the above copyright
13+ * notice, this list of conditions and the following disclaimer in the
14+ * documentation and/or other materials provided with the distribution.
15+ * 4. Neither the name of the University nor the names of its contributors
16+ * may be used to endorse or promote products derived from this software
17+ * without specific prior written permission.
18+ *
19+ * THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND
20+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29+ * SUCH DAMAGE.
30+ *
31+ * Based on FreeBSD "script" command by
32+ * David E. O'Brien / The Regents of the University of California.(Thanks!!)
33+ *
34+PrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcEdUrEpRoCeDuRePrOcE*/
135
236 #ifndef PROCEDURE_HEADER_SUPER
337 #define PROCEDURE_HEADER_SUPER
@@ -19,7 +53,10 @@
1953 #include <unistd.h>
2054
2155 #include "master.h"
56+#include "cmdline.h"
2257 #include "depend_freebsd.h"
2358
2459 #endif
2560
61+/* EOF ======================================================================*/
62+