Logo
Explore Help
Sign In
mirror/libbpf
1
0
Fork 0
You've already forked libbpf
mirror of https://github.com/netdata/libbpf.git synced 2026-03-18 07:19:07 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
netdata-patch
libbpf/scripts/check-reallocarray.sh

19 lines
302 B
Bash
Raw Permalink Normal View History

Fix redirect in check-reallocarray (#7) Builds on debian stretch are failing due to: ../scripts/check-reallocarray.sh: 17: ../scripts/check-reallocarray.sh: Syntax error: Bad fd number Fix the redirect of stdout and stderr. Signed-off-by: David Ahern <dsahern@gmail.com>
2019-01-07 21:34:42 -07:00
#!/bin/sh
add a simple Makefile to build and clean up add missing macros, static inline functions, etc. add README to illustrate the purpose of this repo. Signed-off-by: Yonghong Song <yhs@fb.com>
2018-10-09 21:45:49 -07:00
tfile=$(mktemp /tmp/test_reallocarray_XXXXXXXX.c)
ofile=${tfile%.c}.o
cat > $tfile <<EOL
#define _GNU_SOURCE
#include <stdlib.h>
int main(void)
{
return !!reallocarray(NULL, 1, 1);
}
EOL
Fix redirect in check-reallocarray (#7) Builds on debian stretch are failing due to: ../scripts/check-reallocarray.sh: 17: ../scripts/check-reallocarray.sh: Syntax error: Bad fd number Fix the redirect of stdout and stderr. Signed-off-by: David Ahern <dsahern@gmail.com>
2019-01-07 21:34:42 -07:00
gcc $tfile -o $ofile >/dev/null 2>&1
add a simple Makefile to build and clean up add missing macros, static inline functions, etc. add README to illustrate the purpose of this repo. Signed-off-by: Yonghong Song <yhs@fb.com>
2018-10-09 21:45:49 -07:00
if [ $? -ne 0 ]; then echo "FAIL"; fi
/bin/rm -f $tfile $ofile
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 39ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API 粤ICP备2023071974号-5