=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/sock.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/cvs/Attic/sock.c 2004/11/09 20:43:22 1.7 --- src/usr.bin/cvs/Attic/sock.c 2004/12/07 17:10:56 1.8 *************** *** 1,16 **** ! /* $OpenBSD: sock.c,v 1.7 2004/11/09 20:43:22 krapht Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau ! * All rights reserved. * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. * 2. The name of the author may not be used to endorse or promote products ! * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY --- 1,16 ---- ! /* $OpenBSD: sock.c,v 1.8 2004/12/07 17:10:56 tedu Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau ! * All rights reserved. * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. * 2. The name of the author may not be used to endorse or promote products ! * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY *************** *** 21,27 **** * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ! * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include --- 21,27 ---- * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ! * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include *************** *** 46,53 **** char *cvsd_sock_path = CVSD_SOCK_PATH; - - /* daemon API */ #ifdef CVSD int cvsd_sock = -1; --- 46,51 ---- *************** *** 69,75 **** * we close it before reopening it. * Returns 0 on success, -1 on failure. */ - int cvsd_sock_open(void) { --- 67,72 ---- *************** *** 81,87 **** cvsd_sock = socket(AF_LOCAL, SOCK_STREAM, 0); if (cvsd_sock == -1) { ! cvs_log(LP_ERRNO, "failed to open socket"); return (-1); } --- 78,84 ---- cvsd_sock = socket(AF_LOCAL, SOCK_STREAM, 0); if (cvsd_sock == -1) { ! cvs_log(LP_ERRNO, "failed to open socket"); return (-1); } *************** *** 122,128 **** * * Close the local socket. */ - void cvsd_sock_close(void) { --- 119,124 ---- *************** *** 147,153 **** * no available child processes, a new one will be created unless the number * of children has attained the maximum. */ - int cvsd_sock_accept(int fd) { --- 143,148 ---- *************** *** 172,178 **** * * Open a connection to the CVS server's local socket. */ - int cvs_sock_connect(const char *path) { --- 167,172 ---- *************** *** 205,211 **** * * Disconnect from the open socket to the CVS server. */ - void cvs_sock_disconnect(void) { --- 199,204 ----