pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/emulators/tme
Module Name: pkgsrc
Committed By: rin
Date: Wed Mar 4 07:52:11 UTC 2020
Modified Files:
pkgsrc/emulators/tme: Makefile distinfo
pkgsrc/emulators/tme/patches: patch-machine_sun2_SUN2-MULTIBUS
patch-machine_sun3_SUN3-CARRERA patch-machine_sun4_SUN4-75
patch-machine_sun4u_SUN-ULTRA-1
Added Files:
pkgsrc/emulators/tme/files: bsd-tap.c
pkgsrc/emulators/tme/patches: patch-host_bsd_Makefile.am
patch-host_bsd_Makefile.in
Log Message:
Add tap(4) support for *BSD, written by kiyohara@.
The patch was proposed on some mailing lists back in 2013, but
unfortunately, left uncommitted until today:
https://mail-index.netbsd.org/port-sparc64/2013/01/29/msg001951.html
It works perfectly for me on NetBSD/amd64 for sun[23].
Bump revision.
To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 pkgsrc/emulators/tme/Makefile
cvs rdiff -u -r1.23 -r1.24 pkgsrc/emulators/tme/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/tme/files/bsd-tap.c
cvs rdiff -u -r0 -r1.1 \
pkgsrc/emulators/tme/patches/patch-host_bsd_Makefile.am \
pkgsrc/emulators/tme/patches/patch-host_bsd_Makefile.in
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/emulators/tme/patches/patch-machine_sun2_SUN2-MULTIBUS \
pkgsrc/emulators/tme/patches/patch-machine_sun3_SUN3-CARRERA \
pkgsrc/emulators/tme/patches/patch-machine_sun4_SUN4-75 \
pkgsrc/emulators/tme/patches/patch-machine_sun4u_SUN-ULTRA-1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/emulators/tme/Makefile
diff -u pkgsrc/emulators/tme/Makefile:1.72 pkgsrc/emulators/tme/Makefile:1.73
--- pkgsrc/emulators/tme/Makefile:1.72 Fri Dec 6 05:38:02 2019
+++ pkgsrc/emulators/tme/Makefile Wed Mar 4 07:52:11 2020
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.72 2019/12/06 05:38:02 mrg Exp $
+# $NetBSD: Makefile,v 1.73 2020/03/04 07:52:11 rin Exp $
#
DISTNAME= tme-0.8
-PKGREVISION= 39
+PKGREVISION= 40
CATEGORIES= emulators
MASTER_SITES= http://csail.mit.edu/~fredette/tme/
@@ -40,6 +40,9 @@ PLIST_VARS+= bsd
PLIST.bsd= yes
.endif
+post-extract:
+ ${CP} ${FILESDIR}/bsd-tap.c ${WRKSRC}/host/bsd
+
.include "../../devel/libltdl/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
Index: pkgsrc/emulators/tme/distinfo
diff -u pkgsrc/emulators/tme/distinfo:1.23 pkgsrc/emulators/tme/distinfo:1.24
--- pkgsrc/emulators/tme/distinfo:1.23 Wed Nov 4 03:33:39 2015
+++ pkgsrc/emulators/tme/distinfo Wed Mar 4 07:52:11 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.23 2015/11/04 03:33:39 dholland Exp $
+$NetBSD: distinfo,v 1.24 2020/03/04 07:52:11 rin Exp $
SHA1 (tme-0.8.tar.gz) = dd4f3421c20ceed548c5328a21dbb26e80f46b9c
RMD160 (tme-0.8.tar.gz) = 6bd505c5fa7810d37f436883383c4ba655df2ded
@@ -10,6 +10,8 @@ SHA1 (patch-ac) = ba581f10ec54b056564a7a
SHA1 (patch-ad) = e90986262fe9d883ae64fe01dfb4ae07bde6a916
SHA1 (patch-ae) = cfcea636744991c6eef84ea34ca78d40eb01c086
SHA1 (patch-af) = cd3ffe52d4d75d05394ca74c3f69052bfdc41989
+SHA1 (patch-host_bsd_Makefile.am) = db0add22732e95b18886877a92e57e1a19d3099f
+SHA1 (patch-host_bsd_Makefile.in) = 0c361aca770ec7e323cef150e0e1b29d6a442306
SHA1 (patch-host_bsd_bsd-bpf.c) = 02a94a141da7d1790969deb8624d3a219d3e64ed
SHA1 (patch-host_posix_posix-serial.c) = b1e009d6432c49672ca07a16ced939c8a46ef6e2
SHA1 (patch-ic_ieee754_ieee754-misc-auto.sh) = afeb7452ef64bcae71e4dbae21881cff12cb9d4f
@@ -18,14 +20,14 @@ SHA1 (patch-ic_m68k_m68k-insns-auto.sh)
SHA1 (patch-ic_m68k_m68k-m68k-insns.c) = 1a9d8e3d4e11c5710d1f67b65954d6e3de68d99f
SHA1 (patch-ic_m68k_m68k-misc.c) = 7aeef098631196fe60b9940600cf90c86d1be375
SHA1 (patch-libtme_memory-auto.sh) = f7d989831b2468d1288faabc10b6fc53ce5bd0f4
-SHA1 (patch-machine_sun2_SUN2-MULTIBUS) = dc44d9c842277a2f4ff55b0200edbc990ee86669
+SHA1 (patch-machine_sun2_SUN2-MULTIBUS) = cf9f55fcc15e2d977823dd54b9a10c42b11a6666
SHA1 (patch-machine_sun2_sun2-mainbus.c) = 91b901d37d5f9a72064831d440c4371b81857640
-SHA1 (patch-machine_sun3_SUN3-CARRERA) = 73b8f3a5a7c587aa726db4fa53844f2a0dc82a24
+SHA1 (patch-machine_sun3_SUN3-CARRERA) = f07eabcab452686277f4f22849474bbc196e7ba7
SHA1 (patch-machine_sun3_sun3-mainbus.c) = bfe56fdee109824ccf8a81760406b6c5d1ab7157
-SHA1 (patch-machine_sun4_SUN4-75) = 02218192d50e7679358e822515210711602c3271
+SHA1 (patch-machine_sun4_SUN4-75) = bd5412f970de3a1883b1d27cf3e8f9c2ac70d569
SHA1 (patch-machine_sun4_sun4-mainbus.c) = 9dda3c5365e608cce2faa180d6a58351c8e58095
SHA1 (patch-machine_sun4_sun4-timer.c) = 979e62cd68d1e8f9b15ba9511d798cbb4c0e2105
-SHA1 (patch-machine_sun4u_SUN-ULTRA-1) = e2bd0b991acf47ff01658f2f692913c24d7478b5
+SHA1 (patch-machine_sun4u_SUN-ULTRA-1) = 1aa0dcefafaa70cdaaaac0161b7adda2b2b00ed8
SHA1 (patch-tme_common.h) = 1c07068397022ff349c283cbbfaa804deeb2aabf
SHA1 (patch-tme_generic_float.h) = 4f48ebdd713367d47784caa990d46990e4f8108f
SHA1 (patch-tmesh_Makefile.in) = 850adc8390ea3031ee3d55396373be8507a43c32
Index: pkgsrc/emulators/tme/patches/patch-machine_sun2_SUN2-MULTIBUS
diff -u pkgsrc/emulators/tme/patches/patch-machine_sun2_SUN2-MULTIBUS:1.1 pkgsrc/emulators/tme/patches/patch-machine_sun2_SUN2-MULTIBUS:1.2
--- pkgsrc/emulators/tme/patches/patch-machine_sun2_SUN2-MULTIBUS:1.1 Sat Nov 2 22:43:29 2013
+++ pkgsrc/emulators/tme/patches/patch-machine_sun2_SUN2-MULTIBUS Wed Mar 4 07:52:11 2020
@@ -1,10 +1,21 @@
-$NetBSD: patch-machine_sun2_SUN2-MULTIBUS,v 1.1 2013/11/02 22:43:29 christos Exp $
+$NetBSD: patch-machine_sun2_SUN2-MULTIBUS,v 1.2 2020/03/04 07:52:11 rin Exp $
+
+Add tap(4) support for *BSD by kiyohara@:
+https://mail-index.netbsd.org/port-sparc64/2013/01/29/msg001951.html
Make it use auto-allocated ptys
---- machine/sun2/SUN2-MULTIBUS 2005-04-30 11:12:12.000000000 -0400
-+++ machine/sun2/SUN2-MULTIBUS 2013-11-02 18:30:00.000000000 -0400
-@@ -73,11 +73,11 @@
+--- machine/sun2/SUN2-MULTIBUS.orig 2020-03-04 16:33:49.000504677 +0900
++++ machine/sun2/SUN2-MULTIBUS 2020-03-04 16:34:00.445473134 +0900
+@@ -39,6 +39,7 @@
+ #
+ #ec0 at mbmem0 addr 0xe0000 ipl 3: tme/bus/multibus/3c400 ether "00:01:02:03:04:05"
+ #bpf0 at ec0: tme/host/bsd/bpf
++#tap0 at ec0: tme/host/bsd/tap
+
+ ## the Sun Intel Ethernet Multibus board:
+ ##
+@@ -73,11 +74,11 @@
##
# uncomment the following line if you aren't using the GTK-based
# display console above. this will connect ttya to the master side of
Index: pkgsrc/emulators/tme/patches/patch-machine_sun3_SUN3-CARRERA
diff -u pkgsrc/emulators/tme/patches/patch-machine_sun3_SUN3-CARRERA:1.1 pkgsrc/emulators/tme/patches/patch-machine_sun3_SUN3-CARRERA:1.2
--- pkgsrc/emulators/tme/patches/patch-machine_sun3_SUN3-CARRERA:1.1 Sat Nov 2 22:43:29 2013
+++ pkgsrc/emulators/tme/patches/patch-machine_sun3_SUN3-CARRERA Wed Mar 4 07:52:11 2020
@@ -1,10 +1,21 @@
-$NetBSD: patch-machine_sun3_SUN3-CARRERA,v 1.1 2013/11/02 22:43:29 christos Exp $
+$NetBSD: patch-machine_sun3_SUN3-CARRERA,v 1.2 2020/03/04 07:52:11 rin Exp $
+
+Add tap(4) support for *BSD by kiyohara@:
+https://mail-index.netbsd.org/port-sparc64/2013/01/29/msg001951.html
Make it use auto-allocated ptys
---- machine/sun3/SUN3-CARRERA 2007-08-23 21:18:05.000000000 -0400
-+++ machine/sun3/SUN3-CARRERA 2013-11-02 18:29:53.000000000 -0400
-@@ -44,12 +44,12 @@
+--- machine/sun3/SUN3-CARRERA.orig 2020-03-04 16:33:49.000519864 +0900
++++ machine/sun3/SUN3-CARRERA 2020-03-04 16:34:00.445552360 +0900
+@@ -31,6 +31,7 @@
+ #obie0 memory at mainbus0
+ #ie0 at obie0: tme/ic/i82586
+ #bpf1 at ie0: tme/host/bsd/bpf
++#tap0 at ie0: tme/host/bsd/tap
+
+ ## the Sun type-3 keyboard and mouse:
+ ##
+@@ -44,12 +45,12 @@
## ttya:
##
# uncomment the following line if you aren't using the GTK-based
Index: pkgsrc/emulators/tme/patches/patch-machine_sun4_SUN4-75
diff -u pkgsrc/emulators/tme/patches/patch-machine_sun4_SUN4-75:1.1 pkgsrc/emulators/tme/patches/patch-machine_sun4_SUN4-75:1.2
--- pkgsrc/emulators/tme/patches/patch-machine_sun4_SUN4-75:1.1 Sat Nov 2 22:43:29 2013
+++ pkgsrc/emulators/tme/patches/patch-machine_sun4_SUN4-75 Wed Mar 4 07:52:11 2020
@@ -1,9 +1,12 @@
-$NetBSD: patch-machine_sun4_SUN4-75,v 1.1 2013/11/02 22:43:29 christos Exp $
+$NetBSD: patch-machine_sun4_SUN4-75,v 1.2 2020/03/04 07:52:11 rin Exp $
+
+Add tap(4) support for *BSD by kiyohara@:
+https://mail-index.netbsd.org/port-sparc64/2013/01/29/msg001951.html
Make it use auto-allocated ptys
---- machine/sun4/SUN4-75 2010-06-05 15:26:31.000000000 -0400
-+++ machine/sun4/SUN4-75 2013-11-02 18:29:49.000000000 -0400
+--- machine/sun4/SUN4-75.orig 2020-03-04 16:33:49.000533746 +0900
++++ machine/sun4/SUN4-75 2020-03-04 16:34:00.445646554 +0900
@@ -46,14 +46,14 @@
## ttya:
@@ -25,3 +28,11 @@ Make it use auto-allocated ptys
## the SBus esp SCSI:
##
+@@ -69,6 +69,7 @@
+ #
+ le0 at sbus0 slot 0 offset 0xc00000 ipl 5 dma-offset 0xff000000: tme/ic/am7990
+ #bpf0 at le0: tme/host/bsd/bpf
++#tap0 at le0: tme/host/bsd/tap
+
+ ## an SBus cgthree:
+ ##
Index: pkgsrc/emulators/tme/patches/patch-machine_sun4u_SUN-ULTRA-1
diff -u pkgsrc/emulators/tme/patches/patch-machine_sun4u_SUN-ULTRA-1:1.1 pkgsrc/emulators/tme/patches/patch-machine_sun4u_SUN-ULTRA-1:1.2
--- pkgsrc/emulators/tme/patches/patch-machine_sun4u_SUN-ULTRA-1:1.1 Sat Nov 2 22:43:29 2013
+++ pkgsrc/emulators/tme/patches/patch-machine_sun4u_SUN-ULTRA-1 Wed Mar 4 07:52:11 2020
@@ -1,9 +1,12 @@
-$NetBSD: patch-machine_sun4u_SUN-ULTRA-1,v 1.1 2013/11/02 22:43:29 christos Exp $
+$NetBSD: patch-machine_sun4u_SUN-ULTRA-1,v 1.2 2020/03/04 07:52:11 rin Exp $
+
+Add tap(4) support for *BSD by kiyohara@:
+https://mail-index.netbsd.org/port-sparc64/2013/01/29/msg001951.html
Make it use auto-allocated ptys
---- machine/sun4u/SUN-ULTRA-1 2010-06-05 15:30:55.000000000 -0400
-+++ machine/sun4u/SUN-ULTRA-1 2013-11-02 18:30:24.000000000 -0400
+--- machine/sun4u/SUN-ULTRA-1.orig 2020-03-04 16:33:49.000549753 +0900
++++ machine/sun4u/SUN-ULTRA-1 2020-03-04 16:34:00.445732638 +0900
@@ -47,14 +47,14 @@
## ttya:
@@ -25,3 +28,11 @@ Make it use auto-allocated ptys
## the SBus esp SCSI:
##
+@@ -72,6 +72,7 @@
+ ledma0 at sbus0 slot 14 offset 0x8c00000
+ le0 at ledma0 master: tme/ic/am7990
+ #bpf0 at le0: tme/host/bsd/bpf
++#tap0 at le0: tme/host/bsd/tap
+
+ ## the SBus parallel port:
+ ##
Added files:
Index: pkgsrc/emulators/tme/files/bsd-tap.c
diff -u /dev/null pkgsrc/emulators/tme/files/bsd-tap.c:1.1
--- /dev/null Wed Mar 4 07:52:11 2020
+++ pkgsrc/emulators/tme/files/bsd-tap.c Wed Mar 4 07:52:11 2020
@@ -0,0 +1,744 @@
+/* $NetBSD: bsd-tap.c,v 1.1 2020/03/04 07:52:11 rin Exp $ */
+/* Id: bsd-bpf.c,v 1.9 2007/02/21 01:24:50 fredette Exp */
+
+/* host/bsd/bsd-tap.c - BSD TAP Ethernet support: */
+
+/*
+ * Copyright (c) 2001, 2003 Matt Fredette
+ * 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. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Matt Fredette.
+ * 4. 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 BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; 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 <tme/common.h>
+_TME_RCSID("Id: bsd-bpf.c,v 1.9 2007/02/21 01:24:50 fredette Exp ");
+
+/* includes: */
+#include "bsd-impl.h"
+#include <tme/generic/ethernet.h>
+#include <tme/threads.h>
+#include <tme/misc.h>
+#include <stdio.h>
+#include <string.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <netdb.h>
+#include <sys/param.h>
+#include <sys/socket.h>
+#include <sys/stat.h>
+#include <net/if.h>
+#include <netinet/in_systm.h>
+#include <netinet/in.h>
+#if defined(HAVE_SYS_SOCKIO_H)
+#include <sys/sockio.h>
+#elif defined(HAVE_SYS_SOCKETIO_H)
+#include <sys/socketio.h>
+#endif /* HAVE_SYS_SOCKETIO_H */
+#include <sys/ioctl.h>
+#ifdef HAVE_IOCTLS_H
+#include <ioctls.h>
+#endif /* HAVE_IOCTLS_H */
+#ifdef HAVE_NET_IF_ETHER_H
+#include <net/if_ether.h>
+#endif /* HAVE_NET_IF_ETHER_H */
+#ifdef HAVE_NET_ETHERNET_H
+#include <net/ethernet.h>
+#endif /* HAVE_NET_ETHERNET_H */
+#include <netinet/ip.h>
+#ifdef HAVE_NET_IF_DL_H
+#include <net/if_dl.h>
+#endif /* HAVE_NET_IF_DL_H */
+#include <arpa/inet.h>
+
+/* macros: */
+
+/* ARP and RARP opcodes: */
+#define TME_NET_ARP_OPCODE_REQUEST (0x0001)
+#define TME_NET_ARP_OPCODE_REPLY (0x0002)
+#define TME_NET_ARP_OPCODE_REV_REQUEST (0x0003)
+#define TME_NET_ARP_OPCODE_REV_REPLY (0x0004)
+
+/* the callout flags: */
+#define TME_BSD_TAP_CALLOUT_CHECK (0)
+#define TME_BSD_TAP_CALLOUT_RUNNING TME_BIT(0)
+#define TME_BSD_TAP_CALLOUTS_MASK (-2)
+#define TME_BSD_TAP_CALLOUT_CTRL TME_BIT(1)
+#define TME_BSD_TAP_CALLOUT_READ TME_BIT(2)
+
+/* structures: */
+
+/* our internal data structure: */
+struct tme_bsd_tap {
+
+ /* backpointer to our element: */
+ struct tme_element *tme_bsd_tap_element;
+
+ /* our mutex: */
+ tme_mutex_t tme_bsd_tap_mutex;
+
+ /* our reader condition: */
+ tme_cond_t tme_bsd_tap_cond_reader;
+
+ /* the callout flags: */
+ unsigned int tme_bsd_tap_callout_flags;
+
+ /* our Ethernet connection: */
+ struct tme_ethernet_connection *tme_bsd_tap_eth_connection;
+
+ /* the TAP file descriptor: */
+ int tme_bsd_tap_fd;
+
+ /* the packet buffer for the interface: */
+ tme_uint8_t *tme_bsd_tap_buffer;
+
+ int tme_bsd_tap_buffer_in_bytes;
+
+ /* when nonzero, the packet delay sleep time, in microseconds: */
+ unsigned long tme_bsd_tap_delay_sleep;
+
+ /* when nonzero, the packet delay is sleeping: */
+ int tme_bsd_tap_delay_sleeping;
+};
+
+/* a crude ARP header: */
+struct tme_net_arp_header {
+ tme_uint8_t tme_net_arp_header_hardware[2];
+ tme_uint8_t tme_net_arp_header_protocol[2];
+ tme_uint8_t tme_net_arp_header_hardware_length;
+ tme_uint8_t tme_net_arp_header_protocol_length;
+ tme_uint8_t tme_net_arp_header_opcode[2];
+};
+
+/* a crude partial IPv4 header: */
+struct tme_net_ipv4_header {
+ tme_uint8_t tme_net_ipv4_header_v_hl;
+ tme_uint8_t tme_net_ipv4_header_tos;
+ tme_uint8_t tme_net_ipv4_header_length[2];
+};
+
+/* the tap callout function. it must be called with the mutex locked: */
+static void
+_tme_bsd_tap_callout(struct tme_bsd_tap *tap, int new_callouts)
+{
+ struct tme_ethernet_connection *conn_eth;
+ int callouts, later_callouts;
+ unsigned int ctrl;
+ int rc;
+ int status;
+ tme_ethernet_fid_t frame_id;
+ struct tme_ethernet_frame_chunk frame_chunk_buffer;
+ tme_uint8_t frame[TME_ETHERNET_FRAME_MAX];
+
+ /* add in any new callouts: */
+ tap->tme_bsd_tap_callout_flags |= new_callouts;
+
+ /* if this function is already running in another thread, simply
+ return now. the other thread will do our work: */
+ if (tap->tme_bsd_tap_callout_flags & TME_BSD_TAP_CALLOUT_RUNNING) {
+ return;
+ }
+
+ /* callouts are now running: */
+ tap->tme_bsd_tap_callout_flags |= TME_BSD_TAP_CALLOUT_RUNNING;
+
+ /* assume that we won't need any later callouts: */
+ later_callouts = 0;
+
+ /* loop while callouts are needed: */
+ for (; (callouts = tap->tme_bsd_tap_callout_flags) & TME_BSD_TAP_CALLOUTS_MASK; ) {
+
+ /* clear the needed callouts: */
+ tap->tme_bsd_tap_callout_flags = callouts & ~TME_BSD_TAP_CALLOUTS_MASK;
+ callouts &= TME_BSD_TAP_CALLOUTS_MASK;
+
+ /* get our Ethernet connection: */
+ conn_eth = tap->tme_bsd_tap_eth_connection;
+
+ /* if we need to call out new control information: */
+ if (callouts & TME_BSD_TAP_CALLOUT_CTRL) {
+
+ /* form the new ctrl: */
+ ctrl = 0;
+ if (tap->tme_bsd_tap_buffer_in_bytes > 0) {
+ ctrl |= TME_ETHERNET_CTRL_OK_READ;
+ }
+
+ /* unlock the mutex: */
+ tme_mutex_unlock(&tap->tme_bsd_tap_mutex);
+
+ /* do the callout: */
+ rc = (conn_eth != NULL
+ ? ((*conn_eth->tme_ethernet_connection_ctrl)
+ (conn_eth,
+ ctrl))
+ : TME_OK);
+
+ /* lock the mutex: */
+ tme_mutex_lock(&tap->tme_bsd_tap_mutex);
+
+ /* if the callout was unsuccessful, remember that at some later
+ time this callout should be attempted again: */
+ if (rc != TME_OK) {
+ later_callouts |= TME_BSD_TAP_CALLOUT_CTRL;
+ }
+ }
+
+ /* if the Ethernet is readable: */
+ if (callouts & TME_BSD_TAP_CALLOUT_READ) {
+
+ /* unlock the mutex: */
+ tme_mutex_unlock(&tap->tme_bsd_tap_mutex);
+
+ /* make a frame chunk to receive this frame: */
+ frame_chunk_buffer.tme_ethernet_frame_chunk_next = NULL;
+ frame_chunk_buffer.tme_ethernet_frame_chunk_bytes = frame;
+ frame_chunk_buffer.tme_ethernet_frame_chunk_bytes_count
+ = sizeof(frame);
+
+ /* do the callout: */
+ rc = (conn_eth == NULL
+ ? TME_OK
+ : ((*conn_eth->tme_ethernet_connection_read)
+ (conn_eth,
+ &frame_id,
+ &frame_chunk_buffer,
+ TME_ETHERNET_READ_NEXT)));
+
+ /* lock the mutex: */
+ tme_mutex_lock(&tap->tme_bsd_tap_mutex);
+
+ /* if the read was successful: */
+ if (rc > 0) {
+
+ /* check the size of the frame: */
+ assert(rc <= sizeof(frame));
+
+ /* do the write: */
+ status = tme_thread_write(tap->tme_bsd_tap_fd, frame, rc);
+
+ /* writes must succeed: */
+ assert (status == rc);
+
+ /* mark that we need to loop to callout to read more frames: */
+ tap->tme_bsd_tap_callout_flags |= TME_BSD_TAP_CALLOUT_READ;
+ }
+
+ /* otherwise, the read failed. convention dictates that we
+ forget that the connection was readable, which we already
+ have done by clearing the CALLOUT_READ flag: */
+ }
+
+ }
+
+ /* put in any later callouts, and clear that callouts are running: */
+ tap->tme_bsd_tap_callout_flags = later_callouts;
+}
+
+/* the TAP reader thread: */
+static void
+_tme_bsd_tap_th_reader(struct tme_bsd_tap *tap)
+{
+ ssize_t bytes;
+ unsigned long sleep_usec;
+
+ /* lock the mutex: */
+ tme_mutex_lock(&tap->tme_bsd_tap_mutex);
+
+ /* loop forever: */
+ for (;;) {
+
+ /* if the delay sleeping flag is set: */
+ if (tap->tme_bsd_tap_delay_sleeping) {
+
+ /* clear the delay sleeping flag: */
+ tap->tme_bsd_tap_delay_sleeping = FALSE;
+
+ /* call out that we can be read again: */
+ _tme_bsd_tap_callout(tap, TME_BSD_TAP_CALLOUT_CTRL);
+ }
+
+ /* if a delay has been requested: */
+ sleep_usec = tap->tme_bsd_tap_delay_sleep;
+ if (sleep_usec > 0) {
+
+ /* clear the delay sleep time: */
+ tap->tme_bsd_tap_delay_sleep = 0;
+
+ /* set the delay sleeping flag: */
+ tap->tme_bsd_tap_delay_sleeping = TRUE;
+
+ /* unlock our mutex: */
+ tme_mutex_unlock(&tap->tme_bsd_tap_mutex);
+
+ /* sleep for the delay sleep time: */
+ tme_thread_sleep_yield(0, sleep_usec);
+
+ /* lock our mutex: */
+ tme_mutex_lock(&tap->tme_bsd_tap_mutex);
+
+ continue;
+ }
+
+ /* if the buffer is not empty, wait until either it is,
+ or we're asked to do a delay: */
+ if (tap->tme_bsd_tap_buffer_in_bytes > 0) {
+ tme_cond_wait_yield(&tap->tme_bsd_tap_cond_reader,
+ &tap->tme_bsd_tap_mutex);
+ continue;
+ }
+
+ /* unlock the mutex: */
+ tme_mutex_unlock(&tap->tme_bsd_tap_mutex);
+
+ /* read the TAP interface: */
+ tme_log(&tap->tme_bsd_tap_element->tme_element_log_handle, 1, TME_OK,
+ (&tap->tme_bsd_tap_element->tme_element_log_handle,
+ _("calling read")));
+ bytes =
+ tme_thread_read_yield(tap->tme_bsd_tap_fd,
+ tap->tme_bsd_tap_buffer,
+ TME_ETHERNET_FRAME_MAX);
+
+ /* lock the mutex: */
+ tme_mutex_lock(&tap->tme_bsd_tap_mutex);
+
+ /* if the read failed: */
+ if (bytes <= 0) {
+ tme_log(&tap->tme_bsd_tap_element->tme_element_log_handle, 1, errno,
+ (&tap->tme_bsd_tap_element->tme_element_log_handle,
+ _("failed to read packets")));
+ continue;
+ }
+
+ /* the read succeeded: */
+ tme_log(&tap->tme_bsd_tap_element->tme_element_log_handle, 1, TME_OK,
+ (&tap->tme_bsd_tap_element->tme_element_log_handle,
+ _("read %ld bytes of packets"), (long) bytes));
+ tap->tme_bsd_tap_buffer_in_bytes = bytes;
+
+ /* call out that we can be read again: */
+ _tme_bsd_tap_callout(tap, TME_BSD_TAP_CALLOUT_CTRL);
+ }
+ /* NOTREACHED */
+}
+
+/* this is called when the ethernet configuration changes: */
+static int
+_tme_bsd_tap_config(struct tme_ethernet_connection *conn_eth,
+ struct tme_ethernet_config *config)
+{
+ struct tme_bsd_tap *tap;
+ int rc;
+
+ /* recover our data structures: */
+ tap = conn_eth->tme_ethernet_connection.tme_connection_element->tme_element_private;
+
+ /* assume we will succeed: */
+ rc = TME_OK;
+
+ /* lock the mutex: */
+ tme_mutex_lock(&tap->tme_bsd_tap_mutex);
+
+ /* XXXXX: Nothing... */
+
+ /* unlock the mutex: */
+ tme_mutex_unlock(&tap->tme_bsd_tap_mutex);
+
+ /* done: */
+ return (rc);
+}
+
+/* this is called when control lines change: */
+static int
+_tme_bsd_tap_ctrl(struct tme_ethernet_connection *conn_eth,
+ unsigned int ctrl)
+{
+ struct tme_bsd_tap *tap;
+ int new_callouts;
+
+ /* recover our data structures: */
+ tap = conn_eth->tme_ethernet_connection.tme_connection_element->tme_element_private;
+
+ /* assume that we won't need any new callouts: */
+ new_callouts = 0;
+
+ /* lock the mutex: */
+ tme_mutex_lock(&tap->tme_bsd_tap_mutex);
+
+ /* if this connection is readable, call out a read: */
+ if (ctrl & TME_ETHERNET_CTRL_OK_READ) {
+ new_callouts |= TME_BSD_TAP_CALLOUT_READ;
+ }
+
+ /* make any new callouts: */
+ _tme_bsd_tap_callout(tap, new_callouts);
+
+ /* unlock the mutex: */
+ tme_mutex_unlock(&tap->tme_bsd_tap_mutex);
+
+ return (TME_OK);
+}
+
+/* this is called to read a frame: */
+static int
+_tme_bsd_tap_read(struct tme_ethernet_connection *conn_eth,
+ tme_ethernet_fid_t *_frame_id,
+ struct tme_ethernet_frame_chunk *frame_chunks,
+ unsigned int flags)
+{
+ struct tme_bsd_tap *tap;
+ struct tme_ethernet_frame_chunk frame_chunk_buffer;
+ const struct tme_ethernet_header *ethernet_header;
+ const struct tme_net_arp_header *arp_header;
+ const struct tme_net_ipv4_header *ipv4_header;
+ tme_uint16_t ethertype;
+ unsigned int count;
+ int rc;
+
+ /* recover our data structure: */
+ tap = conn_eth->tme_ethernet_connection.tme_connection_element->tme_element_private;
+
+ /* lock our mutex: */
+ tme_mutex_lock(&tap->tme_bsd_tap_mutex);
+
+ /* assume that we won't be able to return a packet: */
+ rc = -ENOENT;
+
+ /* loop until we have a good captured packet or until we
+ exhaust the buffer: */
+ for (;;) {
+
+ /* form the single frame chunk: */
+ frame_chunk_buffer.tme_ethernet_frame_chunk_next = NULL;
+ frame_chunk_buffer.tme_ethernet_frame_chunk_bytes = tap->tme_bsd_tap_buffer;
+ frame_chunk_buffer.tme_ethernet_frame_chunk_bytes_count
+ = tap->tme_bsd_tap_buffer_in_bytes;
+
+ /* packets in a tme ethernet connection never have CRCs, so here
+ we attempt to detect them and strip them off.
+
+ unfortunately there's no general way to do this. there's a
+ chance that the last four bytes of an actual packet just
+ happen to be the Ethernet CRC of all of the previous bytes in
+ the packet, so we can't just strip off what looks like a
+ valid CRC, plus the CRC calculation itself isn't cheap.
+
+ the only way to do this well seems to be to look at the
+ protocol. if we can determine what the correct minimum size
+ of the packet should be based on the protocol, and the size
+ we got is four bytes more than that, assume that the last four
+ bytes are a CRC and strip it off: */
+
+ /* assume that we won't be able to figure out the correct minimum
+ size of the packet: */
+ count = 0;
+
+ /* get the Ethernet header and packet type: */
+ ethernet_header = (struct tme_ethernet_header *) tap->tme_bsd_tap_buffer;
+ ethertype = ethernet_header->tme_ethernet_header_type[0];
+ ethertype = (ethertype << 8) + ethernet_header->tme_ethernet_header_type[1];
+
+ /* dispatch on the packet type: */
+ switch (ethertype) {
+
+ /* an ARP or RARP packet: */
+ case TME_ETHERNET_TYPE_ARP:
+ case TME_ETHERNET_TYPE_RARP:
+ arp_header = (struct tme_net_arp_header *) (ethernet_header + 1);
+ switch ((((tme_uint16_t) arp_header->tme_net_arp_header_opcode[0]) << 8)
+ + arp_header->tme_net_arp_header_opcode[1]) {
+ case TME_NET_ARP_OPCODE_REQUEST:
+ case TME_NET_ARP_OPCODE_REPLY:
+ case TME_NET_ARP_OPCODE_REV_REQUEST:
+ case TME_NET_ARP_OPCODE_REV_REPLY:
+ count = (TME_ETHERNET_HEADER_SIZE
+ + sizeof(struct tme_net_arp_header)
+ + (2 * arp_header->tme_net_arp_header_hardware_length)
+ + (2 * arp_header->tme_net_arp_header_protocol_length));
+ default:
+ break;
+ }
+ break;
+
+ /* an IPv4 packet: */
+ case TME_ETHERNET_TYPE_IPV4:
+ ipv4_header = (struct tme_net_ipv4_header *) (ethernet_header + 1);
+ count = ipv4_header->tme_net_ipv4_header_length[0];
+ count = (count << 8) + ipv4_header->tme_net_ipv4_header_length[1];
+ count += TME_ETHERNET_HEADER_SIZE;
+ break;
+
+ default:
+ break;
+ }
+
+ /* if we were able to figure out the correct minimum size of the
+ packet, and the packet from BPF is exactly that minimum size
+ plus the CRC size, set the length of the packet to be the
+ correct minimum size. NB that we can't let the packet become
+ smaller than (TME_ETHERNET_FRAME_MIN - TME_ETHERNET_CRC_SIZE): */
+ if (count != 0) {
+ count = TME_MAX(count,
+ (TME_ETHERNET_FRAME_MIN
+ - TME_ETHERNET_CRC_SIZE));
+ if (frame_chunk_buffer.tme_ethernet_frame_chunk_bytes_count
+ == (count + TME_ETHERNET_CRC_SIZE)) {
+ frame_chunk_buffer.tme_ethernet_frame_chunk_bytes_count = count;
+ }
+ }
+
+ /* copy out the frame: */
+ count = tme_ethernet_chunks_copy(frame_chunks, &frame_chunk_buffer);
+
+ /* if this is a not peek: */
+ if (!(flags & TME_ETHERNET_READ_PEEK)) {
+
+ tap->tme_bsd_tap_buffer_in_bytes = 0;
+ }
+
+ /* success: */
+ rc = count;
+ break;
+ }
+
+ /* if the buffer is empty, or if we failed to read a packet,
+ wake up the reader: */
+ if (tap->tme_bsd_tap_buffer_in_bytes <= 0
+ || rc <= 0) {
+ tme_cond_notify(&tap->tme_bsd_tap_cond_reader, TRUE);
+ }
+
+ /* unlock our mutex: */
+ tme_mutex_unlock(&tap->tme_bsd_tap_mutex);
+
+ /* done: */
+ return (rc);
+}
+
+/* this makes a new Ethernet connection: */
+static int
+_tme_bsd_tap_connection_make(struct tme_connection *conn, unsigned int state)
+{
+ struct tme_bsd_tap *tap;
+ struct tme_ethernet_connection *conn_eth;
+ struct tme_ethernet_connection *conn_eth_other;
+
+ /* recover our data structures: */
+ tap = conn->tme_connection_element->tme_element_private;
+ conn_eth = (struct tme_ethernet_connection *) conn;
+ conn_eth_other = (struct tme_ethernet_connection *) conn->tme_connection_other;
+
+ /* both sides must be Ethernet connections: */
+ assert(conn->tme_connection_type == TME_CONNECTION_ETHERNET);
+ assert(conn->tme_connection_other->tme_connection_type == TME_CONNECTION_ETHERNET);
+
+ /* we're always set up to answer calls across the connection, so we
+ only have to do work when the connection has gone full, namely
+ taking the other side of the connection: */
+ if (state == TME_CONNECTION_FULL) {
+
+ /* lock our mutex: */
+ tme_mutex_lock(&tap->tme_bsd_tap_mutex);
+
+ /* save our connection: */
+ tap->tme_bsd_tap_eth_connection = conn_eth_other;
+
+ /* unlock our mutex: */
+ tme_mutex_unlock(&tap->tme_bsd_tap_mutex);
+ }
+
+ return (TME_OK);
+}
+
+/* this breaks a connection: */
+static int
+_tme_bsd_tap_connection_break(struct tme_connection *conn, unsigned int state)
+{
+ abort();
+}
+
+/* this makes a new connection side for a TAP: */
+static int
+_tme_bsd_tap_connections_new(struct tme_element *element,
+ const char * const *args,
+ struct tme_connection **_conns,
+ char **_output)
+{
+ struct tme_bsd_tap *tap;
+ struct tme_ethernet_connection *conn_eth;
+ struct tme_connection *conn;
+
+ /* recover our data structure: */
+ tap = (struct tme_bsd_tap *) element->tme_element_private;
+
+ /* if we already have an Ethernet connection, do nothing: */
+ if (tap->tme_bsd_tap_eth_connection != NULL) {
+ return (TME_OK);
+ }
+
+ /* allocate the new Ethernet connection: */
+ conn_eth = tme_new0(struct tme_ethernet_connection, 1);
+ conn = &conn_eth->tme_ethernet_connection;
+
+ /* fill in the generic connection: */
+ conn->tme_connection_next = *_conns;
+ conn->tme_connection_type = TME_CONNECTION_ETHERNET;
+ conn->tme_connection_score = tme_ethernet_connection_score;
+ conn->tme_connection_make = _tme_bsd_tap_connection_make;
+ conn->tme_connection_break = _tme_bsd_tap_connection_break;
+
+ /* fill in the Ethernet connection: */
+ conn_eth->tme_ethernet_connection_config = _tme_bsd_tap_config;
+ conn_eth->tme_ethernet_connection_ctrl = _tme_bsd_tap_ctrl;
+ conn_eth->tme_ethernet_connection_read = _tme_bsd_tap_read;
+
+ /* return the connection side possibility: */
+ *_conns = conn;
+
+ /* done: */
+ return (TME_OK);
+}
+
+/* the new TAP function: */
+TME_ELEMENT_SUB_NEW_DECL(tme_host_bsd,tap) {
+ struct tme_bsd_tap *tap;
+ int tap_fd;
+#define DEV_TAP_FORMAT "/dev/tap%d"
+ char dev_tap_filename[sizeof(DEV_TAP_FORMAT) + (sizeof(int) * 3) + 1];
+ int minor;
+ int saved_errno;
+ u_int tap_opt;
+ const char *tap_name_user;
+ int arg_i;
+ int usage;
+
+ /* check our arguments: */
+ usage = 0;
+ tap_name_user = NULL;
+ arg_i = 1;
+ for (;;) {
+
+ /* the interface we're supposed to use: */
+ if (TME_ARG_IS(args[arg_i + 0], "interface")
+ && args[arg_i + 1] != NULL) {
+ tap_name_user = args[arg_i + 1];
+ arg_i += 2;
+ }
+
+ /* if we ran out of arguments: */
+ else if (args[arg_i + 0] == NULL) {
+ break;
+ }
+
+ /* otherwise this is a bad argument: */
+ else {
+ tme_output_append_error(_output,
+ "%s %s",
+ args[arg_i],
+ _("unexpected"));
+ usage = TRUE;
+ break;
+ }
+ }
+
+ if (usage) {
+ tme_output_append_error(_output,
+ "%s %s [ interface %s ] [ delay %s ]",
+ _("usage:"),
+ args[0],
+ _("INTERFACE"),
+ _("MICROSECONDS"));
+ return (EINVAL);
+ }
+
+ /* loop trying to open a /dev/tap device: */
+ for (minor = 0;; minor++) {
+
+ /* form the name of the next device to try, then try opening
+ it. if we succeed, we're done: */
+ if (tap_name_user != NULL)
+ sprintf(dev_tap_filename, "/dev/%s", tap_name_user);
+ else
+ sprintf(dev_tap_filename, DEV_TAP_FORMAT, minor);
+ tme_log(&element->tme_element_log_handle, 1, TME_OK,
+ (&element->tme_element_log_handle,
+ "trying %s",
+ dev_tap_filename));
+ if ((tap_fd = open(dev_tap_filename, O_RDWR)) >= 0) {
+ tme_log(&element->tme_element_log_handle, 1, TME_OK,
+ (&element->tme_element_log_handle,
+ "opened %s",
+ dev_tap_filename));
+ break;
+ }
+
+ /* we failed to open this device. if this device was simply
+ busy, loop: */
+ saved_errno = errno;
+ tme_log(&element->tme_element_log_handle, 1, saved_errno,
+ (&element->tme_element_log_handle,
+ "%s", dev_tap_filename));
+ if (saved_errno == EBUSY
+ || saved_errno == EACCES) {
+ if (tap_name_user == NULL)
+ continue;
+ }
+
+ /* otherwise, we have failed: */
+ return (saved_errno);
+ }
+
+ /* put the TAP device into non-blocking I/O mode: */
+ tap_opt = TRUE;
+ if (ioctl(tap_fd, FIONBIO, &tap_opt) < 0) {
+ tme_log(&element->tme_element_log_handle, 1, errno,
+ (&element->tme_element_log_handle,
+ _("failed to put %s into non-blocking I/O mode"),
+ dev_tap_filename));
+ saved_errno = errno;
+ close(tap_fd);
+ errno = saved_errno;
+ return (errno);
+ }
+
+ /* start our data structure: */
+ tap = tme_new0(struct tme_bsd_tap, 1);
+ tap->tme_bsd_tap_element = element;
+ tap->tme_bsd_tap_fd = tap_fd;
+ tap->tme_bsd_tap_buffer = tme_new(tme_uint8_t, TME_ETHERNET_FRAME_MAX);
+
+ /* start the threads: */
+ tme_mutex_init(&tap->tme_bsd_tap_mutex);
+ tme_cond_init(&tap->tme_bsd_tap_cond_reader);
+ tme_thread_create((tme_thread_t) _tme_bsd_tap_th_reader, tap);
+
+ /* fill the element: */
+ element->tme_element_private = tap;
+ element->tme_element_connections_new = _tme_bsd_tap_connections_new;
+
+ return (TME_OK);
+}
Index: pkgsrc/emulators/tme/patches/patch-host_bsd_Makefile.am
diff -u /dev/null pkgsrc/emulators/tme/patches/patch-host_bsd_Makefile.am:1.1
--- /dev/null Wed Mar 4 07:52:11 2020
+++ pkgsrc/emulators/tme/patches/patch-host_bsd_Makefile.am Wed Mar 4 07:52:11 2020
@@ -0,0 +1,19 @@
+$NetBSD: patch-host_bsd_Makefile.am,v 1.1 2020/03/04 07:52:11 rin Exp $
+
+Add tap(4) support for *BSD by kiyohara@:
+https://mail-index.netbsd.org/port-sparc64/2013/01/29/msg001951.html
+
+XXX
+not used for build. in case of regen
+
+--- host/bsd/Makefile.am.orig 2012-12-20 20:45:08.000000000 +0900
++++ host/bsd/Makefile.am 2012-12-20 20:45:35.000000000 +0900
+@@ -6,7 +6,7 @@
+ INCLUDES = -I$(top_srcdir) -I$(srcdir) -I. -D_TME_IMPL
+
+ pkglib_LTLIBRARIES = tme_host_bsd.la
+-tme_host_bsd_la_SOURCES = bsd-if.c bsd-bpf.c bsd-impl.h
++tme_host_bsd_la_SOURCES = bsd-if.c bsd-bpf.c bsd-tap.c bsd-impl.h
+ tme_host_bsd_la_LDFLAGS = -module -version-info 0:0:0
+ tme_host_bsd_la_LIBADD = $(top_builddir)/libtme/libtme.la \
+ $(top_builddir)/generic/libtme-generic.la
Index: pkgsrc/emulators/tme/patches/patch-host_bsd_Makefile.in
diff -u /dev/null pkgsrc/emulators/tme/patches/patch-host_bsd_Makefile.in:1.1
--- /dev/null Wed Mar 4 07:52:11 2020
+++ pkgsrc/emulators/tme/patches/patch-host_bsd_Makefile.in Wed Mar 4 07:52:11 2020
@@ -0,0 +1,33 @@
+$NetBSD: patch-host_bsd_Makefile.in,v 1.1 2020/03/04 07:52:11 rin Exp $
+
+Add tap(4) support for *BSD by kiyohara@:
+https://mail-index.netbsd.org/port-sparc64/2013/01/29/msg001951.html
+
+--- host/bsd/Makefile.in.orig 2012-12-20 20:45:21.000000000 +0900
++++ host/bsd/Makefile.in 2012-12-20 20:47:42.000000000 +0900
+@@ -88,7 +88,7 @@
+ LTLIBRARIES = $(pkglib_LTLIBRARIES)
+ tme_host_bsd_la_DEPENDENCIES = $(top_builddir)/libtme/libtme.la \
+ $(top_builddir)/generic/libtme-generic.la
+-am_tme_host_bsd_la_OBJECTS = bsd-if.lo bsd-bpf.lo
++am_tme_host_bsd_la_OBJECTS = bsd-if.lo bsd-bpf.lo bsd-tap.lo
+ tme_host_bsd_la_OBJECTS = $(am_tme_host_bsd_la_OBJECTS)
+ tme_host_bsd_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+@@ -248,7 +248,7 @@
+ AUTOMAKE_OPTIONS = 1.4 gnu
+ INCLUDES = -I$(top_srcdir) -I$(srcdir) -I. -D_TME_IMPL
+ pkglib_LTLIBRARIES = tme_host_bsd.la
+-tme_host_bsd_la_SOURCES = bsd-if.c bsd-bpf.c bsd-impl.h
++tme_host_bsd_la_SOURCES = bsd-if.c bsd-bpf.c bsd-tap.c bsd-impl.h
+ tme_host_bsd_la_LDFLAGS = -module -version-info 0:0:0
+ tme_host_bsd_la_LIBADD = $(top_builddir)/libtme/libtme.la \
+ $(top_builddir)/generic/libtme-generic.la
+@@ -324,6 +324,7 @@
+
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsd-bpf.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsd-if.Plo@am__quote@
++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsd-tap.Plo@am__quote@
+
+ .c.o:
+ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
Home |
Main Index |
Thread Index |
Old Index