Skip to content

Instantly share code, notes, and snippets.

View carenas's full-sized avatar

Carlo Marcelo Arenas Belón carenas

View GitHub Profile
@carenas
carenas / f.sh
Created November 2, 2021 09:47
testcase for fseek's issue in BSD with buffered stdin
#!/bin/sh
# set CC to a suitable compiler
# pass -DWORKAROUND (or equivalent) for testing "workaround" instead
if [ ! -n "$CC" ]; then
for CC in cc gcc clang xlc cl; do
if command -v $CC >/dev/null; then
break
fi