## .aliases ## ## Useful aliases for use with NGPT Development ## Copyright (c) 2001 IBM Corporation ## # # Pthreads development functions # # function to set variables for M:N testing # parameters: $1 - Name of the program to run in M:N # sim() { MAXNATIVETHREADS=4 MAXTHREADPERCPU=1 $1 } # # Function to query an errno value... # parameters: $1 - The value or the name of errno to be queried # qerr() { grep $1 /usr/include/asm/errno.h } # # Function to display a pthread function signature. # parameters: $1 - The pthread function you need a signature for. # pthr() { grep $1 ~/ngpt/pthread.h } # # Function to build the pthreads library # parameters: $1 - One of the config options from config.param # bt() { pushd ~/ngpt ./configure --with-param=$1 make && make test popd } # # Function to configure the pthreads library # parameters: $1 - One of the config options from config.param # btc() { pushd ~/ngpt ./configure --with-param=$1 popd } ## END OF FILE