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.man.txt
          +++ new/usr/src/man/man3socket/connect.3socket.man.txt
↓ open down ↓ 176 lines elided ↑ open up ↑
 177  177                     assert(pe.portev_source == PORT_SOURCE_FD);
 178  178                     assert(pe.portev_object == (uintptr_t)sock);
 179  179                     if (getsockopt(sock, SOL_SOCKET, SO_ERROR, &err, &sz) != 0) {
 180  180                          perror("getsockopt");
 181  181                          (void) close(sock);
 182  182                          (void) close(eport);
 183  183                          return (1);
 184  184                     }
 185  185                     if (err != 0) {
 186  186                          /* Asynch connect failed */
 187      -                        fprintf(stderr, "asnchronous connect: %s\n",
      187 +                        fprintf(stderr, "asynchronous connect: %s\n",
 188  188                              strerror(err));
 189  189                          (void) close(sock);
 190  190                          (void) close(eport);
 191  191                          return (1);
 192  192                     }
 193  193                }
 194  194  
 195  195                /* Read and write to the socket and then clean up */
 196  196  
 197  197                return (0);
↓ open down ↓ 155 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX