rem: return lockPtr;
add: return (void *) lockPtr;
context: NsLockAlloc(void){    static char *func = "NsMutexInit";    pthread_mutex_t *lockPtr;#ifdef USE_PTHREAD_PSHARED    pthread_mutexattr_t attr;#endif    int		     err;    lockPtr = NsAlloc(sizeof(pthread_mutex_t));#ifndef USE_PTHREAD_PSHARED    err = pthread_mutex_init(lockPtr, MUTEX_INIT_ATTR);#else    err = pthread_mutexattr_init(&attr);    if (err != 0) {    	NsThreadFatal(func, "ptread_mutexattr_init", err);    }    err = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);    if (err != 0) {    	NsThreadFatal(func, "ptread_mutexattr_setpshared", err);    }    err = pthread_mutex_init(lockPtr, &attr);#endif    if (err != 0) {    	NsThreadFatal(func, "ptread_mutex_init", err);    }#ifdef USE_PTHREAD_PSHARED    err = pthread_mutexattr_destroy(&attr);    if (err != 0) {    	NsThreadFatal(func, "ptread_mutexattr_destroy", err);    }#endif    return lockPtr;}