Tim Schwartz : net.exe: Initial stub.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 3 08:57:11 CDT 2007


Module: wine
Branch: master
Commit: 451616ee4528c82278c538da9ec5ad439fdcec65
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=451616ee4528c82278c538da9ec5ad439fdcec65

Author: Tim Schwartz <tim at sanityinternet.com>
Date:   Wed May  2 12:30:19 2007 -0500

net.exe: Initial stub.

---

 .gitignore               |    1 +
 Makefile.in              |    2 ++
 configure                |    3 +++
 configure.ac             |    1 +
 programs/Makefile.in     |    2 ++
 programs/net/Makefile.in |   13 +++++++++++++
 programs/net/net.c       |   41 +++++++++++++++++++++++++++++++++++++++++
 7 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 01e88f1..b3331b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -756,6 +756,7 @@ programs/iexplore/iexplore
 programs/msiexec/msiexec
 programs/msiexec/msiexec.ico
 programs/msiexec/rsrc.res
+programs/net/net
 programs/notepad/notepad
 programs/notepad/rsrc.res
 programs/oleview/oleview
diff --git a/Makefile.in b/Makefile.in
index 1f8f0c9..30e0581 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -449,6 +449,7 @@ ALL_MAKEFILES = \
 	programs/icinfo/Makefile \
 	programs/iexplore/Makefile \
 	programs/msiexec/Makefile \
+	programs/net/Makefile \
 	programs/notepad/Makefile \
 	programs/oleview/Makefile \
 	programs/progman/Makefile \
@@ -794,6 +795,7 @@ programs/hh/Makefile: programs/hh/Makefile.in programs/Makeprog.rules
 programs/icinfo/Makefile: programs/icinfo/Makefile.in programs/Makeprog.rules
 programs/iexplore/Makefile: programs/iexplore/Makefile.in programs/Makeprog.rules
 programs/msiexec/Makefile: programs/msiexec/Makefile.in programs/Makeprog.rules
+programs/net/Makefile: programs/net/Makefile.in programs/Makeprog.rules
 programs/notepad/Makefile: programs/notepad/Makefile.in programs/Makeprog.rules
 programs/oleview/Makefile: programs/oleview/Makefile.in programs/Makeprog.rules
 programs/progman/Makefile: programs/progman/Makefile.in programs/Makeprog.rules
diff --git a/configure b/configure
index 71a66ae..44d6f0e 100755
--- a/configure
+++ b/configure
@@ -20903,6 +20903,8 @@ ac_config_files="$ac_config_files programs/iexplore/Makefile"
 
 ac_config_files="$ac_config_files programs/msiexec/Makefile"
 
+ac_config_files="$ac_config_files programs/net/Makefile"
+
 ac_config_files="$ac_config_files programs/notepad/Makefile"
 
 ac_config_files="$ac_config_files programs/oleview/Makefile"
@@ -21838,6 +21840,7 @@ do
     "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
     "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
     "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
+    "programs/net/Makefile") CONFIG_FILES="$CONFIG_FILES programs/net/Makefile" ;;
     "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
     "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
     "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index ddec5f4..b62c0a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1776,6 +1776,7 @@ AC_CONFIG_FILES([programs/hh/Makefile])
 AC_CONFIG_FILES([programs/icinfo/Makefile])
 AC_CONFIG_FILES([programs/iexplore/Makefile])
 AC_CONFIG_FILES([programs/msiexec/Makefile])
+AC_CONFIG_FILES([programs/net/Makefile])
 AC_CONFIG_FILES([programs/notepad/Makefile])
 AC_CONFIG_FILES([programs/oleview/Makefile])
 AC_CONFIG_FILES([programs/progman/Makefile])
diff --git a/programs/Makefile.in b/programs/Makefile.in
index f164c0b..ee2d3c7 100644
--- a/programs/Makefile.in
+++ b/programs/Makefile.in
@@ -17,6 +17,7 @@ SUBDIRS = \
 	icinfo \
 	iexplore \
 	msiexec \
+	net \
 	notepad \
 	oleview \
 	progman \
@@ -57,6 +58,7 @@ INSTALLSUBDIRS = \
 	icinfo \
 	iexplore \
 	msiexec \
+	net \
 	notepad \
 	oleview \
 	progman \
diff --git a/programs/net/Makefile.in b/programs/net/Makefile.in
new file mode 100644
index 0000000..5db7fc0
--- /dev/null
+++ b/programs/net/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = net.exe
+APPMODE   = -mconsole
+IMPORTS   = kernel32
+
+C_SRCS = net.c
+
+ at MAKE_PROG_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/programs/net/net.c b/programs/net/net.c
new file mode 100644
index 0000000..f77c820
--- /dev/null
+++ b/programs/net/net.c
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2007 Tim Schwartz
+ *
+ * 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 <stdio.h>
+#include <string.h>
+
+int main(int argc, char *argv[])
+{
+    int ret = 0;
+
+    if (argc < 2)
+    {
+        printf("The syntax of this command is:\n\n");
+        printf("NET [ HELP ]\n");
+        return 1;
+    }
+
+    if(!strcasecmp(argv[1], "help"))
+    {
+        printf("The syntax of this command is:\n\n");
+        printf("NET HELP command\n    -or-\nNET command /HELP\n\n");
+        printf("   Commands available are:\n");
+        printf("   NET HELP\n");
+    }
+    return ret;
+}




More information about the wine-cvs mailing list