1 Star 0 Fork 18

wangchuangGG/lmbench

forked from src-openEuler/lmbench 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
lmbench3-fix-llseek-and-remove-bk-in-Makefile.patch 917 Bytes
一键复制 编辑 原始数据 按行查看 历史
myeuler 提交于 2020-05-15 23:52 . init package
diff -urN lmbench3/src/disk.c lmbench3-bak/src/disk.c
--- lmbench3/src/disk.c 2005-08-23 08:19:54.000000000 +0800
+++ lmbench3-bak/src/disk.c 2020-05-03 12:33:37.837715349 +0800
@@ -289,9 +289,7 @@
seekto(int fd, uint64 off)
{
#ifdef __linux__
- extern loff_t llseek(int, loff_t, int);
-
- if (llseek(fd, (loff_t)off, SEEK_SET) == (loff_t)-1) {
+ if (lseek(fd, (loff_t)off, SEEK_SET) == (loff_t)-1) {
return(-1);
}
return (0);
diff -urN lmbench3/src/Makefile lmbench3-bak/src/Makefile
--- lmbench3/src/Makefile 2005-08-23 08:19:54.000000000 +0800
+++ lmbench3-bak/src/Makefile 2020-05-03 12:33:32.148802834 +0800
@@ -228,7 +228,7 @@
install install-target dist get edit get-e clean clobber \
share depend testmake
-$O/lmbench : ../scripts/lmbench bk.ver
+$O/lmbench : ../scripts/lmbench
rm -f $O/lmbench
sed -e "s/<version>/`cat bk.ver`/g" < ../scripts/lmbench > $O/lmbench
chmod +x $O/lmbench
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangchuanggg/lmbench.git
[email protected]:wangchuanggg/lmbench.git
wangchuanggg
lmbench
lmbench
master

搜索帮助