Skip to contentSkip to conversation

socket.2: DOMAIN's are defined in <bits/socket.h> not <sys/socket.h>

PATCH Michael Kerrisk (man-pages) 1 participant 1 message Mar 30, 2020 2 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

man2/socket.2 The · line 67

Quoted 13 lines · Anvar Nasar
man2/socket.2 +1 -1
index 0b3b90bb8..3c4f025d2 100644
@@ -61,7 +61,7 @@ The
  argument specifies a communication domain; this selects the protocol
  family which will be used for communication.
  These families are defined in
-.IR <sys/socket.h> .
+.IR <bits/socket.h> .
  The formats currently understood by the Linux kernel include:
  .TS
  tab(:);

<bits/socket.h> is included by <sys/socket.h>. <sys/socket.h> is the standards-compliant way of getting the definitions.

Thanks,

Michael

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/