pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/dgd
Module Name: pkgsrc
Committed By: nia
Date: Fri Oct 11 07:02:12 UTC 2024
Modified Files:
pkgsrc/net/dgd: distinfo
Added Files:
pkgsrc/net/dgd/patches: patch-src_host_unix_connect.c
Log Message:
dgd: Use standard spelling of FNDELAY.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/net/dgd/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/net/dgd/patches/patch-src_host_unix_connect.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/dgd/distinfo
diff -u pkgsrc/net/dgd/distinfo:1.10 pkgsrc/net/dgd/distinfo:1.11
--- pkgsrc/net/dgd/distinfo:1.10 Tue Oct 26 11:05:30 2021
+++ pkgsrc/net/dgd/distinfo Fri Oct 11 07:02:12 2024
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 11:05:30 nia Exp $
+$NetBSD: distinfo,v 1.11 2024/10/11 07:02:12 nia Exp $
BLAKE2s (dgd-1.2p4.tar.gz) = 34c027ef9828ec946adeb793963ca55d9cc9688c64eb6ffaaaca3fcd31dd2497
SHA512 (dgd-1.2p4.tar.gz) = 1182eab4b9683a8b070f2a5c22b3bd30c82d4662a614f63d48d840794a0e68072f0446614e2023eaa106ab827c7ca7555f875f9cb9f1495246791fba1fe753fd
Size (dgd-1.2p4.tar.gz) = 472205 bytes
SHA1 (patch-aa) = 9253e211eb82fb06ea7771e2dbd37d9c53ea1435
SHA1 (patch-src-ed-fileio.c) = 0da31dfd142e4ad98f942029e2f1b8c4ff95dd96
+SHA1 (patch-src_host_unix_connect.c) = 49987470f478416099bb3fcad4d5628d88221874
Added files:
Index: pkgsrc/net/dgd/patches/patch-src_host_unix_connect.c
diff -u /dev/null pkgsrc/net/dgd/patches/patch-src_host_unix_connect.c:1.1
--- /dev/null Fri Oct 11 07:02:12 2024
+++ pkgsrc/net/dgd/patches/patch-src_host_unix_connect.c Fri Oct 11 07:02:12 2024
@@ -0,0 +1,48 @@
+$NetBSD: patch-src_host_unix_connect.c,v 1.1 2024/10/11 07:02:12 nia Exp $
+
+Use standard spelling of FNDELAY.
+
+--- src/host/unix/connect.c.orig 2024-10-11 07:00:06.908535425 +0000
++++ src/host/unix/connect.c
+@@ -3,8 +3,10 @@
+ # include <netinet/in.h>
+ # include <arpa/inet.h>
+ # include <netdb.h>
++# include <fcntl.h>
+ # include <signal.h>
+ # include <errno.h>
++# include <unistd.h>
+ # define INCLUDE_FILE_IO
+ # include "dgd.h"
+ # include "comm.h"
+@@ -507,9 +509,9 @@ void conn_listen()
+ {
+ if (listen(telnet, 64) < 0 || listen(binary, 64) < 0) {
+ perror("listen");
+- } else if (fcntl(telnet, F_SETFL, FNDELAY) < 0 ||
+- fcntl(binary, F_SETFL, FNDELAY) < 0 ||
+- fcntl(udp, F_SETFL, FNDELAY) < 0) {
++ } else if (fcntl(telnet, F_SETFL, O_NONBLOCK) < 0 ||
++ fcntl(binary, F_SETFL, O_NONBLOCK) < 0 ||
++ fcntl(udp, F_SETFL, O_NONBLOCK) < 0) {
+ perror("fcntl");
+ } else {
+ return;
+@@ -535,7 +537,7 @@ connection *conn_tnew()
+ if (fd < 0) {
+ return (connection *) NULL;
+ }
+- fcntl(fd, F_SETFL, FNDELAY);
++ fcntl(fd, F_SETFL, O_NONBLOCK);
+
+ conn = flist;
+ flist = conn->next;
+@@ -572,7 +574,7 @@ connection *conn_bnew()
+ if (fd < 0) {
+ return (connection *) NULL;
+ }
+- fcntl(fd, F_SETFL, FNDELAY);
++ fcntl(fd, F_SETFL, O_NONBLOCK);
+
+ conn = flist;
+ flist = conn->next;
Home |
Main Index |
Thread Index |
Old Index