2 # Copyright (c) 2012-2013 Apple Inc. All rights reserved. 
   4 # @APPLE_LICENSE_HEADER_START@ 
   6 # This file contains Original Code and/or Modifications of Original Code 
   7 # as defined in and that are subject to the Apple Public Source License 
   8 # Version 2.0 (the 'License'). You may not use this file except in 
   9 # compliance with the License. Please obtain a copy of the License at 
  10 # http://www.opensource.apple.com/apsl/ and read it before using this 
  13 # The Original Code and all software distributed under the License are 
  14 # distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
  15 # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
  16 # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 
  17 # FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
  18 # Please see the License for the specific language governing rights and 
  19 # limitations under the License. 
  21 # @APPLE_LICENSE_HEADER_END@ 
  24 if [ "$ACTION" = installhdrs 
]; then exit 0; fi 
  25 if [ "${RC_ProjectName%_Sim}" != "${RC_ProjectName}" ]; then exit 0; fi 
  27 mkdir -p "$DSTROOT"/usr
/share
/man
/man2 
|| true
 
  28 mkdir -p "$DSTROOT"/usr
/share
/man
/man3 
|| true
 
  29 mkdir -p "$DSTROOT"/usr
/local
/share
/man
/man2 
|| true
 
  30 mkdir -p "$DSTROOT"/usr
/local
/share
/man
/man3 
|| true
 
  35 BASE_PAGES
="pthread_kill.2 \ 
  38 cp $BASE_PAGES "$DSTROOT"/usr
/share
/man
/man2
 
  40 BASE_PAGES
="pthread.3 \ 
  43         pthread_attr_init_destroy.3 \ 
  44         pthread_attr_set_getdetachstate.3 \ 
  45         pthread_attr_set_getinheritsched.3 \ 
  46         pthread_attr_set_getschedparam.3 \ 
  47         pthread_attr_set_getschedpolicy.3 \ 
  48         pthread_attr_set_getscope.3 pthread_attr_set_getstackaddr.3 \ 
  49         pthread_attr_set_getstacksize.3 \ 
  51         pthread_cleanup_pop.3 \ 
  52         pthread_cleanup_push.3 \ 
  53         pthread_cond_broadcast.3 \ 
  54         pthread_cond_destroy.3 \ 
  56         pthread_cond_signal.3 \ 
  57         pthread_cond_timedwait.3 \ 
  64         pthread_getschedparam.3 \ 
  65         pthread_getspecific.3 \ 
  67         pthread_key_create.3 \ 
  68         pthread_key_delete.3 \ 
  69         pthread_mutex_destroy.3 \ 
  70         pthread_mutex_init.3 \ 
  71         pthread_mutex_lock.3 \ 
  72         pthread_mutex_trylock.3 \ 
  73         pthread_mutex_unlock.3 \ 
  76         pthread_rwlock_destroy.3 \ 
  77         pthread_rwlock_init.3 \ 
  78         pthread_rwlock_rdlock.3 \ 
  79         pthread_rwlock_unlock.3 \ 
  80         pthread_rwlock_wrlock.3 \ 
  81         pthread_rwlockattr_destroy.3 \ 
  82         pthread_rwlockattr_getpshared.3 \ 
  83         pthread_rwlockattr_init.3 \ 
  84         pthread_rwlockattr_setpshared.3 \ 
  86         pthread_setcancelstate.3 \ 
  87         pthread_setspecific.3" 
  89 cp $BASE_PAGES "$DSTROOT"/usr
/share
/man
/man3
 
  93 cd "$DSTROOT"/usr
/share
/man
/man3
 
  95 chown 
${INSTALL_OWNER}:${INSTALL_GROUP} $BASE_PAGES 
  96 chmod $INSTALL_MODE_FLAG $BASE_PAGES 
  98 ln -fh pthread_getschedparam
.3 pthread_setschedparam
.3 
  99 ln -fh pthread_rwlock_rdlock
.3 pthread_rwlock_tryrdlock
.3 
 100 ln -fh pthread_rwlock_wrlock
.3 pthread_rwlock_trywrlock
.3 
 103         pthread_attr_destroy
.3 \
 
 104         pthread_attr_getdetachstate
.3 \
 
 105         pthread_attr_getinheritsched
.3 \
 
 106         pthread_attr_getschedparam
.3 \
 
 107         pthread_attr_getschedpolicy
.3 \
 
 108         pthread_attr_getscope
.3 \
 
 109         pthread_attr_getstackaddr
.3 \
 
 110         pthread_attr_getstacksize
.3 \
 
 111         pthread_attr_init
.3 \
 
 112         pthread_attr_setdetachstate
.3 \
 
 113         pthread_attr_setinheritsched
.3 \
 
 114         pthread_attr_setschedparam
.3 \
 
 115         pthread_attr_setschedpolicy
.3 \
 
 116         pthread_attr_setscope
.3 \
 
 117         pthread_attr_setstackaddr
.3 \
 
 118         pthread_attr_setstacksize
.3 \
 
 120         ln -fh pthread_attr
.3 $M 
 124         pthread_mutexattr_destroy
.3 \
 
 125         pthread_mutexattr_getprioceiling
.3 \
 
 126         pthread_mutexattr_getprotocol
.3 \
 
 127         pthread_mutexattr_gettype
.3 \
 
 128         pthread_mutexattr_init
.3 \
 
 129         pthread_mutexattr_setprioceiling
.3 \
 
 130         pthread_mutexattr_setprotocol
.3 \
 
 131         pthread_mutexattr_settype
.3 \
 
 133         ln -fh pthread_mutexattr
.3 $M 
 137         pthread_condattr_destroy
.3 \
 
 138         pthread_condattr_init
.3 \
 
 140         ln -fh pthread_condattr
.3 $M 
 144         pthread_setcanceltype
.3 \
 
 145         pthread_testcancel
.3 \
 
 147         ln -fh pthread_setcancelstate
.3 $M