Home
last modified time | relevance | path

Searched refs:_flags (Results 1 – 25 of 65) sorted by relevance

123

/glibc-2.36/libio/
Doldfileops.c104 fp->file._flags |= CLOSED_FILEBUF_FLAGS; in _IO_old_file_init_internal()
146 fp->_flags = _IO_MAGIC|CLOSED_FILEBUF_FLAGS; in _IO_old_file_close_it()
160 if (!(fp->_flags & _IO_DELETE_DONT_CLOSE)) in _IO_old_file_finish()
220 fp->_flags &= ~(_IO_NO_READS+_IO_NO_WRITES); in _IO_old_file_attach()
221 fp->_flags |= _IO_DELETE_DONT_CLOSE; in _IO_old_file_attach()
263 if (fp->_flags & _IO_IS_APPENDING) in old_do_write()
283 fp->_IO_write_end = ((fp->_flags & (_IO_LINE_BUF | _IO_UNBUFFERED)) in old_do_write()
295 if (fp->_flags & _IO_EOF_SEEN) in _IO_old_file_underflow()
298 if (fp->_flags & _IO_NO_READS) in _IO_old_file_underflow()
300 fp->_flags |= _IO_ERR_SEEN; in _IO_old_file_underflow()
[all …]
Dstrops.c77 sf->_sbf._f._flags |= _IO_NO_WRITES; in _IO_str_init_readonly()
85 if (fp->_flags & _IO_NO_WRITES) in _IO_str_overflow()
87 if ((fp->_flags & _IO_TIED_PUT_GET) && !(fp->_flags & _IO_CURRENTLY_PUTTING)) in _IO_str_overflow()
89 fp->_flags |= _IO_CURRENTLY_PUTTING; in _IO_str_overflow()
96 if (fp->_flags & _IO_USER_BUF) /* not allowed to enlarge */ in _IO_str_overflow()
148 if ((fp->_flags & _IO_TIED_PUT_GET) && (fp->_flags & _IO_CURRENTLY_PUTTING)) in libc_hidden_def()
150 fp->_flags &= ~_IO_CURRENTLY_PUTTING; in libc_hidden_def()
181 if (fp->_flags & _IO_USER_BUF) in enlarge_userbuf()
247 fp->_flags &= ~_IO_CURRENTLY_PUTTING; in _IO_str_switch_to_get_mode()
255 if (mode == 0 && (fp->_flags & _IO_TIED_PUT_GET)) in _IO_str_seekoff()
[all …]
Dfileops.c111 fp->file._flags |= CLOSED_FILEBUF_FLAGS; in _IO_new_file_init_internal()
133 if ((fp->_flags & _IO_NO_WRITES) == 0 in _IO_new_file_close_it()
134 && (fp->_flags & _IO_CURRENTLY_PUTTING) != 0) in _IO_new_file_close_it()
158 fp->_flags = _IO_MAGIC|CLOSED_FILEBUF_FLAGS; in _IO_new_file_close_it()
172 if (!(fp->_flags & _IO_DELETE_DONT_CLOSE)) in libc_hidden_ver()
365 fp->_flags &= ~(_IO_NO_READS+_IO_NO_WRITES); in libc_hidden_ver()
366 fp->_flags |= _IO_DELETE_DONT_CLOSE; in libc_hidden_ver()
433 if (fp->_flags & _IO_IS_APPENDING) in libc_hidden_ver()
454 && (fp->_flags & (_IO_LINE_BUF | _IO_UNBUFFERED)) in libc_hidden_ver()
465 if (fp->_flags & _IO_EOF_SEEN) in _IO_new_file_underflow()
[all …]
Diosetvbuf.c42 fp->_flags &= ~(_IO_LINE_BUF|_IO_UNBUFFERED); in _IO_setvbuf()
65 fp->_flags &= ~_IO_LINE_BUF; in _IO_setvbuf()
72 fp->_flags &= ~_IO_UNBUFFERED; in _IO_setvbuf()
73 fp->_flags |= _IO_LINE_BUF; in _IO_setvbuf()
81 fp->_flags &= ~_IO_LINE_BUF; in _IO_setvbuf()
82 fp->_flags |= _IO_UNBUFFERED; in _IO_setvbuf()
Dwfileops.c101 fp->_wide_data->_IO_write_end = ((fp->_flags & (_IO_LINE_BUF | _IO_UNBUFFERED)) in _IO_wdo_write()
118 if (fp->_flags & _IO_EOF_SEEN) in libc_hidden_def()
121 if (__glibc_unlikely (fp->_flags & _IO_NO_READS)) in libc_hidden_def()
123 fp->_flags |= _IO_ERR_SEEN; in libc_hidden_def()
158 fp->_flags |= _IO_ERR_SEEN; in libc_hidden_def()
179 fp->_flags &= ~_IO_IN_BACKUP; in libc_hidden_def()
196 fp->_flags &= ~_IO_IN_BACKUP; in libc_hidden_def()
202 if (fp->_flags & (_IO_LINE_BUF | _IO_UNBUFFERED)) in libc_hidden_def()
211 if ((stdout->_flags & (_IO_LINKED | _IO_NO_WRITES | _IO_LINE_BUF)) in libc_hidden_def()
236 fp->_flags |= _IO_EOF_SEEN; in libc_hidden_def()
[all …]
Dgenops.c54 if (fp->file._flags & _IO_LINKED) in _IO_un_link()
74 fp->file._flags &= ~_IO_LINKED; in _IO_un_link()
88 if ((fp->file._flags & _IO_LINKED) == 0) in libc_hidden_def()
90 fp->file._flags |= _IO_LINKED; in libc_hidden_def()
130 fp->_flags &= ~_IO_IN_BACKUP; in _IO_switch_to_main_get_area()
149 fp->_flags |= _IO_IN_BACKUP; in _IO_switch_to_backup_area()
180 fp->_flags &= ~_IO_CURRENTLY_PUTTING; in _IO_switch_to_get_mode()
330 if (f->_IO_buf_base && !(f->_flags & _IO_USER_BUF)) in libc_hidden_def()
335 f->_flags &= ~_IO_USER_BUF; in libc_hidden_def()
337 f->_flags |= _IO_USER_BUF; in libc_hidden_def()
[all …]
Dwstrops.c74 if (fp->_flags & _IO_NO_WRITES) in _IO_wstr_overflow()
76 if ((fp->_flags & _IO_TIED_PUT_GET) && !(fp->_flags & _IO_CURRENTLY_PUTTING)) in _IO_wstr_overflow()
78 fp->_flags |= _IO_CURRENTLY_PUTTING; in _IO_wstr_overflow()
145 if ((fp->_flags & _IO_TIED_PUT_GET) && (fp->_flags & _IO_CURRENTLY_PUTTING)) in _IO_wstr_underflow()
147 fp->_flags &= ~_IO_CURRENTLY_PUTTING; in _IO_wstr_underflow()
251 fp->_flags &= ~_IO_CURRENTLY_PUTTING; in _IO_wstr_switch_to_get_mode()
259 if (mode == 0 && (fp->_flags & _IO_TIED_PUT_GET)) in _IO_wstr_seekoff()
260 mode = (fp->_flags & _IO_CURRENTLY_PUTTING ? _IOS_OUTPUT : _IOS_INPUT); in _IO_wstr_seekoff()
350 if ((fp->_flags & _IO_NO_WRITES) && c != WEOF) in _IO_wstr_pbackfail()
Diofgetws_u.c50 old_error = fp->_flags & _IO_ERR_SEEN; in fgetws_unlocked()
51 fp->_flags &= ~_IO_ERR_SEEN; in fgetws_unlocked()
55 if (count == 0 || ((fp->_flags & _IO_ERR_SEEN) && errno != EAGAIN)) in fgetws_unlocked()
62 fp->_flags |= old_error; in fgetws_unlocked()
Diofgets_u.c50 old_error = fp->_flags & _IO_ERR_SEEN; in __fgets_unlocked()
51 fp->_flags &= ~_IO_ERR_SEEN; in __fgets_unlocked()
55 if (count == 0 || ((fp->_flags & _IO_ERR_SEEN) && errno != EAGAIN)) in __fgets_unlocked()
62 fp->_flags |= old_error; in __fgets_unlocked()
Diogets.c51 int old_error = stdin->_flags & _IO_ERR_SEEN; in _IO_gets()
52 stdin->_flags &= ~_IO_ERR_SEEN; in _IO_gets()
55 if (stdin->_flags & _IO_ERR_SEEN) in _IO_gets()
61 stdin->_flags |= old_error; in _IO_gets()
Diofgets.c51 old_error = fp->_flags & _IO_ERR_SEEN; in _IO_fgets()
52 fp->_flags &= ~_IO_ERR_SEEN; in _IO_fgets()
56 if (count == 0 || ((fp->_flags & _IO_ERR_SEEN) && errno != EAGAIN)) in _IO_fgets()
63 fp->_flags |= old_error; in _IO_fgets()
D__fsetlocking.c25 int result = ((fp->_flags & _IO_USER_LOCK) in __fsetlocking()
30 fp->_flags &= ~_IO_USER_LOCK; in __fsetlocking()
32 fp->_flags |= _IO_USER_LOCK; in __fsetlocking()
Diofgetws.c51 old_error = fp->_flags & _IO_ERR_SEEN; in fgetws()
52 fp->_flags &= ~_IO_ERR_SEEN; in fgetws()
63 fp->_flags |= old_error; in fgetws()
Doldiofclose.c49 if (fp->_flags & _IO_IS_FILEBUF) in _IO_old_fclose()
53 if (fp->_flags & _IO_IS_FILEBUF) in _IO_old_fclose()
56 status = fp->_flags & _IO_ERR_SEEN ? -1 : 0; in _IO_old_fclose()
Diofclose.c48 if (fp->_flags & _IO_IS_FILEBUF) in _IO_new_fclose()
52 if (fp->_flags & _IO_IS_FILEBUF) in _IO_new_fclose()
55 status = fp->_flags & _IO_ERR_SEEN ? -1 : 0; in _IO_new_fclose()
D__freading.c23 return ((fp->_flags & _IO_NO_WRITES) in __freading()
24 || ((fp->_flags & (_IO_CURRENTLY_PUTTING | _IO_NO_READS)) == 0 in __freading()
Dwgenops.c56 fp->_flags &= ~_IO_IN_BACKUP; in libc_hidden_def()
76 fp->_flags |= _IO_IN_BACKUP; in libc_hidden_def()
368 if (!(fp->_flags & _IO_UNBUFFERED)) in libc_hidden_def()
409 fp->_flags &= ~_IO_CURRENTLY_PUTTING; in libc_hidden_def()
506 fp->_flags &= ~_IO_EOF_SEEN; in _IO_sputbackwc()
526 fp->_flags &= ~_IO_EOF_SEEN; in libc_hidden_def()
/glibc-2.36/debug/
Dfgets_u_chk.c42 int old_error = fp->_flags & _IO_ERR_SEEN; in __fgets_unlocked_chk()
43 fp->_flags &= ~_IO_ERR_SEEN; in __fgets_unlocked_chk()
47 if (count == 0 || ((fp->_flags & _IO_ERR_SEEN) && errno != EAGAIN)) in __fgets_unlocked_chk()
56 fp->_flags |= old_error; in __fgets_unlocked_chk()
Dfgets_chk.c43 int old_error = fp->_flags & _IO_ERR_SEEN; in __fgets_chk()
44 fp->_flags &= ~_IO_ERR_SEEN; in __fgets_chk()
48 if (count == 0 || ((fp->_flags & _IO_ERR_SEEN) && errno != EAGAIN)) in __fgets_chk()
57 fp->_flags |= old_error; in __fgets_chk()
Dfgetws_u_chk.c43 old_error = fp->_flags & _IO_ERR_SEEN; in __fgetws_unlocked_chk()
44 fp->_flags &= ~_IO_ERR_SEEN; in __fgetws_unlocked_chk()
48 if (count == 0 || ((fp->_flags & _IO_ERR_SEEN) && errno != EAGAIN)) in __fgetws_unlocked_chk()
57 fp->_flags |= old_error; in __fgetws_unlocked_chk()
Dgets_chk.c54 int old_error = stdin->_flags & _IO_ERR_SEEN; in __gets_chk()
55 stdin->_flags &= ~_IO_ERR_SEEN; in __gets_chk()
58 if (stdin->_flags & _IO_ERR_SEEN) in __gets_chk()
64 stdin->_flags |= old_error; in __gets_chk()
Dfgetws_chk.c35 old_error = fp->_flags & _IO_ERR_SEEN; in __fgetws_chk()
36 fp->_flags &= ~_IO_ERR_SEEN; in __fgetws_chk()
49 fp->_flags |= old_error; in __fgetws_chk()
/glibc-2.36/include/
Dstdio_ext.h9 ({ int __result = ((fp->_flags & _IO_USER_LOCK) \
14 fp->_flags &= ~_IO_USER_LOCK; \
16 fp->_flags |= _IO_USER_LOCK; \
/glibc-2.36/libio/bits/types/
Dstruct_FILE.h51 int _flags; /* High-order word is _IO_MAGIC; rest is flags. */ member
112 #define __feof_unlocked_body(_fp) (((_fp)->_flags & _IO_EOF_SEEN) != 0)
115 #define __ferror_unlocked_body(_fp) (((_fp)->_flags & _IO_ERR_SEEN) != 0)
/glibc-2.36/resolv/
Dns_parse.c61 return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift); in ns_msg_getflag()
102 NS_GET16(handle->_flags, msg); in libresolv_hidden_def()

123