Print this page
5386 want openpty(), forkpty(), etc.
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/head/Makefile
+++ new/usr/src/head/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 2011 Nexenta Systems, Inc. All rights reserved.
22 +# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
23 23 #
24 24 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 27 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
28 28 #
29 29 # head/Makefile
30 30 #
31 31 # include global definitions
32 32 include ../Makefile.master
33 33
34 34 sparc_HDRS=
35 35 i386_HDRS= stack_unwind.h
36 36
37 37 # Headers are listed one per line so that TeamWare can auto-merge most changes
38 38
39 39 KRB5HDRS= mit_copyright.h mit-sipb-copyright.h
40 40
41 41 ATTRDB_HDRS= secdb.h auth_attr.h exec_attr.h prof_attr.h user_attr.h \
42 42 auth_list.h
43 43
44 44 HDRS= $($(MACH)_HDRS) $(ATTRDB_HDRS) \
45 45 aio.h \
46 46 alloca.h \
47 47 apptrace.h \
48 48 apptrace_impl.h \
49 49 ar.h \
50 50 archives.h \
51 51 assert.h \
52 52 atomic.h \
53 53 attr.h \
54 54 complex.h \
55 55 config_admin.h \
56 56 cpio.h \
57 57 crypt.h \
58 58 ctype.h \
59 59 deflt.h \
60 60 devid.h \
61 61 devmgmt.h \
62 62 devpoll.h \
63 63 dial.h \
64 64 dirent.h \
65 65 dlfcn.h \
66 66 door.h \
67 67 elf.h \
68 68 err.h \
69 69 errno.h \
70 70 euc.h \
71 71 exacct.h \
72 72 exacct_impl.h \
73 73 execinfo.h \
74 74 fatal.h \
75 75 fcntl.h \
76 76 fenv.h \
77 77 float.h \
78 78 floatingpoint.h \
79 79 fmtmsg.h \
80 80 fnmatch.h \
81 81 ftw.h \
82 82 gelf.h \
83 83 getopt.h \
84 84 getwidth.h \
85 85 glob.h \
86 86 grp.h \
87 87 iconv.h \
88 88 ieeefp.h \
89 89 ifaddrs.h \
90 90 inttypes.h \
91 91 iso646.h \
92 92 klpd.h \
93 93 langinfo.h \
94 94 lastlog.h \
95 95 lber.h \
96 96 ldap.h \
97 97 libelf.h \
98 98 libgen.h \
99 99 libintl.h \
100 100 libw.h \
101 101 libzonecfg.h \
102 102 limits.h \
103 103 linenum.h \
104 104 link.h \
105 105 listen.h \
106 106 locale.h \
107 107 macros.h \
108 108 malloc.h \
109 109 math.h \
110 110 mdmn_changelog.h \
111 111 memory.h \
112 112 meta.h \
113 113 meta_runtime.h \
114 114 metadyn.h \
115 115 mon.h \
116 116 monetary.h \
117 117 mp.h \
118 118 mqueue.h \
119 119 nan.h \
120 120 ndbm.h \
121 121 ndpd.h \
122 122 netconfig.h \
123 123 netdb.h \
124 124 netdir.h \
125 125 nl_types.h \
126 126 nlist.h \
127 127 note.h \
128 128 nsctl.h \
129 129 nsswitch.h \
130 130 nss_common.h \
131 131 nss_dbdefs.h \
132 132 nss_netdir.h \
133 133 paths.h \
134 134 pcsample.h \
135 135 pfmt.h \
136 136 pkgdev.h \
137 137 pkginfo.h \
138 138 pkglocs.h \
139 139 pkgstrct.h \
↓ open down ↓ |
107 lines elided |
↑ open up ↑ |
140 140 pkgtrans.h \
141 141 poll.h \
142 142 port.h \
143 143 priv.h \
144 144 priv_utils.h \
145 145 proc_service.h \
146 146 procfs.h \
147 147 prof.h \
148 148 project.h \
149 149 pthread.h \
150 + pty.h \
150 151 pw.h \
151 152 pwd.h \
152 153 rctl.h \
153 154 re_comp.h \
154 155 regex.h \
155 156 regexp.h \
156 157 resolv.h \
157 158 rje.h \
158 159 rtld_db.h \
159 160 sac.h \
160 161 sched.h \
161 162 schedctl.h \
162 163 sdssc.h \
163 164 search.h \
164 165 semaphore.h \
165 166 setjmp.h \
166 167 sgtty.h \
167 168 shadow.h \
168 169 siginfo.h \
169 170 signal.h \
170 171 spawn.h \
171 172 stdarg.h \
172 173 stdbool.h \
173 174 stddef.h \
174 175 stdint.h \
175 176 stdio.h \
176 177 stdio_ext.h \
177 178 stdio_tag.h \
178 179 stdio_impl.h \
179 180 stdlib.h \
180 181 storclass.h \
181 182 string.h \
182 183 strings.h \
183 184 stropts.h \
184 185 synch.h \
185 186 sysexits.h \
186 187 syslog.h \
187 188 syms.h \
188 189 tar.h \
189 190 termio.h \
190 191 termios.h \
191 192 tgmath.h \
192 193 thread.h \
193 194 thread_db.h \
194 195 time.h \
195 196 tiuser.h \
196 197 tzfile.h \
197 198 ucontext.h \
198 199 ucred.h \
199 200 ulimit.h \
200 201 unistd.h \
201 202 userdefs.h \
202 203 ustat.h \
203 204 utime.h \
204 205 utmp.h \
205 206 utmpx.h \
206 207 valtools.h \
207 208 values.h \
208 209 varargs.h \
209 210 wait.h \
210 211 wchar.h \
211 212 wchar_impl.h \
212 213 wctype.h \
213 214 widec.h \
214 215 wordexp.h \
215 216 xlocale.h \
216 217 xti.h \
217 218 xti_inet.h \
218 219 zone.h
219 220
220 221 ISOHDRS = \
221 222 ctype_iso.h \
222 223 limits_iso.h \
223 224 locale_iso.h \
224 225 math_c99.h \
225 226 math_iso.h \
226 227 setjmp_iso.h \
227 228 signal_iso.h \
228 229 stdarg_c99.h \
229 230 stdarg_iso.h \
230 231 stddef_iso.h \
231 232 stdio_c99.h \
232 233 stdio_iso.h \
233 234 stdlib_c99.h \
234 235 stdlib_iso.h \
235 236 string_iso.h \
236 237 time_iso.h \
237 238 wchar_c99.h \
238 239 wchar_iso.h \
239 240 wctype_iso.h
240 241
241 242 ARPAHDRS = \
242 243 ftp.h \
243 244 inet.h \
244 245 nameser.h \
245 246 telnet.h \
246 247 tftp.h \
247 248 nameser_compat.h
248 249
249 250 AUDIOHDRS = \
250 251 au.h
251 252
252 253 UUIDHDRS = \
253 254 uuid.h
254 255
255 256 # rpcsvc headers which are just headers (not derived from a .x file)
256 257 RPCSVC_SRC_HDRS = \
257 258 bootparam.h \
258 259 daemon_utils.h \
259 260 dbm.h \
260 261 nis_db.h \
261 262 nislib.h \
262 263 svc_dg_priv.h \
263 264 yp_prot.h \
264 265 ypclnt.h \
265 266 yppasswd.h \
266 267 ypupd.h \
267 268 rpc_sztypes.h
268 269
269 270 # rpcsvc headers which are generated from .x files
270 271 RPCSVC_GEN_HDRS = \
271 272 bootparam_prot.h \
272 273 mount.h \
273 274 nfs_prot.h \
274 275 nfs4_prot.h \
275 276 nis.h \
276 277 rex.h \
277 278 rquota.h \
278 279 rstat.h \
279 280 rusers.h \
280 281 rwall.h \
281 282 spray.h \
282 283 ufs_prot.h \
283 284 nfs_acl.h
284 285
285 286 LVMRPCHDRS = \
286 287 mhdx.h mdiox.h meta_basic.h metad.h metamed.h metamhd.h metacl.h
287 288
288 289 SYMHDRASSERT = $(ROOT)/usr/include/iso/assert_iso.h
289 290 SYMHDRERRNO = $(ROOT)/usr/include/iso/errno_iso.h
290 291 SYMHDRFLOAT = $(ROOT)/usr/include/iso/float_iso.h
291 292 SYMHDRISO646 = $(ROOT)/usr/include/iso/iso646_iso.h
292 293
293 294 RPCGENFLAGS = -C -h
294 295 rpcsvc/rwall.h := RPCGENFLAGS += -M
295 296 meta_basic.h := RPCGENFLAGS += -M
296 297 metad.h := RPCGENFLAGS += -M
297 298 metamed.h := RPCGENFLAGS += -M
298 299 mhdx.h := RPCGENFLAGS += -M
299 300 mdiox.h := RPCGENFLAGS += -M
300 301 metamhd.h := RPCGENFLAGS += -M
301 302 metacl.h := RPCGENFLAGS += -M
302 303
303 304 # rpcsvc rpcgen source (.x files)
304 305 #
305 306 # yp.x is an attempt at codifying what was hand coded in RPCL.
306 307 # Unfortunately it doesn't quite work. (The handcoded stuff isn't
307 308 # expressable in RPCL) this is due to the fact that YP was written
308 309 # before rpcgen existed. Hence, yp_prot.h cannot be derived from yp.x
309 310 #
310 311 # There is no `.h' for nis_object.x because it is included by nis.x and
311 312 # the resulting .h is nis.h.
312 313
313 314 RPCSVCPROTS = \
314 315 $(RPCSVC_GEN_HDRS:%.h=%.x) nis_object.x yp.x
315 316
316 317 LVMSVCPROTS = \
317 318 $(LVMRPCHDRS:%.h=%.x)
318 319
319 320 RPCSVCHDRS= $(RPCSVC_SRC_HDRS) $(RPCSVC_GEN_HDRS)
320 321
321 322 PROTOHDRS= dumprestore.h routed.h ripngd.h rwhod.h timed.h
322 323
323 324 ROOTHDRS= $(HDRS:%=$(ROOT)/usr/include/%) \
324 325 $(KRB5HDRS:%=$(ROOT)/usr/include/kerberosv5/%) \
325 326 $(ISOHDRS:%=$(ROOT)/usr/include/iso/%) \
326 327 $(ARPAHDRS:%=$(ROOT)/usr/include/arpa/%) \
327 328 $(AUDIOHDRS:%=$(ROOT)/usr/include/audio/%) \
328 329 $(UUIDHDRS:%=$(ROOT)/usr/include/uuid/%) \
329 330 $(RPCSVCHDRS:%=$(ROOT)/usr/include/rpcsvc/%) \
330 331 $(RPCSVCPROTS:%=$(ROOT)/usr/include/rpcsvc/%) \
331 332 $(LVMRPCHDRS:%=$(ROOT)/usr/include/%) \
332 333 $(PROTOHDRS:%=$(ROOT)/usr/include/protocols/%)
333 334
334 335 DIRS= iso arpa audio rpcsvc protocols security uuid kerberosv5
335 336 ROOTDIRS= $(DIRS:%=$(ROOT)/usr/include/%)
336 337
337 338 SED= sed
338 339
339 340 # check files really don't exist
340 341 #
341 342 # should do something with the rpcsvc headers
342 343
343 344 iso/%.check: iso/%.h
344 345 $(DOT_H_CHECK)
345 346
346 347 arpa/%.check: arpa/%.h
347 348 $(DOT_H_CHECK)
348 349
349 350 audio/%.check: audio/%.h
350 351 $(DOT_H_CHECK)
351 352
352 353 rpcsvc/%.check: rpcsvc/%.h
353 354 $(DOT_H_CHECK)
354 355
355 356 rpcsvc/%.check: rpcsvc/%.x
356 357 $(DOT_X_CHECK)
357 358
358 359 protocols/%.check: protocols/%.h
359 360 $(DOT_H_CHECK)
360 361
361 362 kerberosv5/%.check: kerberosv5/%.h
362 363 $(DOT_H_CHECK)
363 364
364 365 uuid/%.check: uuid/%.h
365 366 $(DOT_H_CHECK)
366 367
367 368 # Note that the derived headers (rpcgen) are not checked at this time. These
368 369 # need work at the source level and rpcgen itself has a bug which causes a
369 370 # cstyle violation. Furthermore, there seems to be good reasons for the
370 371 # generated headers to not pass all of the hdrchk rules.
371 372 #
372 373 # Add the following to the CHECKHDRS list to activate the .x checks:
373 374 # $(RPCSVCPROTS:%.x=rpcsvc/%.check) \
374 375 #
375 376 CHECKHDRS= $(HDRS:%.h=%.check) \
376 377 $(KRB5HDRS:%.h=kerberosv5/%.check) \
377 378 $(ISOHDRS:%.h=iso/%.check) \
378 379 $(ARPAHDRS:%.h=arpa/%.check) \
379 380 $(AUDIOHDRS:%.h=audio/%.check) \
380 381 $(UUIDHDRS:%.h=uuid/%.check) \
381 382 $(RPCSVC_SRC_HDRS:%.h=rpcsvc/%.check) \
382 383 $(PROTOHDRS:%.h=protocols/%.check)
383 384
384 385 # headers which won't quite meet the standards...
385 386 #
386 387 # assert.h is required by ansi-c to *not* be idempotent (section 4.1.2).
387 388 # Hence the trailing guard is not the last thing in the file nor can it
388 389 # be without playing silly games.
389 390
390 391 assert.check := HDRCHK_TAIL = | grep -v "end guard wrong" | true
391 392
392 393 # install rules
393 394
394 395 $(ROOT)/usr/include/security/%: security/%
395 396 $(INS.file)
396 397
397 398 $(ROOT)/usr/include/protocols/%: protocols/%
398 399 $(INS.file)
399 400
400 401 $(ROOT)/usr/include/rpcsvc/%: rpcsvc/%
401 402 $(INS.file)
402 403
403 404 $(ROOT)/usr/include/kerberosv5/%: kerberosv5/%
404 405 $(INS.file)
405 406
406 407 $(ROOT)/usr/include/arpa/%: arpa/%
407 408 $(INS.file)
408 409
409 410 $(ROOT)/usr/include/audio/%: audio/%
410 411 $(INS.file)
411 412
412 413 $(ROOT)/usr/include/iso/%: iso/%
413 414 $(INS.file)
414 415
415 416 $(ROOT)/usr/include/uuid/%: uuid/%
416 417 $(INS.file)
417 418
418 419 $(ROOT)/usr/include/%: %
419 420 $(INS.file)
420 421
421 422 .KEEP_STATE:
422 423
423 424 .PARALLEL: $(ROOTHDRS) $(CHECKHDRS)
424 425
425 426 install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(SYMHDRASSERT) $(SYMHDRERRNO) \
426 427 $(SYMHDRFLOAT) $(SYMHDRISO646)
427 428
428 429 check: $(CHECKHDRS)
429 430
430 431 clean clobber:
431 432 $(RM) $(LVMRPCHDRS);
432 433 cd rpcsvc ; $(RM) $(RPCSVC_GEN_HDRS)
433 434
434 435 $(ROOTDIRS):
435 436 $(INS.dir)
436 437
437 438 $(SYMHDRASSERT):
438 439 -$(RM) $@; $(SYMLINK) ../assert.h $@
439 440
440 441 $(SYMHDRERRNO):
441 442 -$(RM) $@; $(SYMLINK) ../errno.h $@
442 443
443 444 $(SYMHDRFLOAT):
444 445 -$(RM) $@; $(SYMLINK) ../float.h $@
445 446
446 447 $(SYMHDRISO646):
447 448 -$(RM) $@; $(SYMLINK) ../iso646.h $@
448 449
449 450 rpcsvc/%.h: rpcsvc/%.x
450 451 $(RPCGEN) $(RPCGENFLAGS) $< -o $@
451 452
452 453 rpcsvc/nis.h: rpcsvc/nis.x
453 454 $(RPCGEN) $(RPCGENFLAGS) rpcsvc/nis.x |\
454 455 $(SED) -e '/EDIT_START/,$$ d' > $@
455 456
456 457 meta_basic.h: ../uts/common/sys/lvm/meta_basic.x
457 458 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/meta_basic.x | \
458 459 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
459 460 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
460 461 { print $0 } \
461 462 ' > $@
462 463
463 464 metad.h: metad.x
464 465 $(RPCGEN) $(RPCGENFLAGS) metad.x | \
465 466 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
466 467 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
467 468 { print $0 } \
468 469 ' > $@
469 470
470 471 mhdx.h: ../uts/common/sys/lvm/mhdx.x
471 472 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mhdx.x | \
472 473 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
473 474 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
474 475 { print $0 } \
475 476 ' > $@
476 477
477 478 mdiox.h: ../uts/common/sys/lvm/mdiox.x
478 479 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mdiox.x | \
479 480 nawk '{sub(/sys\/lvm\/md_mhdx/, "mhdx"); print $$0}' | \
480 481 nawk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
481 482 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
482 483 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
483 484 { print $0 } \
484 485 ' > $@
485 486
486 487 metamed.h: ../uts/common/sys/lvm/metamed.x
487 488 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/metamed.x | \
488 489 nawk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
489 490 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
490 491 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
491 492 { print $0 } \
492 493 ' > $@
493 494
494 495 metamhd.h: metamhd.x
495 496 $(RPCGEN) $(RPCGENFLAGS) metamhd.x | \
496 497 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
497 498 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
498 499 { print $0 } \
499 500 ' > $@
500 501
501 502 metacl.h: metacl.x
502 503 $(RPCGEN) $(RPCGENFLAGS) metacl.x | \
503 504 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
504 505 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
505 506 { print $0 } \
506 507 ' > $@
↓ open down ↓ |
347 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX