Fri Feb 17 17:00:03 2017 UTC ()
Add missing includes.


(joerg)
diff -r1.15 -r1.16 pkgsrc/comms/modemd/distinfo
diff -r1.6 -r1.7 pkgsrc/comms/modemd/patches/patch-ab
diff -r0 -r1.1 pkgsrc/comms/modemd/patches/patch-common_lock.c

cvs diff -r1.15 -r1.16 pkgsrc/comms/modemd/distinfo (expand / switch to unified diff)

--- pkgsrc/comms/modemd/distinfo 2015/11/07 23:26:34 1.15
+++ pkgsrc/comms/modemd/distinfo 2017/02/17 17:00:03 1.16
@@ -1,31 +1,32 @@ @@ -1,31 +1,32 @@
1$NetBSD: distinfo,v 1.15 2015/11/07 23:26:34 dholland Exp $ 1$NetBSD: distinfo,v 1.16 2017/02/17 17:00:03 joerg Exp $
2 2
3SHA1 (modemd-970221.tar.gz) = 104f8e596f711e349203b2da8c4f2ecf40d490c3 3SHA1 (modemd-970221.tar.gz) = 104f8e596f711e349203b2da8c4f2ecf40d490c3
4RMD160 (modemd-970221.tar.gz) = ade5d735e5fd07b91006cf1334a41a43dca7e3d9 4RMD160 (modemd-970221.tar.gz) = ade5d735e5fd07b91006cf1334a41a43dca7e3d9
5SHA512 (modemd-970221.tar.gz) = 33a6581f595a2a5ca6d8beb475e93cb3e933127fe84b50d6e22aad39bd34f55c69b3d0e90e9fb81671ce22f8939b52e51576d6d352d633c9c66b1726c832e129 5SHA512 (modemd-970221.tar.gz) = 33a6581f595a2a5ca6d8beb475e93cb3e933127fe84b50d6e22aad39bd34f55c69b3d0e90e9fb81671ce22f8939b52e51576d6d352d633c9c66b1726c832e129
6Size (modemd-970221.tar.gz) = 56093 bytes 6Size (modemd-970221.tar.gz) = 56093 bytes
7SHA1 (patch-aa) = 093d70c98c5fa21f3c5fff8dc5092ca0afa365ef 7SHA1 (patch-aa) = 093d70c98c5fa21f3c5fff8dc5092ca0afa365ef
8SHA1 (patch-ab) = 9e797451de1de1e3515562281d9ae8e16f2c0de6 8SHA1 (patch-ab) = 27c0aeae8cc541a3a601f1ab0982f2a7f1c720b4
9SHA1 (patch-ac) = fe3898ea85204631e31c49a8872855c0e7c09e9d 9SHA1 (patch-ac) = fe3898ea85204631e31c49a8872855c0e7c09e9d
10SHA1 (patch-ad) = f18d3ffe0658ef2709eb28d342b31361b86b1b0b 10SHA1 (patch-ad) = f18d3ffe0658ef2709eb28d342b31361b86b1b0b
11SHA1 (patch-ae) = 44e38979c686f66a22e3fd3b027cb9129b6266ba 11SHA1 (patch-ae) = 44e38979c686f66a22e3fd3b027cb9129b6266ba
12SHA1 (patch-af) = c438c7ddaa223ae5bdb5b4fd11c5d6304eec4008 12SHA1 (patch-af) = c438c7ddaa223ae5bdb5b4fd11c5d6304eec4008
13SHA1 (patch-ag) = 3505bf5b749288de673970ea95ab3196669feca9 13SHA1 (patch-ag) = 3505bf5b749288de673970ea95ab3196669feca9
14SHA1 (patch-ah) = 9294419cd64c3b5cc9ebadc3a4c135a0a969262d 14SHA1 (patch-ah) = 9294419cd64c3b5cc9ebadc3a4c135a0a969262d
15SHA1 (patch-ai) = 8e81c1e522979f616f2f4aafd5dd65400a6330fa 15SHA1 (patch-ai) = 8e81c1e522979f616f2f4aafd5dd65400a6330fa
16SHA1 (patch-aj) = 2837ce9ac377aa6b4f7a8c96f63ff80fcdee9b17 16SHA1 (patch-aj) = 2837ce9ac377aa6b4f7a8c96f63ff80fcdee9b17
17SHA1 (patch-ak) = 0d60a615020abad77dae56d783667e49112593e5 17SHA1 (patch-ak) = 0d60a615020abad77dae56d783667e49112593e5
18SHA1 (patch-al) = 13259e7c330aecd800cf108eec292d23c6d369b7 18SHA1 (patch-al) = 13259e7c330aecd800cf108eec292d23c6d369b7
19SHA1 (patch-am) = d740f41abf89f760431f32ca7ffa25bf1b3bd4e1 19SHA1 (patch-am) = d740f41abf89f760431f32ca7ffa25bf1b3bd4e1
20SHA1 (patch-an) = d86fb2d227fb8b4c246e8655f0f3e28806f46bea 20SHA1 (patch-an) = d86fb2d227fb8b4c246e8655f0f3e28806f46bea
21SHA1 (patch-ao) = 64271c0955600d1ad9bc7f4c74273a537d33f71c 21SHA1 (patch-ao) = 64271c0955600d1ad9bc7f4c74273a537d33f71c
22SHA1 (patch-ap) = d5a8dfe6fe162879a1a3185aaa55596df579c47f 22SHA1 (patch-ap) = d5a8dfe6fe162879a1a3185aaa55596df579c47f
23SHA1 (patch-aq) = 5653ce5b0251b6d3fb35972869c8fb6eabae77cb 23SHA1 (patch-aq) = 5653ce5b0251b6d3fb35972869c8fb6eabae77cb
24SHA1 (patch-ar) = ae25a728c094f94a992b625fd405daedd096c5fd 24SHA1 (patch-ar) = ae25a728c094f94a992b625fd405daedd096c5fd
25SHA1 (patch-as) = 5ac081a2200b72321973004803d15dd3b9d387b3 25SHA1 (patch-as) = 5ac081a2200b72321973004803d15dd3b9d387b3
26SHA1 (patch-cf_sunos4.h) = efe0b9c58ad20247cbc313c1569f9d0be8901d14 26SHA1 (patch-cf_sunos4.h) = efe0b9c58ad20247cbc313c1569f9d0be8901d14
27SHA1 (patch-common_dialog.c) = 2dd6fadd2a83eede976d63e15364650955cf9cca 27SHA1 (patch-common_dialog.c) = 2dd6fadd2a83eede976d63e15364650955cf9cca
 28SHA1 (patch-common_lock.c) = 9812865d1f75c387273285d278b729ee53c7139d
28SHA1 (patch-incoming_login.c) = 62784076e0ac1e23e2e7a6f8c248f3e1fa6b6293 29SHA1 (patch-incoming_login.c) = 62784076e0ac1e23e2e7a6f8c248f3e1fa6b6293
29SHA1 (patch-outgoing_tn.c) = 133c714eb6d33912f6edfcd12034b3155707d701 30SHA1 (patch-outgoing_tn.c) = 133c714eb6d33912f6edfcd12034b3155707d701
30SHA1 (patch-outgoing_tnstate.c) = 7ecc5645e2b4d854a784a7a52487fbef024fa51a 31SHA1 (patch-outgoing_tnstate.c) = 7ecc5645e2b4d854a784a7a52487fbef024fa51a
31SHA1 (patch-outgoing_tnutil.c) = ef8b3f32a6e491d6fa56ba3a8f8c4ee64a368cc9 32SHA1 (patch-outgoing_tnutil.c) = ef8b3f32a6e491d6fa56ba3a8f8c4ee64a368cc9

cvs diff -r1.6 -r1.7 pkgsrc/comms/modemd/patches/patch-ab (expand / switch to unified diff)

--- pkgsrc/comms/modemd/patches/patch-ab 2013/09/10 14:15:11 1.6
+++ pkgsrc/comms/modemd/patches/patch-ab 2017/02/17 17:00:03 1.7
@@ -1,99 +1,100 @@ @@ -1,99 +1,100 @@
1$NetBSD: patch-ab,v 1.6 2013/09/10 14:15:11 joerg Exp $ 1$NetBSD: patch-ab,v 1.7 2017/02/17 17:00:03 joerg Exp $
2 2
3--- common/ttio.c.orig 1997-02-21 23:06:09.000000000 +0000 3--- common/ttio.c.orig 1997-02-21 23:06:09.000000000 +0000
4+++ common/ttio.c 4+++ common/ttio.c
5@@ -45,12 +45,20 @@ static char copyright[] = 5@@ -45,12 +45,21 @@ static char copyright[] =
6 #include "osdep.h" 6 #include "osdep.h"
7 #include "cdefs.h" 7 #include "cdefs.h"
8 #include "global.h" 8 #include "global.h"
9+#include <ctype.h> 9+#include <ctype.h>
10 #include <stdio.h> 10 #include <stdio.h>
11 #include <fcntl.h> 11 #include <fcntl.h>
12 #include <syslog.h> 12 #include <syslog.h>
13 #include "mcap.h" 13 #include "mcap.h"
14 #include "ttio.h" 14 #include "ttio.h"
15 #include <pwd.h> 15 #include <pwd.h>
16+#include <stdlib.h> 16+#include <stdlib.h>
 17+#include <sys/stat.h>
17+#include <sys/ioctl.h> 18+#include <sys/ioctl.h>
18+#ifndef __sun 19+#ifndef __sun
19+#include <util.h> 20+#include <util.h>
20+#else 21+#else
21+#include <sys/file.h> 22+#include <sys/file.h>
22+#endif 23+#endif
23  24
24 static void dectl PROTO ((char *, int, char *, int, char *)); 25 static void dectl PROTO ((char *, int, char *, int, char *));
25  26
26@@ -73,6 +81,16 @@ int ttsetup (name) 27@@ -73,6 +82,16 @@ int ttsetup (name)
27 { 28 {
28 if (chown (nbuf, pw -> pw_uid, pw -> pw_gid) < 0) 29 if (chown (nbuf, pw -> pw_uid, pw -> pw_gid) < 0)
29 warn ("Can't set owner on %s: %m", nbuf); 30 warn ("Can't set owner on %s: %m", nbuf);
30+#ifdef __NetBSD__ 31+#ifdef __NetBSD__
31+ if (chmod (nbuf, 0600) < 0) 32+ if (chmod (nbuf, 0600) < 0)
32+ warn ("Can't set mode on %s: %m", nbuf); 33+ warn ("Can't set mode on %s: %m", nbuf);
33+ revoke(nbuf); 34+ revoke(nbuf);
34+ if (ttyaction(nbuf, "modemd", "root")) 35+ if (ttyaction(nbuf, "modemd", "root"))
35+ warn ("Can't ttyaction %s: %m", nbuf); 36+ warn ("Can't ttyaction %s: %m", nbuf);
36+ 37+
37+ /* delay open so DTR stays down long enough to be detected */ 38+ /* delay open so DTR stays down long enough to be detected */
38+ usleep(100); 39+ usleep(100);
39+#endif 40+#endif
40 } 41 }
41  42
42 /* Open the terminal device. */ 43 /* Open the terminal device. */
43@@ -131,20 +149,19 @@ int ttsetup (name) 44@@ -131,20 +150,19 @@ int ttsetup (name)
44 return fd; 45 return fd;
45 } 46 }
46  47
47-void ttnormal (fd) 48-void ttnormal (fd)
48+void ttnormal (int fd) 49+void ttnormal (int fd)
49 { 50 {
50 NORMAL_TTY (ts); 51 NORMAL_TTY (ts);
51 PUT_TTY_STATE (fd, ts); 52 PUT_TTY_STATE (fd, ts);
52 } 53 }
53  54
54-void tthupcl (fd) 55-void tthupcl (fd)
55+void tthupcl (int fd) 56+void tthupcl (int fd)
56 { 57 {
57 HUPCL_TTY (ts); 58 HUPCL_TTY (ts);
58 PUT_TTY_STATE (fd, ts); 59 PUT_TTY_STATE (fd, ts);
59 } 60 }
60  61
61-void redirect_std (fd) 62-void redirect_std (fd)
62- int fd; 63- int fd;
63+void redirect_std (int fd) 64+void redirect_std (int fd)
64 { 65 {
65 int i; 66 int i;
66  67
67@@ -203,10 +220,8 @@ static int tteof = 0; 68@@ -203,10 +221,8 @@ static int tteof = 0;
68  69
69 /* Match the specified string with input from the specified tty. 70 /* Match the specified string with input from the specified tty.
70 Return nonzero if input matches, zero if not. */ 71 Return nonzero if input matches, zero if not. */
71-ttmatch (ANSI_DECL (int) tty, ANSI_DECL (int) timeout, VA_DOTDOTDOT) 72-ttmatch (ANSI_DECL (int) tty, ANSI_DECL (int) timeout, VA_DOTDOTDOT)
72- KandR (int tty;) 73- KandR (int tty;)
73- KandR (int timeout;) 74- KandR (int timeout;)
74- va_dcl 75- va_dcl
75+int 76+int
76+ttmatch (int tty, int timeout, ...) 77+ttmatch (int tty, int timeout, ...)
77 { 78 {
78 TIME entry, now, to; 79 TIME entry, now, to;
79 int cur, curmatch, next; 80 int cur, curmatch, next;
80@@ -230,7 +245,7 @@ ttmatch (ANSI_DECL (int) tty, ANSI_DECL  81@@ -230,7 +246,7 @@ ttmatch (ANSI_DECL (int) tty, ANSI_DECL
81 match, try reading some more data from the tty... */ 82 match, try reading some more data from the tty... */
82 matchID = 1; 83 matchID = 1;
83 VA_start (list, timeout); 84 VA_start (list, timeout);
84- while (string = va_arg (list, char *)) 85- while (string = va_arg (list, char *))
85+ while ((string = va_arg (list, char *))) 86+ while ((string = va_arg (list, char *)))
86 { 87 {
87 syslog (LOG_DEBUG, "Matching against %s", string); 88 syslog (LOG_DEBUG, "Matching against %s", string);
88 for (cur = ttstart; cur != ttend; cur = NEXT (cur)) 89 for (cur = ttstart; cur != ttend; cur = NEXT (cur))
89@@ -316,9 +331,7 @@ ttmatch (ANSI_DECL (int) tty, ANSI_DECL  90@@ -316,9 +332,7 @@ ttmatch (ANSI_DECL (int) tty, ANSI_DECL
90 } 91 }
91  92
92 /* Read a connect speed from standard in... */ 93 /* Read a connect speed from standard in... */
93-ttread_connect_speed (tty, timeout) 94-ttread_connect_speed (tty, timeout)
94- int tty; 95- int tty;
95- int timeout; 96- int timeout;
96+int ttread_connect_speed (int tty, int timeout) 97+int ttread_connect_speed (int tty, int timeout)
97 { 98 {
98 TIME entry, now, to; 99 TIME entry, now, to;
99 int status; 100 int status;

File Added: pkgsrc/comms/modemd/patches/patch-common_lock.c
$NetBSD: patch-common_lock.c,v 1.1 2017/02/17 17:00:03 joerg Exp $

--- common/lock.c.orig	2017-02-17 16:09:19.801857592 +0000
+++ common/lock.c
@@ -47,6 +47,7 @@ static char copyright[] =
 #include <stdio.h>
 #include <fcntl.h>
 #include <syslog.h>
+#include <sys/stat.h>
 #include "mcap.h"
 #include "ttio.h"