Imported from ../bash-1.14.7.tar.gz.
This commit is contained in:
commit
726f63884d
402 changed files with 150297 additions and 0 deletions
24
builtins/psize.sh
Executable file
24
builtins/psize.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# psize.sh -- determine this system's pipe size, and write a define to
|
||||
# pipesize.h so ulimit.c can use it.
|
||||
|
||||
echo "/*"
|
||||
echo " * pipesize.h"
|
||||
echo " *"
|
||||
echo " * This file is automatically generated by psize.sh"
|
||||
echo " * Do not edit!"
|
||||
echo " */"
|
||||
echo ""
|
||||
|
||||
./psize.aux 2>/tmp/pipesize | sleep 3
|
||||
|
||||
if [ -s /tmp/pipesize ]; then
|
||||
echo "#define PIPESIZE `cat /tmp/pipesize`"
|
||||
else
|
||||
echo "#define PIPESIZE 512"
|
||||
fi
|
||||
|
||||
rm -f /tmp/pipesize
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue