Skip to contentSkip to conversation

make consistent example in recv.2

PATCH In review Peter Radisson 3 participants 4 messages Mar 27, 2025 – Apr 1, 2025 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make consistent example in recv.2

Replace 0 with NULL als in the example a few lines above

---
 man2/recv.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/recv.2 +1 -1
index ba17d03a3..21f65e86f 100644
@@ -325,7 +325,7 @@ socket (see
 .BR connect (2)).
 It is equivalent to the call:
 .PP
-    recvfrom(fd, buf, len, flags, NULL, 0);
+    recvfrom(fd, buf, len, flags, NULL, NULL);
 .\"
 .SS recvmsg()
 The

--
2.35.3

Reviewed-by on v1 1/1
#1 lore raw
Quoted 21 lines · Peter Radisson

Replace 0 with NULL als in the example a few lines above

---
  man2/recv.2 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
man2/recv.2 +1 -1
index ba17d03a3..21f65e86f 100644
@@ -325,7 +325,7 @@ socket (see
  .BR connect (2)).
  It is equivalent to the call:
  .PP
-    recvfrom(fd, buf, len, flags, NULL, 0);
+    recvfrom(fd, buf, len, flags, NULL, NULL);
  .\"
  .SS recvmsg()
  The
Signature · 1 line
2.35.3

Agreed. They are both pointers. It should be "NULL, NULL". It should also match the text under DESCRIPTION.

LGTM.

Signature · 2 lines
Cheers,
Carlos.
#2 lore raw

Hi Peter, Carlos,

Quoted 3 lines · Carlos O'Donell
Quoted 2 lines · Peter Radisson

Replace 0 with NULL als in the example a few lines above

Thanks! I've applied the patch.

Although, I had to do it manually. It seems you have an old copy of the repository; you should pull the contents.

warning: Patch sent with format=flowed; space at the end of lines might be lost.
Applying: make consistent example in recv.2
error: man2/recv.2: does not exist in index
Patch failed at 0001 make consistent example in recv.2
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"

Quoted 4 lines
Quoted 4 lines
---
  man2/recv.2 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 8 lines

man2/recv.2 socket (see · line 327

Quoted 8 lines
man2/recv.2 +0 -0
index ba17d03a3..21f65e86f 100644
@@ -325,7 +325,7 @@ socket (see
  .BR connect (2)).
  It is equivalent to the call:
  .PP

This context was changed in
1ae6b2c7b818 (2022-03-20; "Many pages: Fix style issues reported by make lint-groff")

Quoted 8 lines
Quoted 7 lines
man2/recv.2 +1 -1
-    recvfrom(fd, buf, len, flags, NULL, 0);
+    recvfrom(fd, buf, len, flags, NULL, NULL);
  .\"
  .SS recvmsg()
  The
Signature · 1 line
2.35.3
Quoted 6 lines

Agreed. They are both pointers. It should be "NULL, NULL". It should also match the text under DESCRIPTION.

LGTM.

Thanks! I've appended your R-b tag.

Have a lovely day!
Alex

P.S.: Please use <[email protected]>. I don't use my @gmail account
anymore.

Signature · 1 line
<https://www.alejandro-colomar.es/>
#3 lore raw

Am 29.03.25 um 19:30 schrieb Alejandro Colomar:

Quoted 12 lines

Hi Peter, Carlos,

Quoted 3 lines · Carlos O'Donell
Quoted 2 lines · Peter Radisson

Replace 0 with NULL als in the example a few lines above

Thanks! I've applied the patch.

Although, I had to do it manually. It seems you have an old copy of the repository; you should pull the contents.

This was not intentional
i have just checked my source was
https://git.kernel.org/pub/scm/docs/man-pages/man-pages
but it seems i was accidently on the wrong branch

Quoted 50 lines

warning: Patch sent with format=flowed; space at the end of lines might be lost.
Applying: make consistent example in recv.2
error: man2/recv.2: does not exist in index
Patch failed at 0001 make consistent example in recv.2
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"

Quoted 4 lines
Quoted 4 lines
---
   man2/recv.2 | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 8 lines

man2/recv.2 socket (see · line 327

Quoted 8 lines
man2/recv.2 +0 -0
index ba17d03a3..21f65e86f 100644
@@ -325,7 +325,7 @@ socket (see
   .BR connect (2)).
   It is equivalent to the call:
   .PP

This context was changed in
1ae6b2c7b818 (2022-03-20; "Many pages: Fix style issues reported by make lint-groff")

Quoted 8 lines
Quoted 7 lines
man2/recv.2 +1 -2
-    recvfrom(fd, buf, len, flags, NULL, 0);
+    recvfrom(fd, buf, len, flags, NULL, NULL);
   .\"
   .SS recvmsg()
   The
--

2.35.3

Quoted 6 lines

Agreed. They are both pointers. It should be "NULL, NULL". It should also match the text under DESCRIPTION.

LGTM.

Thanks! I've appended your R-b tag.

Have a lovely day!
Alex

P.S.: Please use <[email protected]>. I don't use my @gmail account
anymore.