facf0c92e0
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
19 lines
459 B
Plaintext
19 lines
459 B
Plaintext
# Wait for given number of seconds, reading any data from
|
|
# all TCP connections while doing so.
|
|
|
|
if [[ ${(t)SECONDS} != float* ]]; then
|
|
# If called from tcp_expect, don't override
|
|
typeset -F TCP_SECONDS_START=$SECONDS
|
|
# Get extra accuracy by making SECONDS floating point locally
|
|
typeset -F SECONDS
|
|
fi
|
|
|
|
typeset to end
|
|
|
|
(( to = $1, end = SECONDS + to ))
|
|
while (( SECONDS < end )); do
|
|
tcp_read -a -T $to
|
|
(( to = end - SECONDS ))
|
|
done
|
|
return
|