Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xindoo
redis
提交
3688d7f3
R
redis
项目概览
xindoo
/
redis
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3688d7f3
编写于
7月 01, 2010
作者:
A
antirez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Compilation fixed on Linux after the source code split
上级
d3b958c3
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
17 addition
and
4 deletion
+17
-4
src/aof.c
src/aof.c
+4
-0
src/debug.c
src/debug.c
+2
-0
src/rdb.c
src/rdb.c
+5
-0
src/redis.c
src/redis.c
+4
-3
src/redis.h
src/redis.h
+1
-0
src/ziplist.c
src/ziplist.c
+1
-1
未找到文件。
src/aof.c
浏览文件 @
3688d7f3
...
...
@@ -3,6 +3,10 @@
#include <signal.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/wait.h>
/* Called when the user switches from "appendonly yes" to "appendonly no"
* at runtime using the CONFIG command. */
...
...
src/debug.c
浏览文件 @
3688d7f3
#include "redis.h"
#include "sha1.h"
/* SHA1 is used for DEBUG DIGEST */
#include <arpa/inet.h>
/* ================================= Debugging ============================== */
/* Compute the sha1 of string at 's' with 'len' bytes long.
...
...
src/rdb.c
浏览文件 @
3688d7f3
...
...
@@ -2,6 +2,11 @@
#include "lzf.h"
/* LZF compression library */
#include <math.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <arpa/inet.h>
int
rdbSaveType
(
FILE
*
fp
,
unsigned
char
type
)
{
if
(
fwrite
(
&
type
,
1
,
1
,
fp
)
==
0
)
return
-
1
;
...
...
src/redis.c
浏览文件 @
3688d7f3
...
...
@@ -41,7 +41,6 @@
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <inttypes.h>
#include <arpa/inet.h>
#include <sys/stat.h>
#include <fcntl.h>
...
...
@@ -1443,8 +1442,10 @@ void *getMcontextEip(ucontext_t *uc) {
#else
return
(
void
*
)
uc
->
uc_mcontext
->
__ss
.
__eip
;
#endif
#elif defined(__i386__) || defined(__X86_64__) || defined(__x86_64__)
return
(
void
*
)
uc
->
uc_mcontext
.
gregs
[
REG_EIP
];
/* Linux 32/64 bit */
#elif defined(__i386__)
return
(
void
*
)
uc
->
uc_mcontext
.
gregs
[
14
];
/* Linux 32 */
#elif defined(__X86_64__) || defined(__x86_64__)
return
(
void
*
)
uc
->
uc_mcontext
.
gregs
[
16
];
/* Linux 64 */
#elif defined(__ia64__)
/* Linux IA64 */
return
(
void
*
)
uc
->
uc_mcontext
.
sc_ip
;
#else
...
...
src/redis.h
浏览文件 @
3688d7f3
...
...
@@ -15,6 +15,7 @@
#include <limits.h>
#include <unistd.h>
#include <errno.h>
#include <inttypes.h>
#include "ae.h"
/* Event driven programming library */
#include "sds.h"
/* Dynamic safe strings */
...
...
src/ziplist.c
浏览文件 @
3688d7f3
...
...
@@ -551,7 +551,7 @@ void ziplistRepr(unsigned char *zl) {
if
(
entry
.
encoding
==
ZIP_ENC_RAW
)
{
fwrite
(
p
,
entry
.
len
,
1
,
stdout
);
}
else
{
printf
(
"%lld"
,
zipLoadInteger
(
p
,
entry
.
encoding
));
printf
(
"%lld"
,
(
long
long
)
zipLoadInteger
(
p
,
entry
.
encoding
));
}
printf
(
"
\n
"
);
p
+=
entry
.
len
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录