Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5e3e2ca7
Commit
5e3e2ca7
authored
Mar 02, 2010
by
Trey Hunner
Committed by
Alexandre Julliard
Mar 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ping: Add skeleton ping command.
parent
df07561c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
0 deletions
+80
-0
configure
configure
+5
-0
configure.ac
configure.ac
+1
-0
Makefile.in
programs/ping/Makefile.in
+13
-0
ping_main.c
programs/ping/ping_main.c
+61
-0
No files found.
configure
View file @
5e3e2ca7
...
...
@@ -16106,6 +16106,10 @@ wine_fn_config_program oleview
wine_fn_config_makefile programs/oleview
"programs/Makeprog.rules
\$
(MAKEDEP)"
test
"x
$enable_oleview
"
!=
xno
&&
wine_fn_append_file ALL_PROGRAM_DIRS
"programs/oleview"
&&
wine_fn_append_file ALL_INSTALL_DIRS
"programs/oleview"
wine_fn_config_program ping
wine_fn_config_makefile programs/ping
"programs/Makeprog.rules
\$
(MAKEDEP)"
test
"x
$enable_ping
"
!=
xno
&&
wine_fn_append_file ALL_PROGRAM_DIRS
"programs/ping"
&&
wine_fn_append_file ALL_INSTALL_DIRS
"programs/ping"
wine_fn_config_program progman
wine_fn_config_makefile programs/progman
"programs/Makeprog.rules
\$
(MAKEDEP)"
test
"x
$enable_progman
"
!=
xno
&&
wine_fn_append_file ALL_PROGRAM_DIRS
"programs/progman"
&&
wine_fn_append_file ALL_INSTALL_DIRS
"programs/progman"
...
...
@@ -17486,6 +17490,7 @@ do
"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/ping/Makefile") CONFIG_FILES="
$CONFIG_FILES
programs/ping/Makefile" ;;
"programs/progman/Makefile") CONFIG_FILES="
$CONFIG_FILES
programs/progman/Makefile" ;;
"programs/reg/Makefile") CONFIG_FILES="
$CONFIG_FILES
programs/reg/Makefile" ;;
"programs/regedit/Makefile") CONFIG_FILES="
$CONFIG_FILES
programs/regedit/Makefile" ;;
...
...
configure.ac
View file @
5e3e2ca7
...
...
@@ -2662,6 +2662,7 @@ WINE_CONFIG_PROGRAM(msiexec,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS,ALL_PROGRAM_BIN_I
WINE_CONFIG_PROGRAM(net,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS])
WINE_CONFIG_PROGRAM(notepad,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS,ALL_PROGRAM_BIN_INSTALL_DIRS])
WINE_CONFIG_PROGRAM(oleview,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS])
WINE_CONFIG_PROGRAM(ping,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS])
WINE_CONFIG_PROGRAM(progman,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS])
WINE_CONFIG_PROGRAM(reg,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS])
WINE_CONFIG_PROGRAM(regedit,[ALL_PROGRAM_DIRS,ALL_INSTALL_DIRS,ALL_PROGRAM_BIN_INSTALL_DIRS])
...
...
programs/ping/Makefile.in
0 → 100644
View file @
5e3e2ca7
EXTRADEFS
=
-DWINE_NO_UNICODE_MACROS
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
ping.exe
APPMODE
=
-mconsole
IMPORTS
=
kernel32
C_SRCS
=
\
ping_main.c
@MAKE_PROG_RULES@
programs/ping/ping_main.c
0 → 100644
View file @
5e3e2ca7
/*
* ping stub
* Copyright (C) 2010 Trey Hunner
*
* 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 <unistd.h>
#include <windows.h>
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ping
);
static
void
usage
(
void
)
{
WINE_MESSAGE
(
"Usage: ping [-n count] [-w timeout] target_name
\n\n
"
);
WINE_MESSAGE
(
"Options:
\n
"
);
WINE_MESSAGE
(
" -n Number of echo requests to send.
\n
"
);
WINE_MESSAGE
(
" -w Timeout in milliseconds to wait for each reply.
\n
"
);
}
int
main
(
int
argc
,
char
**
argv
)
{
int
n
=
0
;
int
optc
;
WINE_FIXME
(
"this command currently just sleeps based on -n parameter
\n
"
);
while
((
optc
=
getopt
(
argc
,
argv
,
"n:w:tal:fi:v:r:s:j:k:"
))
!=
-
1
)
{
switch
(
optc
)
{
case
'n'
:
n
=
atoi
(
optarg
);
break
;
case
'?'
:
usage
();
exit
(
1
);
default:
usage
();
WINE_FIXME
(
"this command currently only supports the -n parameter
\n
"
);
exit
(
1
);
}
}
Sleep
(
n
*
1000
);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment