Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
stdio
/
ofl_add.c
blob: d7de9f15a13ee3fc5f7118ce35dea64bb65cbd5d [
file
] [
log
] [
blame
]
Rich Felker
1b0cdc8
2015-06-16 07:11:19 +0000
[
diff
] [
blame
]
1
#include
"stdio_impl.h"
2
3
FILE
*
__ofl_add
(
FILE
*
f
)
4
{
5
FILE
**
head
=
__ofl_lock
();
6
f
->
next
=
*
head
;
7
if
(*
head
)
(*
head
)->
prev
=
f
;
8
*
head
=
f
;
9
__ofl_unlock
();
10
return
f
;
11
}