Update of /cvsroot/fink/dists/10.4-transitional/unstable/crypto/finkinfo
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7183/crypto/finkinfo
Modified Files:
libggz-crypto.info libggz-crypto.patch
Log Message:
left this out
Index: libggz-crypto.patch
===================================================================
RCS file:
/cvsroot/fink/dists/10.4-transitional/unstable/crypto/finkinfo/libggz-crypto.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- libggz-crypto.patch 25 May 2005 10:04:43 -0000 1.1
+++ libggz-crypto.patch 22 Jun 2005 16:27:23 -0000 1.2
@@ -1,6 +1,6 @@
-diff -Naur libggz-old/src/Makefile.in libggz-new/src/Makefile.in
---- libggz-old/src/Makefile.in 2005-05-21 09:36:03.000000000 -0400
-+++ libggz-new/src/Makefile.in 2005-05-25 03:16:52.000000000 -0400
+diff -Naur lib-old/src/Makefile.in lib-new/src/Makefile.in
+--- lib-old/src/Makefile.in 2005-05-21 09:36:03.000000000 -0400
++++ lib-new/src/Makefile.in 2005-06-19 12:50:08.000000000 -0400
@@ -220,7 +220,7 @@
lib_LTLIBRARIES = libggz.la
include_HEADERS = ggz.h ggz_common.h
@@ -10,3 +10,68 @@
libggz_la_SOURCES = conf.c \
easysock.c \
ggz.h \
+diff -Naur lib-old/src/easysock.c lib-new/src/easysock.c
+--- lib-old/src/easysock.c 2005-05-14 15:51:48.000000000 -0400
++++ lib-new/src/easysock.c 2005-06-19 19:08:04.000000000 -0400
+@@ -64,6 +64,7 @@
+ #include <stdarg.h>
+ #include <errno.h>
+ #include <unistd.h>
++#include <fcntl.h>
+
+ #include "ggz.h"
+
+@@ -150,6 +151,31 @@
+ return 0;
+ }
+
++int ggz_accept(const int sock) {
++ int newsock = accept(sock, NULL, NULL);
++ if (newsock < 0) {
++ if (_err_func)
++ (*_err_func) (strerror(errno), GGZ_IO_CREATE, sock,
GGZ_DATA_NONE);
++ switch (errno) {
++ case EWOULDBLOCK:
++ case ECONNABORTED:
++ case EINTR:
++ return -1;
++ default:
++ return 2;
++ }
++ } else {
++ int flags;
++ flags = fcntl(newsock, F_GETFL, 0);
++ if (flags != -1)
++ flags = fcntl(newsock, F_SETFL, flags & ~O_NONBLOCK);
++ if (flags == -1 && _err_func)
++ (*_err_func) (strerror(errno), GGZ_IO_CREATE, sock,
GGZ_DATA_NONE);
++
++ return newsock;
++ }
++}
++
+
+ static int es_bind(const char *host, int port)
+ {
+diff -Naur lib-old/src/ggz.h lib-new/src/ggz.h
+--- lib-old/src/ggz.h 2005-05-21 06:19:22.000000000 -0400
++++ lib-new/src/ggz.h 2005-06-19 17:24:13.000000000 -0400
+@@ -1311,6 +1311,18 @@
+ GGZ_SOCK_CLIENT /**< Connect to a particular port of a server. */
+ } GGZSockType;
+
++/** @brief Accept a socket connection.
++ *
++ * This function accepts a new socket connection, on an existing socket,
++ * returning the new socket connection. It ensures that the new socket is
++ * blocking.
++ *
++ * @param sock The existing socket on which to accept a connection.
++ * @return File descriptor on success, -1 on an error where the call may be
++ * retried, -2 on other error
++ */
++int ggz_accept(const int sock);
++
+ /** @brief Make a socket connection.
+ *
+ * This function makes a TCP socket connection.
Index: libggz-crypto.info
===================================================================
RCS file:
/cvsroot/fink/dists/10.4-transitional/unstable/crypto/finkinfo/libggz-crypto.info,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- libggz-crypto.info 25 May 2005 10:04:43 -0000 1.2
+++ libggz-crypto.info 22 Jun 2005 16:27:23 -0000 1.3
@@ -1,6 +1,6 @@
Package: libggz-crypto
Version: 0.0.11
-Revision: 11
+Revision: 12
Description: GGZ Gaming Zone base lib, with crypto
License: LGPL
Maintainer: Dave Vasilevsky <[EMAIL PROTECTED]>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits