Print this page
5651 Missing header file sys/fs/s5ino.h referenced in /usr/src/cmd/acct/diskusg.c
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/acct/Makefile
+++ new/usr/src/cmd/acct/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 +# Copyright 2015 Gary Mills
22 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 24 # Use is subject to license terms.
24 25 #
25 26
26 27 PROG= acctcms acctcom acctcon acctcon1 acctcon2 \
27 28 acctdisk acctdusg acctmerg accton acctprc acctprc1 \
28 29 acctprc2 acctwtmp closewtmp fwtmp \
29 30 wtmpfix utmp2wtmp
30 31 SHFILE1= acct chargefee ckpacct dodisk lastlogin\
31 32 monacct nulladm prctmp prdaily prtacct \
32 33 remove runacct shutacct startup turnacct
33 34 SHFILE2= ptecms.awk ptelus.awk
34 35 SUBDIRS= lib
35 36 ALL= $(PROG) $(SHFILE1) $(SHFILE2) holidays
36 37
37 38 SRCS= $(PROG:%=%.c)
38 39 SHFILE1SRCS= $(SHFILE1:%=%.sh)
39 40
40 -TXTS= diskusg.c
41 -
42 41 BINPROG= acctcom
43 42 LIBPROG= acctcms acctcon acctcon1 acctcon2 acctdisk \
44 43 acctdusg acctmerg accton acctprc acctprc1 acctprc2 \
45 44 acctwtmp closewtmp fwtmp utmp2wtmp \
46 45 wtmpfix chargefee ckpacct dodisk monacct \
47 46 lastlogin nulladm prctmp prdaily prtacct \
48 47 remove runacct shutacct startup turnacct \
49 48 ptecms.awk ptelus.awk
50 49 ETCPROG= holidays
51 50 INITPROG= acct
52 51
53 52 include ../Makefile.cmd
54 53
55 54 all:= TARGET= all
56 55 install:= TARGET= install
57 56 clean:= TARGET= clean
58 57 clobber:= TARGET= clobber
59 58 lint:= TARGET= lint
60 59
61 60 acctcom := LDLIBS += lib/a.a
62 61 acctcms acctcon acctcon1 acctmerg acctprc1 acctprc := LDLIBS += lib/a.a
63 62
64 63 acctdusg:= CPPFLAGS += -D_FILE_OFFSET_BITS=64
65 64 acctdusg:= LDLIBS += -lcmdutils
66 65
67 66 LIBACCTD= $(ROOTLIB)/acct
68 67 ETCACCTD= $(ROOTETC)/acct
69 68 ETCINITD= $(ROOTETC)/init.d
70 69 VARADMD= $(ROOT)/var/adm
71 70 ACCTDIR= $(VARADMD)/acct
72 71 ACCTSUBDIRS= $(ACCTDIR)/nite $(ACCTDIR)/fiscal $(ACCTDIR)/sum
73 72 WKDIRS= $(ACCTDIR) $(ACCTSUBDIRS)
74 73
75 74 # DIRS is directories to create. $(ETCINITD) [aka: /etc/init.d] is created
76 75 # in /usr/src/Targetdirs and hence should be assumed to exist.
77 76 DIRS= $(LIBACCTD) $(ETCACCTD) $(WKDIRS)
78 77
79 78 USRBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
80 79 LIBACCTPROG= $(LIBPROG:%=$(LIBACCTD)/%)
81 80 ETCACCTPROG= $(ETCPROG:%=$(ETCACCTD)/%)
82 81 ETCINITPROG= $(INITPROG:%=$(ETCINITD)/%)
83 82
84 83 $(LIBACCTD) := DIRMODE= 755
85 84 $(ETCACCTD) := DIRMODE= 755
86 85 $(WKDIRS) := DIRMODE= 775
87 86 $(LIBACCTD)/accton := FILEMODE= 04755
88 87 $(ETCINITPROG) := FILEMODE= 0744
89 88 $(ETCACCTPROG) := FILEMODE= 0644
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
90 89
91 90 CERRWARN += -_gcc=-Wno-implicit-function-declaration
92 91 CERRWARN += -_gcc=-Wno-parentheses
93 92 CERRWARN += -_gcc=-Wno-unused-variable
94 93 CERRWARN += -_gcc=-Wno-address
95 94
96 95 .KEEP_STATE:
97 96
98 97 .PARALLEL: $(ALL)
99 98
100 -all: $(SUBDIRS) .WAIT $(ALL) $(TXTS)
99 +all: $(SUBDIRS) .WAIT $(ALL)
101 100
102 101 install: all .WAIT $(DIRS) .WAIT $(USRBINPROG) $(LIBACCTPROG) $(ETCACCTPROG) \
103 102 $(ETCINITPROG)
104 103
105 104 THIS_YEAR:sh= date +%Y
106 105
107 106 holidays: FRC
108 107 @if grep $(THIS_YEAR) holidays > /dev/null 2>&1;\
109 108 then \
110 109 :;\
111 110 else \
112 111 $(ECHO) "building holidays";\
113 112 ( \
114 113 $(ECHO) "* @(#)holidays\tJanuary 1, `date +%Y`";\
115 114 $(ECHO) "*";\
116 115 $(ECHO) "* Prime/Nonprime Table for UNIX Accounting System";\
117 116 $(ECHO) "*";\
118 117 $(ECHO) "* Curr\tPrime\tNon-Prime";\
119 118 $(ECHO) "* Year\tStart\tStart";\
120 119 $(ECHO) "*";\
121 120 $(ECHO) " `date +%Y`\t0800\t1800";\
122 121 $(ECHO) "*";\
123 122 $(ECHO) "* only the first column (month/day) is significiant.";\
124 123 $(ECHO) "*";\
125 124 $(ECHO) "* month/day\tCompany";\
126 125 $(ECHO) "* \t\tHoliday";\
127 126 $(ECHO) "*";\
128 127 $(ECHO) "1/1\t\tNew Years Day";\
129 128 $(ECHO) "7/4\t\tIndep. Day";\
130 129 $(ECHO) "12/25\t\tChristmas" ) > holidays;\
131 130 fi
132 131
133 132 $(DIRS):
134 133 $(INS.dir)
135 134
136 135 $(LIBACCTD)/% : %
137 136 $(INS.file)
138 137
139 138 $(ETCACCTD)/% : %
140 139 $(INS.file)
141 140
142 141 $(ETCINITD)/% : %
143 142 $(INS.file)
144 143
145 144 $(SUBDIRS): FRC
146 145 @cd $@; pwd; $(MAKE) $(MFLAGS) $(TARGET)
147 146
148 147 FRC:
149 148
150 149 clean: $(SUBDIRS)
151 150
152 151 clobber: $(SUBDIRS)
153 152 $(RM) $(PROG) $(SHFILE1) holidays
154 153
155 154 lint: $(SUBDIRS)
156 155 $(LINT.c) $(SRCS)
↓ open down ↓ |
46 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX