1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet
   9 # at http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2011, Richard Lowe
  14 # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  15 # Copyright 2018 Joyent, Inc.
  16 # Copyright 2019, Carlos Neira <cneirabustos@gmail.com>
  17 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  18 
  19 include         $(SRC)/Makefile.master
  20 
  21 MANSECT=        3proc
  22 
  23 MANFILES=                                       \
  24                 Lctlfd.3proc                    \
  25                 Lfree.3proc                     \
  26                 Lgrab_error.3proc               \
  27                 Lgrab.3proc                     \
  28                 Lprochandle.3proc               \
  29                 Lpsinfo.3proc                   \
  30                 Lstate.3proc                    \
  31                 Lstatus.3proc                   \
  32                 Paddr_to_ctf.3proc              \
  33                 Paddr_to_loadobj.3proc          \
  34                 Paddr_to_map.3proc              \
  35                 Pasfd.3proc                     \
  36                 Pclearfault.3proc               \
  37                 Pclearsig.3proc                 \
  38                 Pcontent.3proc                  \
  39                 Pcreate_agent.3proc             \
  40                 Pcreate_error.3proc             \
  41                 Pcreate.3proc                   \
  42                 Pcred.3proc                     \
  43                 Pctlfd.3proc                    \
  44                 Pdelbkpt.3proc                  \
  45                 Pdelwapt.3proc                  \
  46                 Pdestroy_agent.3proc            \
  47                 Penv_iter.3proc                 \
  48                 Perror_printf.3proc             \
  49                 Pexecname.3proc                 \
  50                 Pfault.3proc                    \
  51                 Pfdinfo_iter.3proc              \
  52                 Pgcore.3proc                    \
  53                 Pgetareg.3proc                  \
  54                 Pgetauxval.3proc                \
  55                 Pgetauxvec.3proc                \
  56                 Pgetenv.3proc                   \
  57                 Pgrab_core.3proc                \
  58                 Pgrab_error.3proc               \
  59                 Pgrab_file.3proc                \
  60                 Pgrab.3proc                     \
  61                 Pisprocdir.3proc                \
  62                 Pissyscall.3proc                \
  63                 Pldt.3proc                      \
  64                 Plmid.3proc                     \
  65                 Plookup_by_addr.3proc           \
  66                 Plwp_getasrs.3proc              \
  67                 Plwp_getgwindows.3proc          \
  68                 Plwp_getname.3proc              \
  69                 Plwp_getpsinfo.3proc            \
  70                 Plwp_getregs.3proc              \
  71                 Plwp_getspymaster.3proc         \
  72                 Plwp_getxregs.3proc             \
  73                 Plwp_iter.3proc                 \
  74                 Plwp_stack.3proc                \
  75                 Pmapping_iter.3proc             \
  76                 Pobjname.3proc                  \
  77                 Pplatform.3proc                 \
  78                 Ppltdest.3proc                  \
  79                 Ppriv.3proc                     \
  80                 Ppsinfo.3proc                   \
  81                 pr_access.3proc                 \
  82                 pr_close.3proc                  \
  83                 pr_creat.3proc                  \
  84                 pr_door_info.3proc              \
  85                 pr_exit.3proc                   \
  86                 pr_fcntl.3proc                  \
  87                 pr_fstatvfs.3proc               \
  88                 pr_getitimer.3proc              \
  89                 pr_getpeername.3proc            \
  90                 pr_getpeerucred.3proc           \
  91                 pr_getprojid.3proc              \
  92                 pr_getrctl.3proc                \
  93                 pr_getrlimit.3proc              \
  94                 pr_getsockname.3proc            \
  95                 pr_getsockopt.3proc             \
  96                 pr_gettaskid.3proc              \
  97                 pr_getzoneid.3proc              \
  98                 pr_ioctl.3proc                  \
  99                 pr_link.3proc                   \
 100                 pr_llseek.3proc                 \
 101                 pr_lseek.3proc                  \
 102                 pr_memcntl.3proc                \
 103                 pr_meminfo.3proc                \
 104                 pr_mmap.3proc                   \
 105                 pr_munmap.3proc                 \
 106                 pr_open.3proc                   \
 107                 pr_processor_bind.3proc         \
 108                 pr_rename.3proc                 \
 109                 pr_setitimer.3proc              \
 110                 pr_setrctl.3proc                \
 111                 pr_setrlimit.3proc              \
 112                 pr_settaskid.3proc              \
 113                 pr_sigaction.3proc              \
 114                 pr_stat.3proc                   \
 115                 pr_statvfs.3proc                \
 116                 pr_unlink.3proc                 \
 117                 pr_waitid.3proc                 \
 118                 Prd_agent.3proc                 \
 119                 Pread.3proc                     \
 120                 Prelease.3proc                  \
 121                 Preopen.3proc                   \
 122                 Preset_maps.3proc               \
 123                 proc_arg_grab.3proc             \
 124                 proc_arg_psinfo.3proc           \
 125                 proc_content2str.3proc          \
 126                 proc_fltname.3proc              \
 127                 proc_fltset2str.3proc           \
 128                 proc_get_auxv.3proc             \
 129                 proc_get_cred.3proc             \
 130                 proc_get_priv.3proc             \
 131                 proc_get_psinfo.3proc           \
 132                 proc_get_status.3proc           \
 133                 proc_initstdio.3proc            \
 134                 proc_lwp_in_set.3proc           \
 135                 proc_service.3proc              \
 136                 proc_str2flt.3proc              \
 137                 proc_str2fltset.3proc           \
 138                 proc_unctrl_psinfo.3proc        \
 139                 proc_walk.3proc                 \
 140                 Psecflags.3proc                 \
 141                 Psetbkpt.3proc                  \
 142                 Psetcred.3proc                  \
 143                 Psetfault.3proc                 \
 144                 Psetflags.3proc                 \
 145                 Psetpriv.3proc                  \
 146                 Psetrun.3proc                   \
 147                 Psetsignal.3proc                \
 148                 Psetsysentry.3proc              \
 149                 Psetwapt.3proc                  \
 150                 Psetzoneid.3proc                \
 151                 Psignal.3proc                   \
 152                 Pstack_iter.3proc               \
 153                 Pstate.3proc                    \
 154                 Pstatus.3proc                   \
 155                 Pstopstatus.3proc               \
 156                 Psymbol_iter.3proc              \
 157                 Psync.3proc                     \
 158                 Psysentry.3proc                 \
 159                 Puname.3proc                    \
 160                 Pupdate_maps.3proc              \
 161                 Pupdate_syms.3proc              \
 162                 Pwrite.3proc                    \
 163                 Pxecbkpt.3proc                  \
 164                 Pzonename.3proc                 \
 165                 ps_lgetregs.3proc               \
 166                 ps_pglobal_lookup.3proc         \
 167                 ps_pread.3proc                  \
 168                 ps_pstop.3proc
 169 
 170 
 171 MANLINKS=                                       \
 172                 Lalt_stack.3proc                \
 173                 Lclearfault.3proc               \
 174                 Lclearsig.3proc                 \
 175                 Ldstop.3proc                    \
 176                 Lgetareg.3proc                  \
 177                 Lmain_stack.3proc               \
 178                 Lputareg.3proc                  \
 179                 Lsetrun.3proc                   \
 180                 Lstack.3proc                    \
 181                 Lstop.3proc                     \
 182                 Lsync.3proc                     \
 183                 Lwait.3proc                     \
 184                 Lxecbkpt.3proc                  \
 185                 Lxecwapt.3proc                  \
 186                 Paddr_to_text_map.3proc         \
 187                 Pcreate_callback.3proc          \
 188                 Pdstop.3proc                    \
 189                 Pfgcore.3proc                   \
 190                 Pfgrab_core.3proc               \
 191                 Pfree.3proc                     \
 192                 Pissyscall_prev.3proc           \
 193                 Plmid_to_ctf.3proc              \
 194                 Plmid_to_loadobj.3proc          \
 195                 Plmid_to_map.3proc              \
 196                 Plookup_by_name.3proc           \
 197                 Plwp_alt_stack.3proc            \
 198                 Plwp_getfpregs.3proc            \
 199                 Plwp_iter_all.3proc             \
 200                 Plwp_main_stack.3proc           \
 201                 Plwp_setasrs.3proc              \
 202                 Plwp_setfpregs.3proc            \
 203                 Plwp_setregs.3proc              \
 204                 Plwp_setxregs.3proc             \
 205                 Pmapping_iter_resolved.3proc    \
 206                 Pname_to_ctf.3proc              \
 207                 Pname_to_loadobj.3proc          \
 208                 Pname_to_map.3proc              \
 209                 Pobject_iter_resolved.3proc     \
 210                 Pobject_iter.3proc              \
 211                 Pobjname_resolved.3proc         \
 212                 Ppriv_free.3proc                \
 213                 Pputareg.3proc                  \
 214                 pr_fstat.3proc                  \
 215                 pr_fstat64.3proc                \
 216                 pr_getrlimit64.3proc            \
 217                 pr_lstat.3proc                  \
 218                 pr_lstat64.3proc                \
 219                 pr_setrlimit64.3proc            \
 220                 pr_stat64.3proc                 \
 221                 Pread_string.3proc              \
 222                 proc_arg_xgrab.3proc            \
 223                 proc_arg_xpsinfo.3proc          \
 224                 proc_dmodelname.3proc           \
 225                 proc_finistdio.3proc            \
 226                 proc_flushstdio.3proc           \
 227                 proc_free_priv.3proc            \
 228                 proc_get_ldt.3proc              \
 229                 proc_lwp_range_valid.3proc      \
 230                 proc_signame.3proc              \
 231                 proc_sigset2str.3proc           \
 232                 proc_str2content.3proc          \
 233                 proc_str2sig.3proc              \
 234                 proc_str2sigset.3proc           \
 235                 proc_str2sys.3proc              \
 236                 proc_str2sysset.3proc           \
 237                 proc_sysname.3proc              \
 238                 proc_sysset2str.3proc           \
 239                 ps_kill.3proc                   \
 240                 ps_lcontinue.3proc              \
 241                 ps_lgetfpregs.3proc             \
 242                 ps_lgetxregs.3proc              \
 243                 ps_lgetxregsize.3proc           \
 244                 ps_lrolltoaddr.3proc            \
 245                 ps_lsetfpregs.3proc             \
 246                 ps_lsetregs.3proc               \
 247                 ps_lsetxregs.3proc              \
 248                 ps_lstop.3proc                  \
 249                 ps_pcontinue.3proc              \
 250                 ps_pdread.3proc                 \
 251                 ps_pdwrite.3proc                \
 252                 ps_pglobal_sym.3proc            \
 253                 ps_ptread.3proc                 \
 254                 ps_ptwrite.3proc                \
 255                 ps_pwrite.3proc                 \
 256                 Psecflags_free.3proc            \
 257                 Psetsysexit.3proc               \
 258                 Pstop.3proc                     \
 259                 Psymbol_iter_by_addr.3proc      \
 260                 Psymbol_iter_by_lmid.3proc      \
 261                 Psymbol_iter_by_name.3proc      \
 262                 Psysexit.3proc                  \
 263                 Punsetflags.3proc               \
 264                 Pwait.3proc                     \
 265                 Pxcreate.3proc                  \
 266                 Pxecwapt.3proc                  \
 267                 Pxlookup_by_addr_resolved.3proc \
 268                 Pxlookup_by_addr.3proc          \
 269                 Pxlookup_by_name.3proc          \
 270                 Pxsymbol_iter.3proc             \
 271                 Pzonepath.3proc                 \
 272                 Pzoneroot.3proc
 273 
 274 
 275 ps_lgetfpregs.3proc             := LINKSRC = ps_lgetregs.3proc
 276 ps_lgetxregs.3proc              := LINKSRC = ps_lgetregs.3proc
 277 ps_lgetxregsize.3proc           := LINKSRC = ps_lgetregs.3proc
 278 ps_lsetfpregs.3proc             := LINKSRC = ps_lgetregs.3proc
 279 ps_lsetregs.3proc               := LINKSRC = ps_lgetregs.3proc
 280 ps_lsetxregs.3proc              := LINKSRC = ps_lgetregs.3proc
 281 
 282 ps_pglobal_sym.3proc            := LINKSRC = ps_pglobal_lookup.3proc
 283 
 284 ps_pdread.3proc                 := LINKSRC = ps_pread.3proc
 285 ps_pdwrite.3proc                := LINKSRC = ps_pread.3proc
 286 ps_ptread.3proc                 := LINKSRC = ps_pread.3proc
 287 ps_ptwrite.3proc                := LINKSRC = ps_pread.3proc
 288 ps_pwrite.3proc                 := LINKSRC = ps_pread.3proc
 289 
 290 ps_kill.3proc                   := LINKSRC = ps_pstop.3proc
 291 ps_lcontinue.3proc              := LINKSRC = ps_pstop.3proc
 292 ps_lrolltoaddr.3proc            := LINKSRC = ps_pstop.3proc
 293 ps_lstop.3proc                  := LINKSRC = ps_pstop.3proc
 294 ps_pcontinue.3proc              := LINKSRC = ps_pstop.3proc
 295 
 296 
 297 Pxcreate.3proc                  := LINKSRC = Pcreate.3proc
 298 Pcreate_callback.3proc          := LINKSRC = Pcreate.3proc
 299 
 300 Pfgrab_core.3proc               := LINKSRC = Pgrab_core.3proc
 301 
 302 Pfree.3proc                     := LINKSRC = Prelease.3proc
 303 
 304 Psecflags_free.3proc            := LINKSRC = Psecflags.3proc
 305 
 306 Plwp_iter_all.3proc             := LINKSRC = Plwp_iter.3proc
 307 
 308 Pmapping_iter_resolved.3proc    := LINKSRC = Pmapping_iter.3proc
 309 Pobject_iter.3proc              := LINKSRC = Pmapping_iter.3proc
 310 Pobject_iter_resolved.3proc     := LINKSRC = Pmapping_iter.3proc
 311 
 312 Psymbol_iter_by_addr.3proc      := LINKSRC = Psymbol_iter.3proc
 313 Psymbol_iter_by_lmid.3proc      := LINKSRC = Psymbol_iter.3proc
 314 Psymbol_iter_by_name.3proc      := LINKSRC = Psymbol_iter.3proc
 315 Pxsymbol_iter.3proc             := LINKSRC = Psymbol_iter.3proc
 316 
 317 Plmid_to_ctf.3proc              := LINKSRC = Paddr_to_ctf.3proc
 318 Pname_to_ctf.3proc              := LINKSRC = Paddr_to_ctf.3proc
 319 
 320 Plmid_to_loadobj.3proc          := LINKSRC = Paddr_to_loadobj.3proc
 321 Pname_to_loadobj.3proc          := LINKSRC = Paddr_to_loadobj.3proc
 322 
 323 Paddr_to_text_map.3proc         := LINKSRC = Paddr_to_map.3proc
 324 Plmid_to_map.3proc              := LINKSRC = Paddr_to_map.3proc
 325 Pname_to_map.3proc              := LINKSRC = Paddr_to_map.3proc
 326 
 327 Pdstop.3proc                    := LINKSRC = Pstopstatus.3proc
 328 Pstop.3proc                     := LINKSRC = Pstopstatus.3proc
 329 Pwait.3proc                     := LINKSRC = Pstopstatus.3proc
 330 Ldstop.3proc                    := LINKSRC = Pstopstatus.3proc
 331 Lstop.3proc                     := LINKSRC = Pstopstatus.3proc
 332 Lwait.3proc                     := LINKSRC = Pstopstatus.3proc
 333 
 334 Lsync.3proc                     := LINKSRC = Psync.3proc
 335 
 336 Pfgcore.3proc                   := LINKSRC = Pgcore.3proc
 337 
 338 Pputareg.3proc                  := LINKSRC = Pgetareg.3proc
 339 Lgetareg.3proc                  := LINKSRC = Pgetareg.3proc
 340 Lputareg.3proc                  := LINKSRC = Pgetareg.3proc
 341 
 342 Pissyscall_prev.3proc           := LINKSRC = Pissyscall.3proc
 343 
 344 Pxlookup_by_addr.3proc          := LINKSRC = Plookup_by_addr.3proc
 345 Pxlookup_by_addr_resolved.3proc := LINKSRC = Plookup_by_addr.3proc
 346 Plookup_by_name.3proc           := LINKSRC = Plookup_by_addr.3proc
 347 Pxlookup_by_name.3proc          := LINKSRC = Plookup_by_addr.3proc
 348 
 349 Plwp_setregs.3proc              := LINKSRC = Plwp_getregs.3proc
 350 Plwp_getfpregs.3proc            := LINKSRC = Plwp_getregs.3proc
 351 Plwp_setfpregs.3proc            := LINKSRC = Plwp_getregs.3proc
 352 
 353 Plwp_alt_stack.3proc            := LINKSRC = Plwp_stack.3proc
 354 Plwp_main_stack.3proc           := LINKSRC = Plwp_stack.3proc
 355 Lalt_stack.3proc                := LINKSRC = Plwp_stack.3proc
 356 Lmain_stack.3proc               := LINKSRC = Plwp_stack.3proc
 357 Lstack.3proc                    := LINKSRC = Plwp_stack.3proc
 358 
 359 Pobjname_resolved.3proc         := LINKSRC = Pobjname.3proc
 360 
 361 Ppriv_free.3proc                := LINKSRC = Ppriv.3proc
 362 
 363 Pread_string.3proc              := LINKSRC = Pread.3proc
 364 
 365 Punsetflags.3proc               := LINKSRC = Psetflags.3proc
 366 
 367 Psetsysexit.3proc               := LINKSRC = Psetsysentry.3proc
 368 
 369 Psysexit.3proc                  := LINKSRC = Psysentry.3proc
 370 
 371 Pxecwapt.3proc                  := LINKSRC = Pxecbkpt.3proc
 372 Lxecbkpt.3proc                  := LINKSRC = Pxecbkpt.3proc
 373 Lxecwapt.3proc                  := LINKSRC = Pxecbkpt.3proc
 374 
 375 Lclearfault.3proc               := LINKSRC = Pclearfault.3proc
 376 
 377 Lclearsig.3proc                 := LINKSRC = Pclearsig.3proc
 378 
 379 Lsetrun.3proc                   := LINKSRC = Psetrun.3proc
 380 
 381 Pzonepath.3proc                 := LINKSRC = Pzonename.3proc
 382 Pzoneroot.3proc                 := LINKSRC = Pzonename.3proc
 383 
 384 pr_fstat.3proc                  := LINKSRC = pr_stat.3proc
 385 pr_fstat64.3proc                := LINKSRC = pr_stat.3proc
 386 pr_lstat.3proc                  := LINKSRC = pr_stat.3proc
 387 pr_lstat64.3proc                := LINKSRC = pr_stat.3proc
 388 pr_stat64.3proc                 := LINKSRC = pr_stat.3proc
 389 
 390 pr_getrlimit64.3proc            := LINKSRC = pr_getrlimit.3proc
 391 
 392 pr_setrlimit64.3proc            := LINKSRC = pr_setrlimit.3proc
 393 
 394 proc_arg_xgrab.3proc            := LINKSRC = proc_arg_grab.3proc
 395 
 396 proc_arg_xpsinfo.3proc          := LINKSRC = proc_arg_psinfo.3proc
 397 
 398 proc_str2content.3proc          := LINKSRC = proc_content2str.3proc
 399 
 400 proc_flushstdio.3proc           := LINKSRC = proc_initstdio.3proc
 401 proc_finistdio.3proc            := LINKSRC = proc_initstdio.3proc
 402 
 403 proc_dmodelname.3proc           := LINKSRC = proc_fltname.3proc
 404 proc_signame.3proc              := LINKSRC = proc_fltname.3proc
 405 proc_sysname.3proc              := LINKSRC = proc_fltname.3proc
 406 
 407 proc_sigset2str.3proc           := LINKSRC = proc_fltset2str.3proc
 408 proc_sysset2str.3proc           := LINKSRC = proc_fltset2str.3proc
 409 
 410 proc_free_priv.3proc            := LINKSRC = proc_get_priv.3proc
 411 
 412 proc_lwp_range_valid.3proc      := LINKSRC = proc_lwp_in_set.3proc
 413 
 414 proc_str2sig.3proc              := LINKSRC = proc_str2flt.3proc
 415 proc_str2sys.3proc              := LINKSRC = proc_str2flt.3proc
 416 
 417 proc_str2sigset.3proc           := LINKSRC = proc_str2fltset.3proc
 418 proc_str2sysset.3proc           := LINKSRC = proc_str2fltset.3proc
 419 
 420 proc_get_ldt.3proc              := LINKSRC = Pldt.3proc
 421 
 422 Plwp_setxregs.3proc             := LINKSRC = Plwp_getxregs.3proc
 423 
 424 Plwp_setasrs.3proc              := LINKSRC = Plwp_getasrs.3proc
 425 
 426 .KEEP_STATE:
 427 
 428 include         $(SRC)/man/Makefile.man
 429 
 430 install:        $(ROOTMANFILES) $(ROOTMANLINKS)