All of lore.kernel.org
 help / color / mirror / Atom feed
* Issue in man page regex.3
@ 2023-01-22 19:31 Helge Kreutzmann
  2023-01-22 20:32 ` Alejandro Colomar
  0 siblings, 1 reply; 10+ messages in thread
From: Helge Kreutzmann @ 2023-01-22 19:31 UTC (permalink / raw)
  To: alx.manpages; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    null-terminated → NUL-terminated

"B<regexec>()  is used to match a null-terminated string against the "
"precompiled pattern buffer, I<preg>.  I<nmatch> and I<pmatch> are used to "
"provide information regarding the location of any matches.  I<eflags> is the "
"bitwise-B<or> of zero or more of the following flags:"

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Issue in man page regex.3
@ 2023-01-22 19:31 Helge Kreutzmann
  0 siblings, 0 replies; 10+ messages in thread
From: Helge Kreutzmann @ 2023-01-22 19:31 UTC (permalink / raw)
  To: alx.manpages; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    null byte → NUL byte

"B<regerror>()  is passed the error code, I<errcode>, the pattern buffer, "
"I<preg>, a pointer to a character string buffer, I<errbuf>, and the size of "
"the string buffer, I<errbuf_size>.  It returns the size of the I<errbuf> "
"required to contain the null-terminated error message string.  If both "
"I<errbuf> and I<errbuf_size> are nonzero, I<errbuf> is filled in with the "
"first I<errbuf_size - 1> characters of the error message and a terminating "
"null byte (\\(aq\\e0\\(aq)."

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Issue in man page regex.3
@ 2023-01-22 19:31 Helge Kreutzmann
  2023-01-22 21:03 ` Alejandro Colomar
  0 siblings, 1 reply; 10+ messages in thread
From: Helge Kreutzmann @ 2023-01-22 19:31 UTC (permalink / raw)
  To: alx.manpages; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    How can a variable (I<preg>) free memory? Isn't it B<regfree>() which frees the memory?

"Supplying B<regfree>()  with a precompiled pattern buffer, I<preg> will free "
"the memory allocated to the pattern buffer by the compiling process, "
"B<regcomp>()."

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Issue in man page regex.3
@ 2023-03-11 17:13 Helge Kreutzmann
  0 siblings, 0 replies; 10+ messages in thread
From: Helge Kreutzmann @ 2023-03-11 17:13 UTC (permalink / raw)
  To: alx.manpages; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    null byte → NUL byte

"B<regerror>()  is passed the error code, I<errcode>, the pattern buffer, "
"I<preg>, a pointer to a character string buffer, I<errbuf>, and the size of "
"the string buffer, I<errbuf_size>.  It returns the size of the I<errbuf> "
"required to contain the null-terminated error message string.  If both "
"I<errbuf> and I<errbuf_size> are nonzero, I<errbuf> is filled in with the "
"first I<errbuf_size - 1> characters of the error message and a terminating "
"null byte (\\[aq]\\e0\\[aq])."

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Issue in man page regex.3
@ 2025-08-24 14:48 Helge Kreutzmann
  0 siblings, 0 replies; 10+ messages in thread
From: Helge Kreutzmann @ 2025-08-24 14:48 UTC (permalink / raw)
  To: alx; +Cc: mario.blaettermann, linux-man

Without further ado, the following was found:

Issue:    B<…>size_t errbuf_size → B<…size_t> I<errbuf_size>

"B<size_t regerror(>size_t errbuf_size;\n"
"B<            int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n"
"B<            char >I<errbuf>B<[_Nullable restrict >I<errbuf_size>B<],>\n"
"B<            size_t >I<errbuf_size>B<);>\n"
"B<void regfree(regex_t *>I<preg>B<);>\n"

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

end of thread, other threads:[~2025-08-24 14:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-22 19:31 Issue in man page regex.3 Helge Kreutzmann
2023-01-22 20:32 ` Alejandro Colomar
  -- strict thread matches above, loose matches on Subject: below --
2023-01-22 19:31 Helge Kreutzmann
2023-01-22 19:31 Helge Kreutzmann
2023-01-22 21:03 ` Alejandro Colomar
2023-01-23 17:47   ` Helge Kreutzmann
2023-01-23 19:03     ` G. Branden Robinson
2023-01-23 20:14       ` Helge Kreutzmann
2023-03-11 17:13 Helge Kreutzmann
2025-08-24 14:48 Helge Kreutzmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.