Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3socket/connect.3socket
          +++ new/usr/src/man/man3socket/connect.3socket
↓ open down ↓ 181 lines elided ↑ open up ↑
 182  182                  assert(pe.portev_source == PORT_SOURCE_FD);
 183  183                  assert(pe.portev_object == (uintptr_t)sock);
 184  184                  if (getsockopt(sock, SOL_SOCKET, SO_ERROR, &err, &sz) != 0) {
 185  185                          perror("getsockopt");
 186  186                          (void) close(sock);
 187  187                          (void) close(eport);
 188  188                          return (1);
 189  189                  }
 190  190                  if (err != 0) {
 191  191                          /* Asynch connect failed */
 192      -                        fprintf(stderr, "asnchronous connect: %s\\n",
      192 +                        fprintf(stderr, "asynchronous connect: %s\\n",
 193  193                              strerror(err));
 194  194                          (void) close(sock);
 195  195                          (void) close(eport);
 196  196                          return (1);
 197  197                  }
 198  198          }
 199  199  
 200  200          /* Read and write to the socket and then clean up */
 201  201  
 202  202          return (0);
↓ open down ↓ 271 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX