public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] stdio.3: note down fmemopen(3) and fopencookie(3)
@ 2023-12-26 15:31 наб
  2023-12-26 16:02 ` [PATCH v2] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3) наб
  0 siblings, 1 reply; 9+ messages in thread
From: наб @ 2023-12-26 15:31 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 698 bytes --]

I was looking for fmemopen and it was much more difficult than it
ought to've been.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
 man3/stdio.3 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/man3/stdio.3 b/man3/stdio.3
index 833230402..d340d3334 100644
--- a/man3/stdio.3
+++ b/man3/stdio.3
@@ -192,9 +192,15 @@ .SS List of functions
 \fBfileno\fP(3)	T{
 return the integer descriptor of the argument stream
 T}
+\fBfmemopen\fP(3)	T{
+open memory as stream
+T}
 \fBfopen\fP(3)	T{
 stream open functions
 T}
+\fBfopencookie\fP(3)	T{
+opening a custom stream
+T}
 \fBfprintf\fP(3)	T{
 formatted output conversion
 T}
-- 
2.39.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3)
  2023-12-26 15:31 [PATCH] stdio.3: note down fmemopen(3) and fopencookie(3) наб
@ 2023-12-26 16:02 ` наб
  2023-12-26 16:03   ` [PATCH v3] " наб
  0 siblings, 1 reply; 9+ messages in thread
From: наб @ 2023-12-26 16:02 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

I was looking for fmemopen to remember I was actually looking for
open_memstream, and it was much more difficult than it ought to've been.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
 man3/stdio.3 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/man3/stdio.3 b/man3/stdio.3
index 833230402..d340d3334 100644
--- a/man3/stdio.3
+++ b/man3/stdio.3
@@ -192,9 +192,15 @@ .SS List of functions
 \fBfileno\fP(3)	T{
 return the integer descriptor of the argument stream
 T}
+\fBfmemopen\fP(3)	T{
+open memory as stream
+T}
 \fBfopen\fP(3)	T{
 stream open functions
 T}
+\fBfopencookie\fP(3)	T{
+opening a custom stream
+T}
 \fBfprintf\fP(3)	T{
 formatted output conversion
 T}
-- 
2.39.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v3] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3)
  2023-12-26 16:02 ` [PATCH v2] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3) наб
@ 2023-12-26 16:03   ` наб
  2023-12-28 19:06     ` Alejandro Colomar
  2023-12-28 20:14     ` [PATCH v3] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3) Alejandro Colomar
  0 siblings, 2 replies; 9+ messages in thread
From: наб @ 2023-12-26 16:03 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

I was looking for fmemopen to remember I was actually looking for
open_memstream, and it was much more difficult than it ought to've been.

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
Sorry for the v3 for some reason I didn't amend the commit
(blame it on the holiday cheer).

 man3/stdio.3 | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/man3/stdio.3 b/man3/stdio.3
index 833230402..0809b4536 100644
--- a/man3/stdio.3
+++ b/man3/stdio.3
@@ -192,9 +192,15 @@ .SS List of functions
 \fBfileno\fP(3)	T{
 return the integer descriptor of the argument stream
 T}
+\fBfmemopen\fP(3)	T{
+open memory as stream
+T}
 \fBfopen\fP(3)	T{
 stream open functions
 T}
+\fBfopencookie\fP(3)	T{
+opening a custom stream
+T}
 \fBfprintf\fP(3)	T{
 formatted output conversion
 T}
@@ -243,6 +249,12 @@ .SS List of functions
 \fBmktemp\fP(3)	T{
 make temporary filename (unique)
 T}
+\fBopen_memstream\fP(3)	T{
+open a dynamic memory buffer stream
+T}
+\fBopen_wmemstream\fP(3)	T{
+open a dynamic memory buffer stream
+T}
 \fBperror\fP(3)	T{
 system error messages
 T}
-- 
2.39.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v3] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3)
  2023-12-26 16:03   ` [PATCH v3] " наб
@ 2023-12-28 19:06     ` Alejandro Colomar
  2023-12-28 19:28       ` наб
  2023-12-28 20:14     ` [PATCH v3] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3) Alejandro Colomar
  1 sibling, 1 reply; 9+ messages in thread
From: Alejandro Colomar @ 2023-12-28 19:06 UTC (permalink / raw)
  To: наб; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]

Hey,

On Tue, Dec 26, 2023 at 05:03:37PM +0100, наб wrote:
> I was looking for fmemopen to remember I was actually looking for
> open_memstream, and it was much more difficult than it ought to've been.
> 
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
> ---
> Sorry for the v3 for some reason I didn't amend the commit
> (blame it on the holiday cheer).
> 
>  man3/stdio.3 | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/man3/stdio.3 b/man3/stdio.3
> index 833230402..0809b4536 100644
> --- a/man3/stdio.3
> +++ b/man3/stdio.3
> @@ -192,9 +192,15 @@ .SS List of functions
>  \fBfileno\fP(3)	T{
>  return the integer descriptor of the argument stream
>  T}
> +\fBfmemopen\fP(3)	T{
> +open memory as stream
> +T}
>  \fBfopen\fP(3)	T{
>  stream open functions
>  T}
> +\fBfopencookie\fP(3)	T{
> +opening a custom stream

Why use opening here, but open everywhere else?

Have a lovely Christmas!
Alex

> +T}
>  \fBfprintf\fP(3)	T{
>  formatted output conversion
>  T}
> @@ -243,6 +249,12 @@ .SS List of functions
>  \fBmktemp\fP(3)	T{
>  make temporary filename (unique)
>  T}
> +\fBopen_memstream\fP(3)	T{
> +open a dynamic memory buffer stream
> +T}
> +\fBopen_wmemstream\fP(3)	T{
> +open a dynamic memory buffer stream
> +T}
>  \fBperror\fP(3)	T{
>  system error messages
>  T}
> -- 
> 2.39.2



-- 
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v3] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3)
  2023-12-28 19:06     ` Alejandro Colomar
@ 2023-12-28 19:28       ` наб
  2023-12-28 20:10         ` Alejandro Colomar
  0 siblings, 1 reply; 9+ messages in thread
From: наб @ 2023-12-28 19:28 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]

On Thu, Dec 28, 2023 at 08:06:14PM +0100, Alejandro Colomar wrote:
> On Tue, Dec 26, 2023 at 05:03:37PM +0100, наб wrote:
> > @@ -243,6 +249,12 @@ .SS List of functions
> >  \fBmktemp\fP(3)	T{
> >  make temporary filename (unique)
> >  T}
> > +\fBopen_memstream\fP(3)	T{
> > +open a dynamic memory buffer stream
> > +T}
> > +\fBopen_wmemstream\fP(3)	T{
> > +open a dynamic memory buffer stream
> > +T}
> >  \fBperror\fP(3)	T{
> >  system error messages
> >  T}
> > @@ -192,9 +192,15 @@ .SS List of functions
> >  \fBfileno\fP(3)	T{
> >  return the integer descriptor of the argument stream
> >  T}
> > +\fBfmemopen\fP(3)	T{
> > +open memory as stream
> > +T}
> >  \fBfopen\fP(3)	T{
> >  stream open functions
> >  T}
> > +\fBfopencookie\fP(3)	T{
> > +opening a custom stream
> Why use opening here, but open everywhere else?
These are the NAMEs verbatim, like the fopen entry:
  $ grep -A1 NAME man3/{fopen,fopencookie,fmemopen,open_memstream}.3
  man3/fopen.3:.SH NAME
  man3/fopen.3-fopen, fdopen, freopen \- stream open functions
  --
  man3/fopencookie.3:.SH NAME
  man3/fopencookie.3-fopencookie \- opening a custom stream
  --
  man3/fmemopen.3:.SH NAME
  man3/fmemopen.3-fmemopen \-  open memory as stream
  --
  man3/open_memstream.3:.SH NAME
  man3/open_memstream.3-open_memstream, open_wmemstream \- open a dynamic memory buffer stream

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v3] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3)
  2023-12-28 19:28       ` наб
@ 2023-12-28 20:10         ` Alejandro Colomar
  2023-12-29 13:39           ` [PATCH] fopencookie.3, stdio.3: wfix наб
  0 siblings, 1 reply; 9+ messages in thread
From: Alejandro Colomar @ 2023-12-28 20:10 UTC (permalink / raw)
  To: наб; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 999 bytes --]

On Thu, Dec 28, 2023 at 08:28:22PM +0100, наб wrote:
> On Thu, Dec 28, 2023 at 08:06:14PM +0100, Alejandro Colomar wrote:
> > On Tue, Dec 26, 2023 at 05:03:37PM +0100, наб wrote:
> > Why use opening here, but open everywhere else?
> These are the NAMEs verbatim, like the fopen entry:

Makes sense.  Would you mind fixing the NAMEs too in another patch?  :-)

Cheers,
Alex

>   $ grep -A1 NAME man3/{fopen,fopencookie,fmemopen,open_memstream}.3
>   man3/fopen.3:.SH NAME
>   man3/fopen.3-fopen, fdopen, freopen \- stream open functions
>   --
>   man3/fopencookie.3:.SH NAME
>   man3/fopencookie.3-fopencookie \- opening a custom stream
>   --
>   man3/fmemopen.3:.SH NAME
>   man3/fmemopen.3-fmemopen \-  open memory as stream
>   --
>   man3/open_memstream.3:.SH NAME
>   man3/open_memstream.3-open_memstream, open_wmemstream \- open a dynamic memory buffer stream



-- 
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v3] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3)
  2023-12-26 16:03   ` [PATCH v3] " наб
  2023-12-28 19:06     ` Alejandro Colomar
@ 2023-12-28 20:14     ` Alejandro Colomar
  1 sibling, 0 replies; 9+ messages in thread
From: Alejandro Colomar @ 2023-12-28 20:14 UTC (permalink / raw)
  To: наб; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 1455 bytes --]

On Tue, Dec 26, 2023 at 05:03:37PM +0100, наб wrote:
> I was looking for fmemopen to remember I was actually looking for
> open_memstream, and it was much more difficult than it ought to've been.
> 
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>

Patch applied.  Thanks.

Cheers,
Alex

> ---
> Sorry for the v3 for some reason I didn't amend the commit
> (blame it on the holiday cheer).
> 
>  man3/stdio.3 | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/man3/stdio.3 b/man3/stdio.3
> index 833230402..0809b4536 100644
> --- a/man3/stdio.3
> +++ b/man3/stdio.3
> @@ -192,9 +192,15 @@ .SS List of functions
>  \fBfileno\fP(3)	T{
>  return the integer descriptor of the argument stream
>  T}
> +\fBfmemopen\fP(3)	T{
> +open memory as stream
> +T}
>  \fBfopen\fP(3)	T{
>  stream open functions
>  T}
> +\fBfopencookie\fP(3)	T{
> +opening a custom stream
> +T}
>  \fBfprintf\fP(3)	T{
>  formatted output conversion
>  T}
> @@ -243,6 +249,12 @@ .SS List of functions
>  \fBmktemp\fP(3)	T{
>  make temporary filename (unique)
>  T}
> +\fBopen_memstream\fP(3)	T{
> +open a dynamic memory buffer stream
> +T}
> +\fBopen_wmemstream\fP(3)	T{
> +open a dynamic memory buffer stream
> +T}
>  \fBperror\fP(3)	T{
>  system error messages
>  T}
> -- 
> 2.39.2



-- 
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] fopencookie.3, stdio.3: wfix
  2023-12-28 20:10         ` Alejandro Colomar
@ 2023-12-29 13:39           ` наб
  2023-12-29 13:52             ` Alejandro Colomar
  0 siblings, 1 reply; 9+ messages in thread
From: наб @ 2023-12-29 13:39 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 893 bytes --]

Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
 man3/fopencookie.3 | 2 +-
 man3/stdio.3       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/man3/fopencookie.3 b/man3/fopencookie.3
index 93b4abf0c..d1821772c 100644
--- a/man3/fopencookie.3
+++ b/man3/fopencookie.3
@@ -6,7 +6,7 @@
 .\"
 .TH fopencookie 3 (date) "Linux man-pages (unreleased)"
 .SH NAME
-fopencookie \- opening a custom stream
+fopencookie \- open a custom stream
 .SH LIBRARY
 Standard C library
 .RI ( libc ", " \-lc )
diff --git a/man3/stdio.3 b/man3/stdio.3
index 0809b4536..a76b77546 100644
--- a/man3/stdio.3
+++ b/man3/stdio.3
@@ -199,7 +199,7 @@ .SS List of functions
 stream open functions
 T}
 \fBfopencookie\fP(3)	T{
-opening a custom stream
+open a custom stream
 T}
 \fBfprintf\fP(3)	T{
 formatted output conversion
-- 
2.39.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] fopencookie.3, stdio.3: wfix
  2023-12-29 13:39           ` [PATCH] fopencookie.3, stdio.3: wfix наб
@ 2023-12-29 13:52             ` Alejandro Colomar
  0 siblings, 0 replies; 9+ messages in thread
From: Alejandro Colomar @ 2023-12-29 13:52 UTC (permalink / raw)
  To: наб; +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 1158 bytes --]

On Fri, Dec 29, 2023 at 02:39:25PM +0100, наб wrote:
> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>

Patch applied.  Thanks!

Alex

> ---
>  man3/fopencookie.3 | 2 +-
>  man3/stdio.3       | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/man3/fopencookie.3 b/man3/fopencookie.3
> index 93b4abf0c..d1821772c 100644
> --- a/man3/fopencookie.3
> +++ b/man3/fopencookie.3
> @@ -6,7 +6,7 @@
>  .\"
>  .TH fopencookie 3 (date) "Linux man-pages (unreleased)"
>  .SH NAME
> -fopencookie \- opening a custom stream
> +fopencookie \- open a custom stream
>  .SH LIBRARY
>  Standard C library
>  .RI ( libc ", " \-lc )
> diff --git a/man3/stdio.3 b/man3/stdio.3
> index 0809b4536..a76b77546 100644
> --- a/man3/stdio.3
> +++ b/man3/stdio.3
> @@ -199,7 +199,7 @@ .SS List of functions
>  stream open functions
>  T}
>  \fBfopencookie\fP(3)	T{
> -opening a custom stream
> +open a custom stream
>  T}
>  \fBfprintf\fP(3)	T{
>  formatted output conversion
> -- 
> 2.39.2



-- 
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-12-29 13:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-26 15:31 [PATCH] stdio.3: note down fmemopen(3) and fopencookie(3) наб
2023-12-26 16:02 ` [PATCH v2] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3) наб
2023-12-26 16:03   ` [PATCH v3] " наб
2023-12-28 19:06     ` Alejandro Colomar
2023-12-28 19:28       ` наб
2023-12-28 20:10         ` Alejandro Colomar
2023-12-29 13:39           ` [PATCH] fopencookie.3, stdio.3: wfix наб
2023-12-29 13:52             ` Alejandro Colomar
2023-12-28 20:14     ` [PATCH v3] stdio.3: note down fmemopen(3), fopencookie(3), and open_[w]memstream(3) Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox