Time:06-09
CodePudding user response:
of The user space
see CRT source is not just a matter of,
Quote: refer to the third floor apkipa1 response: see CRT source is not just a matter of, oh, forgot to say on Linux, CRT is Microsoft, on Ubuntu, or you have online?
Quote: reference qiushui, 4/f, qiushui response: Quote: refer to the third floor apkipa1 response: see CRT source is not just a matter of, oh, forgot to say on Linux, CRT is Microsoft, on Ubuntu, or you have online? The glibc source code search on the net, or do you want to see other versions of the C run-time library code, too,
Quote: refer to 1st floor lin5161678 response: of User space how to prove that
of User space
Quote: refer to the fifth floor apkipa1 reply: Quote: reference qiushui, 4/f, qiushui response: Quote: refer to the third floor apkipa1 response: see CRT source is not just a matter of, oh, forgot to say on Linux, CRT is Microsoft, on Ubuntu, or you have online? The glibc source code search on the net, or do you want to see other versions of the C run-time library code, too, https://code.woboq.org/userspace/glibc/stdio-common/vfprintf-internal.c.html Line 2299, there was a 8192 - byte array buf, this is about the buffer on the stack?
int _IO_default_doallocate (fp) FILE * {Char * buf. Buf=malloc (BUFSIZ);// heap memory If (__glibc_unlikely (buf==NULL)) return EOF; _IO_setb (fp, buf, buf + BUFSIZ, 1); return 1; }
Void _IO_setb (FILE * f, char * b, char * eb, int a) {If (f - & gt; _IO_buf_base & amp; & ! (f - & gt; _flags & amp; _IO_USER_BUF)) Free (f - & gt; _IO_buf_base); F - & gt; _IO_buf_base=b; F - & gt; _IO_buf_end=eb; If (a) F - & gt; _flags & amp;=~ _IO_USER_BUF; The else F - & gt; _flags |=_IO_USER_BUF; }
Page link:https//www.codepudding.com/Backend/112884.html