From 451616ee4528c82278c538da9ec5ad439fdcec65 Mon Sep 17 00:00:00 2001 From: Tim Schwartz Date: Wed, 2 May 2007 12:30:19 -0500 Subject: [PATCH] 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(+) create mode 100644 programs/net/Makefile.in create mode 100644 programs/net/net.c diff --git a/.gitignore b/.gitignore index 01e88f1e6ba..b3331b2d167 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 1f8f0c9ebf2..30e0581161b 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 71a66ae64fa..44d6f0e7b3f 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 ddec5f48cd6..b62c0a563ba 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 f164c0b90cd..ee2d3c7c277 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 00000000000..5db7fc01597 --- /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 + +@MAKE_PROG_RULES@ + +@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 00000000000..f77c820b5ed --- /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 +#include + +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; +}