Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
git-mirror
/
glibc
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security
Insights
Files
82e87e0
abilist
aout
argp
assert
bits
c_stubs
catgets
conf
conform
crypt
csu
ctype
debug
dirent
dlfcn
elf
fedora
gmon
gnulib
grp
gshadow
hesiod
hurd
iconv
iconvdata
include
inet
intl
io
libidn
libio
bits
Depend
Makefile
Versions
__fbufsize.c
__flbf.c
__fpending.c
__fpurge.c
__freadable.c
__freading.c
__fsetlocking.c
__fwritable.c
__fwriting.c
bug-fopena+.c
bug-fseek.c
bug-ftell.c
bug-memstream1.c
bug-mmap-fflush.c
bug-rewind.c
bug-rewind2.c
bug-ungetc.c
bug-ungetc2.c
bug-ungetc3.c
bug-ungetc4.c
bug-ungetwc1.c
bug-ungetwc2.c
bug-wfflush.c
bug-wmemstream1.c
bug-wsetpos.c
clearerr.c
clearerr_u.c
fcloseall.c
feof.c
feof_u.c
ferror.c
ferror_u.c
filedoalloc.c
fileno.c
fileops.c
fmemopen.c
fputc.c
fputc_u.c
fputwc.c
fputwc_u.c
freopen.c
freopen64.c
fseek.c
fseeko.c
fseeko64.c
ftello.c
ftello64.c
fwide.c
fwprintf.c
fwscanf.c
genops.c
getc.c
getc_u.c
getchar.c
getchar_u.c
getwc.c
getwc_u.c
getwchar.c
getwchar_u.c
iofclose.c
iofdopen.c
iofflush.c
iofflush_u.c
iofgetpos.c
iofgetpos64.c
iofgets.c
iofgets_u.c
iofgetws.c
iofgetws_u.c
iofopen.c
iofopen64.c
iofopncook.c
iofputs.c
iofputs_u.c
iofputws.c
iofputws_u.c
iofread.c
iofread_u.c
iofsetpos.c
iofsetpos64.c
ioftell.c
iofwide.c
iofwrite.c
iofwrite_u.c
iogetdelim.c
iogetline.c
iogets.c
iogetwline.c
iolibio.h
iopadn.c
iopopen.c
ioputs.c
ioseekoff.c
ioseekpos.c
iosetbuffer.c
iosetvbuf.c
ioungetc.c
ioungetwc.c
iovdprintf.c
iovsprintf.c
iovsscanf.c
iovswscanf.c
iowpadn.c
libc_fatal.c
libio.h
libioP.h
memstream.c
obprintf.c
oldfileops.c
oldiofclose.c
oldiofdopen.c
oldiofgetpos.c
oldiofgetpos64.c
oldiofopen.c
oldiofsetpos.c
oldiofsetpos64.c
oldiopopen.c
oldpclose.c
oldstdfiles.c
oldtmpfile.c
pclose.c
peekc.c
putc.c
putc_u.c
putchar.c
putchar_u.c
putwc.c
putwc_u.c
putwchar.c
putwchar_u.c
rewind.c
setbuf.c
setlinebuf.c
stdfiles.c
stdio.c
stdio.h
strfile.h
strops.c
swprintf.c
swscanf.c
test-fmemopen.c
test-freopen.c
test-freopen.sh
tst-atime.c
tst-eof.c
tst-ext.c
tst-ext2.c
tst-fgetwc.c
tst-fgetwc.input
tst-fgetws.c
tst-fopenloc.c
tst-fopenloc2.c
tst-freopen.c
tst-memstream1.c
tst-memstream2.c
tst-mmap-eofsync.c
tst-mmap-fflushsync.c
tst-mmap-offend.c
tst-mmap-setvbuf.c
tst-mmap2-eofsync.c
tst-popen1.c
tst-setvbuf1.c
tst-sscanf.c
tst-swscanf.c
tst-ungetwc1.c
tst-ungetwc2.c
tst-widetext.c
tst-widetext.input
tst-wmemstream1.c
tst-wmemstream2.c
tst_getwc.c
tst_getwc.input
tst_putwc.c
tst_swprintf.c
tst_swscanf.c
tst_wprintf.c
tst_wprintf2.c
tst_wscanf.c
tst_wscanf.input
vasprintf.c
vscanf.c
vsnprintf.c
vswprintf.c
vwprintf.c
vwscanf.c
wfiledoalloc.c
wfileops.c
wgenops.c
wmemstream.c
wprintf.c
wscanf.c
wstrops.c
locale
localedata
login
mach
malloc
manual
math
misc
nis
nptl
nptl_db
nscd
nss
po
posix
pwd
resolv
resource
rt
rtkaio
scripts
setjmp
shadow
signal
socket
soft-fp
stdio-common
stdlib
streams
string
sunrpc
sysdeps
sysvipc
termios
time
timezone
wcsmbs
wctype
.gitignore
BUGS
CANCEL-FCT-WAIVE
CANCEL-FILE-WAIVE
CONFORMANCE
COPYING
COPYING.LIB
ChangeLog
ChangeLog.1
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.13
ChangeLog.14
ChangeLog.15
ChangeLog.16
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
FAQ
FAQ.in
INSTALL
LICENSES
Makeconfig
Makefile
Makefile.in
Makerules
NAMESPACE
NEWS
NOTES
PROJECTS
README
README.libm
Rules
Versions.def
WUR-REPORT
abi-tags
aclocal.m4
config-name.in
config.h.in
config.make.in
configure
configure.in
cppflags-iterator.mk
extra-lib.mk
extra-modules.mk
o-iterator.mk
shlib-versions
test-skeleton.c
tls.make.c
version.h
Breadcrumbs
glibc
/
libio
/
Makefile
Copy path
Blame
Blame
Latest commit
History
History
187 lines (162 loc) · 6.88 KB
Breadcrumbs
glibc
/
libio
/
Makefile
Top
File metadata and controls
Code
Blame
187 lines (162 loc) · 6.88 KB
Raw
# Copyright (C) 1995-2004,2006,2007,2008,2009 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # The GNU C Library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # You should have received a copy of the GNU Lesser General Public # License along with the GNU C Library; if not, write to the Free # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA # 02111-1307 USA. # # Specific makefile for libio. # subdir := libio headers := stdio.h libio.h _G_config.h bits/stdio.h bits/stdio-lock.h \ bits/sys_errlist.h bits/stdio2.h bits/stdio-ldbl.h bits/libio-ldbl.h routines := \ filedoalloc iofclose iofdopen iofflush iofgetpos iofgets iofopen \ iofopncook iofputs iofread iofsetpos ioftell wfiledoalloc \ iofwrite iogetdelim iogetline iogets iopadn iopopen ioputs \ ioseekoff ioseekpos iosetbuffer iosetvbuf ioungetc \ iovsprintf iovsscanf \ iofgetpos64 iofopen64 iofsetpos64 \ fputwc fputwc_u getwc getwc_u getwchar getwchar_u iofgetws iofgetws_u \ iofputws iofputws_u iogetwline iowpadn ioungetwc putwc putwc_u \ putwchar putwchar_u putchar putchar_u fwprintf swprintf vwprintf \ wprintf wscanf fwscanf vwscanf vswprintf iovswscanf swscanf wgenops \ wstrops wfileops iofwide fwide wmemstream \ \ clearerr feof ferror fileno fputc freopen fseek getc getchar \ memstream pclose putc putchar rewind setbuf setlinebuf vasprintf \ iovdprintf vscanf vsnprintf obprintf fcloseall fseeko ftello \ freopen64 fseeko64 ftello64 \ \ __fbufsize __freading __fwriting __freadable __fwritable __flbf \ __fpurge __fpending __fsetlocking \ \ libc_fatal fmemopen tests = tst_swprintf tst_wprintf tst_swscanf tst_wscanf tst_getwc tst_putwc \ tst_wprintf2 tst-widetext test-fmemopen tst-ext tst-ext2 tst-fopenloc \ tst-fgetws tst-ungetwc1 tst-ungetwc2 tst-swscanf tst-sscanf \ tst-mmap-setvbuf bug-ungetwc1 bug-ungetwc2 tst-atime tst-eof \ tst-freopen bug-rewind bug-rewind2 bug-ungetc bug-fseek \ tst-mmap-eofsync tst-mmap-fflushsync bug-mmap-fflush \ tst-mmap2-eofsync tst-mmap-offend bug-fopena+ bug-wfflush \ bug-ungetc2 bug-ftell bug-ungetc3 bug-ungetc4 tst-fopenloc2 \ tst-memstream1 tst-memstream2 \ tst-wmemstream1 tst-wmemstream2 \ bug-memstream1 bug-wmemstream1 \ tst-setvbuf1 tst-popen1 tst-fgetwc bug-wsetpos test-srcs = test-freopen all: # Make this the default target; it will be defined in Rules. include ../Makeconfig ifeq ($(versioning),yes) routines += oldiofopen oldiofdopen oldiofclose oldiopopen oldpclose \ oldtmpfile oldiofgetpos oldiofgetpos64 oldiofsetpos \ oldiofsetpos64 endif ifneq (,$(filter %REENTRANT, $(defines))) routines += clearerr_u feof_u ferror_u fputc_u getc_u getchar_u \ iofflush_u putc_u putchar_u peekc iofread_u iofwrite_u iofgets_u \ iofputs_u CPPFLAGS += -D_IO_MTSAFE_IO endif # Support for exception handling. CFLAGS-fileops.c = $(exceptions) CFLAGS-fputc.c = $(exceptions) CFLAGS-fputwc.c = $(exceptions) CFLAGS-freopen64.c = $(exceptions) CFLAGS-freopen.c = $(exceptions) CFLAGS-fseek.c = $(exceptions) CFLAGS-fseeko64.c = $(exceptions) CFLAGS-fseeko.c = $(exceptions) CFLAGS-ftello64.c = $(exceptions) CFLAGS-ftello.c = $(exceptions) CFLAGS-fwide.c = $(exceptions) CFLAGS-genops.c = $(exceptions) CFLAGS-getc.c = $(exceptions) CFLAGS-getchar.c = $(exceptions) CFLAGS-getwc.c = $(exceptions) CFLAGS-getwchar.c = $(exceptions) CFLAGS-iofclose.c = $(exceptions) CFLAGS-iofflush.c = $(exceptions) CFLAGS-iofgetpos64.c = $(exceptions) CFLAGS-iofgetpos.c = $(exceptions) CFLAGS-iofgets.c = $(exceptions) CFLAGS-iofgetws.c = $(exceptions) CFLAGS-iofputs.c = $(exceptions) CFLAGS-iofputws.c = $(exceptions) CFLAGS-iofread.c = $(exceptions) CFLAGS-iofsetpos64.c = $(exceptions) CFLAGS-iofsetpos.c = $(exceptions) CFLAGS-ioftell.c = $(exceptions) CFLAGS-iofwrite.c = $(exceptions) CFLAGS-iogetdelim.c = $(exceptions) CFLAGS-iogetline.c = $(exceptions) CFLAGS-iogets.c = $(exceptions) CFLAGS-iogetwline.c = $(exceptions) CFLAGS-ioputs.c = $(exceptions) CFLAGS-ioseekoff.c = $(exceptions) CFLAGS-ioseekpos.c = $(exceptions) CFLAGS-iosetbuffer.c = $(exceptions) CFLAGS-iosetvbuf.c = $(exceptions) CFLAGS-ioungetc.c = $(exceptions) CFLAGS-ioungetwc.c = $(exceptions) CFLAGS-oldfileops.c = $(exceptions) CFLAGS-oldiofclose.c = $(exceptions) CFLAGS-oldiofgetpos64.c = $(exceptions) CFLAGS-oldiofgetpos.c = $(exceptions) CFLAGS-oldiofsetpos64.c = $(exceptions) CFLAGS-oldiofsetpos.c = $(exceptions) CFLAGS-peekc.c = $(exceptions) CFLAGS-putc.c = $(exceptions) CFLAGS-putchar.c = $(exceptions) CFLAGS-putwc.c = $(exceptions) CFLAGS-putwchar.c = $(exceptions) CFLAGS-rewind.c = $(exceptions) CFLAGS-wfileops.c = $(exceptions) CFLAGS-wgenops.c = $(exceptions) CFLAGS-oldiofopen.c = $(exceptions) CFLAGS-iofopen.c = $(exceptions) CFLAGS-iofopen64.c = $(exceptions) CFLAGS-oldtmpfile.c = $(exceptions) # XXX Do we need filedoalloc and wfiledoalloc? Others? CFLAGS-tst_putwc.c = -DOBJPFX=\"$(objpfx)\" tst_wprintf2-ARGS = "Some Text" tst-widetext-ENV = LOCPATH=$(common-objpfx)localedata LANGUAGE=C tst-fopenloc-ENV = LOCPATH=$(common-objpfx)localedata \ MALLOC_TRACE=$(objpfx)tst-fopenloc.mtrace tst-fgetws-ENV = LOCPATH=$(common-objpfx)localedata tst-ungetwc1-ENV = LOCPATH=$(common-objpfx)localedata tst-ungetwc2-ENV = LOCPATH=$(common-objpfx)localedata bug-ungetwc2-ENV = LOCPATH=$(common-objpfx)localedata tst-swscanf-ENV = LOCPATH=$(common-objpfx)localedata bug-ftell-ENV = LOCPATH=$(common-objpfx)localedata tst-fgetwc-ENV = LOCPATH=$(common-objpfx)localedata generated = tst-fopenloc.mtrace tst-fopenloc.check aux := fileops genops stdfiles stdio strops ifeq ($(versioning),yes) aux += oldfileops oldstdfiles endif shared-only-routines = oldiofopen oldiofdopen oldiofclose oldfileops \ oldstdfiles oldiopopen oldpclose oldtmpfile \ oldiofgetpos oldiofgetpos64 oldiofsetpos \ oldiofsetpos64 distribute := iolibio.h libioP.h strfile.h Banner test-freopen.sh \ fd_to_filename.h include ../Rules ifeq (no,$(cross-compiling)) tests: $(objpfx)test-freopen.out $(objpfx)tst-fopenloc.check endif $(objpfx)test-freopen.out: test-freopen.sh $(objpfx)test-freopen $(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)' \ $(common-objpfx)libio/ $(objpfx)tst-fopenloc.check: $(objpfx)tst-fopenloc.out cmp ../iconvdata/testdata/ISO-8859-1..UTF8 $(objpfx)tst-fopenloc.out \ > $@ $(common-objpfx)malloc/mtrace $(objpfx)tst-fopenloc.mtrace >> $@
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
You can’t perform that action at this time.