Print this page
10078 smatch fixes for UCB
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/ucblib/libucb/Makefile.com
+++ new/usr/src/ucblib/libucb/Makefile.com
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.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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 22 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 +# Copyright (c) 2018, Joyent, Inc.
24 25
25 26 LIBRARY= libucb.a
26 27 VERS= .1
27 28
28 29 PORTSYSOBJS= \
29 30 flock.o \
30 31 getdtblsize.o \
31 32 gethostid.o \
32 33 gethostname.o \
33 34 getpagesize.o \
34 35 gettimeofday.o \
35 36 killpg.o \
36 37 mctl.o \
37 38 reboot.o \
38 39 setpgrp.o \
39 40 wait3.o \
40 41 wait4.o
41 42
42 43 PORTSTDIOOBJS= \
43 44 doprnt.o \
44 45 fopen.o \
45 46 fprintf.o \
46 47 printf.o \
47 48 sprintf.o \
48 49 vfprintf.o \
49 50 vprintf.o \
50 51 vsprintf.o
51 52
52 53 PORTGENOBJS= \
53 54 _psignal.o \
54 55 bcmp.o \
55 56 bcopy.o \
56 57 bzero.o \
57 58 ftime.o \
58 59 getwd.o \
59 60 index.o \
60 61 nice.o \
61 62 nlist.o \
62 63 psignal.o \
63 64 rand.o \
64 65 readdir.o \
65 66 regex.o \
66 67 rindex.o \
67 68 scandir.o \
68 69 setbuffer.o \
69 70 siglist.o \
70 71 statfs.o \
71 72 times.o
72 73
73 74 OBJECTS= $(SYSOBJS) $(PORTGENOBJS) $(PORTSYSOBJS) $(PORTSTDIOOBJS)
74 75
75 76 # include library definitions
76 77 include $(SRC)/lib/Makefile.lib
77 78
78 79 ROOTLIBDIR= $(ROOT)/usr/ucblib
79 80 ROOTLIBDIR64= $(ROOT)/usr/ucblib/$(MACH64)
80 81
81 82 MAPFILES = ../port/mapfile-vers
82 83
83 84 SRCS= $(PORTGENOBJS:%.o=../port/gen/%.c) \
84 85 $(PORTSTDIOOBJS:%.o=../port/stdio/%.c) \
85 86 $(PORTSYSOBJS:%.o=../port/sys/%.c)
86 87
87 88 LIBS = $(DYNLIB)
88 89
89 90 CFLAGS += $(CCVERBOSE)
90 91 CFLAGS64 += $(CCVERBOSE)
↓ open down ↓ |
57 lines elided |
↑ open up ↑ |
91 92 LDLIBS += -lelf -lc
92 93
93 94 CPPFLAGS = -D$(MACH) -I$(SRC)/ucbhead -I../inc \
94 95 -I../../../lib/libc/inc $(CPPFLAGS.master)
95 96
96 97 CERRWARN += -_gcc=-Wno-unused-variable
97 98 CERRWARN += -_gcc=-Wno-parentheses
98 99 CERRWARN += -_gcc=-Wno-char-subscripts
99 100 CERRWARN += -_gcc=-Wno-uninitialized
100 101
102 +# not linted
103 +SMATCH=off
104 +
101 105 ASFLAGS= -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS)
102 106
103 107 pics/%.o:= ASFLAGS += $(AS_PICFLAGS)
104 108
105 109 # libc method of building an archive, using AT&T ordering
106 110 BUILD.AR= $(RM) $@ ; \
107 111 $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
108 112
109 113 .KEEP_STATE:
110 114
111 115 all: $(LIBS)
112 116
113 117 lint: lintcheck
114 118
115 119 pics/%.o: ../port/gen/%.c
116 120 $(COMPILE.c) -o $@ $<
117 121 $(POST_PROCESS_O)
118 122 pics/%.o: ../port/stdio/%.c
119 123 $(COMPILE.c) -o $@ $<
120 124 $(POST_PROCESS_O)
121 125 pics/%.o: ../port/sys/%.c
122 126 $(COMPILE.c) -o $@ $<
123 127 $(POST_PROCESS_O)
124 128
125 129 # shared (sparc/sparcv9/i386/amd64) platform-specific rule
126 130 pics/%.o: sys/%.c
127 131 $(COMPILE.c) -o $@ $<
128 132 $(POST_PROCESS_O)
129 133
130 134 pics/%.o: ../$(MACH)/sys/%.s
131 135 $(BUILD.s)
132 136 $(POST_PROCESS_O)
133 137
134 138 #
135 139 # Include library targets
136 140 #
137 141 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
27 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX