programs: Add a stub implementation of netstat.exe

André Hentschel nerv at dawncrow.de
Tue Mar 27 14:34:51 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=25871
---
 configure.ac                 |    1 +
 programs/netstat/Makefile.in |    7 +++++++
 programs/netstat/netstat.c   |   33 +++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 0 deletions(-)
 create mode 100644 programs/netstat/Makefile.in
 create mode 100644 programs/netstat/netstat.c

diff --git a/configure.ac b/configure.ac
index bebbb91..7ebf4f5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2973,6 +2973,7 @@ WINE_CONFIG_PROGRAM(mshta,,[install])
 WINE_CONFIG_PROGRAM(msiexec,,[install,installbin,manpage])
 WINE_CONFIG_PROGRAM(net,,[install,po])
 WINE_CONFIG_PROGRAM(netsh,,[install])
+WINE_CONFIG_PROGRAM(netstat,,[install])
 WINE_CONFIG_PROGRAM(ngen,,[install])
 WINE_CONFIG_PROGRAM(notepad,,[install,installbin,manpage,po])
 WINE_CONFIG_PROGRAM(oleview,,[install,po])
diff --git a/programs/netstat/Makefile.in b/programs/netstat/Makefile.in
new file mode 100644
index 0000000..b49033a
--- /dev/null
+++ b/programs/netstat/Makefile.in
@@ -0,0 +1,7 @@
+MODULE    = netstat.exe
+APPMODE   = -mconsole -municode
+EXTRADEFS = -DWINE_NO_UNICODE_MACROS
+
+C_SRCS = netstat.c
+
+ at MAKE_PROG_RULES@
diff --git a/programs/netstat/netstat.c b/programs/netstat/netstat.c
new file mode 100644
index 0000000..4956777
--- /dev/null
+++ b/programs/netstat/netstat.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2011 André Hentschel
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(netstat);
+
+int wmain(int argc, WCHAR *argv[])
+{
+    int i;
+
+    WINE_FIXME("stub:");
+    for (i = 0; i < argc; i++)
+        WINE_FIXME(" %s", wine_dbgstr_w(argv[i]));
+    WINE_FIXME("\n");
+
+    return 0;
+}
-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list