Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
32482f61
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
接近 2 年 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
32482f61
编写于
1月 03, 2018
作者:
J
Jens Gustedt
提交者:
Rich Felker
1月 09, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
revise the definition of multiple basic locks in the code
In all cases this is just a change from two volatile int to one.
上级
c4bc0b1a
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
16 addition
and
16 deletion
+16
-16
src/dirent/__dirent.h
src/dirent/__dirent.h
+1
-1
src/exit/at_quick_exit.c
src/exit/at_quick_exit.c
+1
-1
src/exit/atexit.c
src/exit/atexit.c
+1
-1
src/internal/pthread_impl.h
src/internal/pthread_impl.h
+2
-2
src/locale/dcngettext.c
src/locale/dcngettext.c
+1
-1
src/locale/locale_map.c
src/locale/locale_map.c
+1
-1
src/locale/setlocale.c
src/locale/setlocale.c
+1
-1
src/malloc/lite_malloc.c
src/malloc/lite_malloc.c
+1
-1
src/misc/syslog.c
src/misc/syslog.c
+1
-1
src/prng/random.c
src/prng/random.c
+1
-1
src/stdio/ofl.c
src/stdio/ofl.c
+1
-1
src/thread/pthread_atfork.c
src/thread/pthread_atfork.c
+1
-1
src/thread/sem_open.c
src/thread/sem_open.c
+1
-1
src/thread/synccall.c
src/thread/synccall.c
+1
-1
src/time/__tz.c
src/time/__tz.c
+1
-1
未找到文件。
src/dirent/__dirent.h
浏览文件 @
32482f61
...
@@ -4,6 +4,6 @@ struct __dirstream
...
@@ -4,6 +4,6 @@ struct __dirstream
off_t
tell
;
off_t
tell
;
int
buf_pos
;
int
buf_pos
;
int
buf_end
;
int
buf_end
;
volatile
int
lock
[
2
];
volatile
int
lock
[
1
];
char
buf
[
2048
];
char
buf
[
2048
];
};
};
src/exit/at_quick_exit.c
浏览文件 @
32482f61
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
static
void
(
*
funcs
[
COUNT
])(
void
);
static
void
(
*
funcs
[
COUNT
])(
void
);
static
int
count
;
static
int
count
;
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
void
__funcs_on_quick_exit
()
void
__funcs_on_quick_exit
()
{
{
...
...
src/exit/atexit.c
浏览文件 @
32482f61
...
@@ -13,7 +13,7 @@ static struct fl
...
@@ -13,7 +13,7 @@ static struct fl
}
builtin
,
*
head
;
}
builtin
,
*
head
;
static
int
slot
;
static
int
slot
;
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
void
__funcs_on_exit
()
void
__funcs_on_exit
()
{
{
...
...
src/internal/pthread_impl.h
浏览文件 @
32482f61
...
@@ -39,8 +39,8 @@ struct pthread {
...
@@ -39,8 +39,8 @@ struct pthread {
int
unblock_cancel
;
int
unblock_cancel
;
volatile
int
timer_id
;
volatile
int
timer_id
;
locale_t
locale
;
locale_t
locale
;
volatile
int
killlock
[
2
];
volatile
int
killlock
[
1
];
volatile
int
exitlock
[
2
];
volatile
int
exitlock
[
1
];
volatile
int
startlock
[
2
];
volatile
int
startlock
[
2
];
unsigned
long
sigmask
[
_NSIG
/
8
/
sizeof
(
long
)];
unsigned
long
sigmask
[
_NSIG
/
8
/
sizeof
(
long
)];
char
*
dlerror_buf
;
char
*
dlerror_buf
;
...
...
src/locale/dcngettext.c
浏览文件 @
32482f61
...
@@ -34,7 +34,7 @@ static char *gettextdir(const char *domainname, size_t *dirlen)
...
@@ -34,7 +34,7 @@ static char *gettextdir(const char *domainname, size_t *dirlen)
char
*
bindtextdomain
(
const
char
*
domainname
,
const
char
*
dirname
)
char
*
bindtextdomain
(
const
char
*
domainname
,
const
char
*
dirname
)
{
{
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
struct
binding
*
p
,
*
q
;
struct
binding
*
p
,
*
q
;
if
(
!
domainname
)
return
0
;
if
(
!
domainname
)
return
0
;
...
...
src/locale/locale_map.c
浏览文件 @
32482f61
...
@@ -26,7 +26,7 @@ static const char envvars[][12] = {
...
@@ -26,7 +26,7 @@ static const char envvars[][12] = {
const
struct
__locale_map
*
__get_locale
(
int
cat
,
const
char
*
val
)
const
struct
__locale_map
*
__get_locale
(
int
cat
,
const
char
*
val
)
{
{
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
static
void
*
volatile
loc_head
;
static
void
*
volatile
loc_head
;
const
struct
__locale_map
*
p
;
const
struct
__locale_map
*
p
;
struct
__locale_map
*
new
=
0
;
struct
__locale_map
*
new
=
0
;
...
...
src/locale/setlocale.c
浏览文件 @
32482f61
...
@@ -21,7 +21,7 @@ char *__strchrnul(const char *, int);
...
@@ -21,7 +21,7 @@ char *__strchrnul(const char *, int);
char
*
setlocale
(
int
cat
,
const
char
*
name
)
char
*
setlocale
(
int
cat
,
const
char
*
name
)
{
{
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
if
((
unsigned
)
cat
>
LC_ALL
)
return
0
;
if
((
unsigned
)
cat
>
LC_ALL
)
return
0
;
...
...
src/malloc/lite_malloc.c
浏览文件 @
32482f61
...
@@ -11,7 +11,7 @@ void *__expand_heap(size_t *);
...
@@ -11,7 +11,7 @@ void *__expand_heap(size_t *);
static
void
*
__simple_malloc
(
size_t
n
)
static
void
*
__simple_malloc
(
size_t
n
)
{
{
static
char
*
cur
,
*
end
;
static
char
*
cur
,
*
end
;
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
size_t
align
=
1
,
pad
;
size_t
align
=
1
,
pad
;
void
*
p
;
void
*
p
;
...
...
src/misc/syslog.c
浏览文件 @
32482f61
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#include <fcntl.h>
#include <fcntl.h>
#include "libc.h"
#include "libc.h"
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
static
char
log_ident
[
32
];
static
char
log_ident
[
32
];
static
int
log_opt
;
static
int
log_opt
;
static
int
log_facility
=
LOG_USER
;
static
int
log_facility
=
LOG_USER
;
...
...
src/prng/random.c
浏览文件 @
32482f61
...
@@ -22,7 +22,7 @@ static int n = 31;
...
@@ -22,7 +22,7 @@ static int n = 31;
static
int
i
=
3
;
static
int
i
=
3
;
static
int
j
=
0
;
static
int
j
=
0
;
static
uint32_t
*
x
=
init
+
1
;
static
uint32_t
*
x
=
init
+
1
;
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
static
uint32_t
lcg31
(
uint32_t
x
)
{
static
uint32_t
lcg31
(
uint32_t
x
)
{
return
(
1103515245
*
x
+
12345
)
&
0x7fffffff
;
return
(
1103515245
*
x
+
12345
)
&
0x7fffffff
;
...
...
src/stdio/ofl.c
浏览文件 @
32482f61
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#include "libc.h"
#include "libc.h"
static
FILE
*
ofl_head
;
static
FILE
*
ofl_head
;
static
volatile
int
ofl_lock
[
2
];
static
volatile
int
ofl_lock
[
1
];
FILE
**
__ofl_lock
()
FILE
**
__ofl_lock
()
{
{
...
...
src/thread/pthread_atfork.c
浏览文件 @
32482f61
...
@@ -8,7 +8,7 @@ static struct atfork_funcs {
...
@@ -8,7 +8,7 @@ static struct atfork_funcs {
struct
atfork_funcs
*
prev
,
*
next
;
struct
atfork_funcs
*
prev
,
*
next
;
}
*
funcs
;
}
*
funcs
;
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
void
__fork_handler
(
int
who
)
void
__fork_handler
(
int
who
)
{
{
...
...
src/thread/sem_open.c
浏览文件 @
32482f61
...
@@ -20,7 +20,7 @@ static struct {
...
@@ -20,7 +20,7 @@ static struct {
sem_t
*
sem
;
sem_t
*
sem
;
int
refcnt
;
int
refcnt
;
}
*
semtab
;
}
*
semtab
;
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
#define FLAGS (O_RDWR|O_NOFOLLOW|O_CLOEXEC|O_NONBLOCK)
#define FLAGS (O_RDWR|O_NOFOLLOW|O_CLOEXEC|O_NONBLOCK)
...
...
src/thread/synccall.c
浏览文件 @
32482f61
...
@@ -14,7 +14,7 @@ static struct chain {
...
@@ -14,7 +14,7 @@ static struct chain {
sem_t
target_sem
,
caller_sem
;
sem_t
target_sem
,
caller_sem
;
}
*
volatile
head
;
}
*
volatile
head
;
static
volatile
int
synccall_lock
[
2
];
static
volatile
int
synccall_lock
[
1
];
static
volatile
int
target_tid
;
static
volatile
int
target_tid
;
static
void
(
*
callback
)(
void
*
),
*
context
;
static
void
(
*
callback
)(
void
*
),
*
context
;
static
volatile
int
dummy
=
0
;
static
volatile
int
dummy
=
0
;
...
...
src/time/__tz.c
浏览文件 @
32482f61
...
@@ -27,7 +27,7 @@ static char old_tz_buf[32];
...
@@ -27,7 +27,7 @@ static char old_tz_buf[32];
static
char
*
old_tz
=
old_tz_buf
;
static
char
*
old_tz
=
old_tz_buf
;
static
size_t
old_tz_size
=
sizeof
old_tz_buf
;
static
size_t
old_tz_size
=
sizeof
old_tz_buf
;
static
volatile
int
lock
[
2
];
static
volatile
int
lock
[
1
];
static
int
getint
(
const
char
**
p
)
static
int
getint
(
const
char
**
p
)
{
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录