mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[ROSAPPS] Add "net" subfolder to build and add all stuff which was built by rbuild TOO. Remove useless include I added last time. Fix some warnings in ncftp to keep the -Wno-* at a minimum
svn path=/trunk/; revision=67419
This commit is contained in:
parent
a6acc40a0c
commit
3cd624bc90
15 changed files with 133 additions and 20 deletions
|
@ -3,7 +3,7 @@ add_subdirectory(devutils)
|
||||||
add_subdirectory(explorer-old)
|
add_subdirectory(explorer-old)
|
||||||
add_subdirectory(fraginator)
|
add_subdirectory(fraginator)
|
||||||
add_subdirectory(imagesoft)
|
add_subdirectory(imagesoft)
|
||||||
#add_subdirectory(net)
|
add_subdirectory(net)
|
||||||
add_subdirectory(notevil)
|
add_subdirectory(notevil)
|
||||||
add_subdirectory(screensavers)
|
add_subdirectory(screensavers)
|
||||||
add_subdirectory(sysutils)
|
add_subdirectory(sysutils)
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
gdihv.c
|
gdihv.c
|
||||||
gdihv.rc
|
gdihv.rc
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
set_cpp(WITH_RUNTIME WITH_STL)
|
set_cpp(WITH_RUNTIME WITH_STL)
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
Fraginator.cpp
|
Fraginator.cpp
|
||||||
MainDialog.cpp
|
MainDialog.cpp
|
||||||
|
|
5
rosapps/applications/net/CMakeLists.txt
Normal file
5
rosapps/applications/net/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
add_subdirectory(ncftp)
|
||||||
|
add_subdirectory(netreg)
|
||||||
|
add_subdirectory(niclist)
|
||||||
|
add_subdirectory(roshttpd)
|
||||||
|
add_subdirectory(tditest)
|
75
rosapps/applications/net/ncftp/CMakeLists.txt
Normal file
75
rosapps/applications/net/ncftp/CMakeLists.txt
Normal file
|
@ -0,0 +1,75 @@
|
||||||
|
|
||||||
|
list(APPEND SOURCE
|
||||||
|
sio/PRead.c
|
||||||
|
sio/PWrite.c
|
||||||
|
sio/SAcceptA.c
|
||||||
|
sio/SAcceptS.c
|
||||||
|
sio/SBind.c
|
||||||
|
sio/SClose.c
|
||||||
|
sio/SConnect.c
|
||||||
|
sio/SConnectByName.c
|
||||||
|
sio/SNew.c
|
||||||
|
sio/SRead.c
|
||||||
|
sio/SReadline.c
|
||||||
|
sio/SRecv.c
|
||||||
|
sio/SRecvfrom.c
|
||||||
|
sio/SRecvmsg.c
|
||||||
|
sio/SSelect.c
|
||||||
|
sio/SSend.c
|
||||||
|
sio/SSendto.c
|
||||||
|
sio/SSendtoByName.c
|
||||||
|
sio/SWrite.c
|
||||||
|
sio/SocketUtil.c
|
||||||
|
sio/StrAddr.c
|
||||||
|
sio/UAcceptA.c
|
||||||
|
sio/UAcceptS.c
|
||||||
|
sio/UBind.c
|
||||||
|
sio/UConnect.c
|
||||||
|
sio/UConnectByName.c
|
||||||
|
sio/UNew.c
|
||||||
|
sio/URecvfrom.c
|
||||||
|
sio/USendto.c
|
||||||
|
sio/USendtoByName.c
|
||||||
|
sio/SError.c
|
||||||
|
sio/SWait.c
|
||||||
|
sio/main.c
|
||||||
|
Strn/Dynscat.c
|
||||||
|
Strn/Strncpy.c
|
||||||
|
Strn/Strncat.c
|
||||||
|
Strn/Strntok.c
|
||||||
|
Strn/Strnpcpy.c
|
||||||
|
Strn/Strnpcat.c
|
||||||
|
Strn/strtokc.c
|
||||||
|
Strn/version.c
|
||||||
|
libncftp/open.c
|
||||||
|
libncftp/cmds.c
|
||||||
|
libncftp/util.c
|
||||||
|
libncftp/rcmd.c
|
||||||
|
libncftp/ftp.c
|
||||||
|
libncftp/io.c
|
||||||
|
libncftp/errno.c
|
||||||
|
libncftp/linelist.c
|
||||||
|
libncftp/glob.c
|
||||||
|
ncftp/cmds.c
|
||||||
|
ncftp/cmdlist.c
|
||||||
|
ncftp/getopt.c
|
||||||
|
ncftp/ls.c
|
||||||
|
ncftp/main.c
|
||||||
|
ncftp/version.c
|
||||||
|
ncftp/shell.c
|
||||||
|
ncftp/util.c
|
||||||
|
ncftp/readln.c
|
||||||
|
ncftp/progress.c
|
||||||
|
ncftp/bookmark.c
|
||||||
|
ncftp/pref.c
|
||||||
|
ncftp/preffw.c
|
||||||
|
ncftp/trace.c
|
||||||
|
ncftp/spool.c
|
||||||
|
ncftp/log.c
|
||||||
|
ncftp/getline.c)
|
||||||
|
|
||||||
|
add_executable(ncftp ${SOURCE} ncftp.rc)
|
||||||
|
set_module_type(ncftp win32cui)
|
||||||
|
add_target_compile_flags(ncftp "-Wno-unused-but-set-variable -Wno-implicit-function-declaration -Wno-format-extra-args")
|
||||||
|
add_importlibs(ncftp advapi32 user32 ws2_32 msvcrt kernel32)
|
||||||
|
add_cd_file(TARGET ncftp DESTINATION reactos FOR all)
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
char gLibNcFTPVersion[64] = kLibraryVersion;
|
char gLibNcFTPVersion[64] = kLibraryVersion;
|
||||||
|
|
||||||
#ifdef NO_SIGNALS
|
/* #ifdef NO_SIGNALS
|
||||||
static char gNoSignalsMarker[] = "@(#) LibNcFTP - NO_SIGNALS";
|
static char gNoSignalsMarker[] = "@(#) LibNcFTP - NO_SIGNALS";
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
@ -19,9 +19,9 @@ static int gGotSig = 0;
|
||||||
static sigjmp_buf gCancelConnectJmp;
|
static sigjmp_buf gCancelConnectJmp;
|
||||||
#else
|
#else
|
||||||
static jmp_buf gCancelConnectJmp;
|
static jmp_buf gCancelConnectJmp;
|
||||||
#endif /* HAVE_SIGSETJMP */
|
#endif
|
||||||
|
|
||||||
#endif /* NO_SIGNALS */
|
#endif */
|
||||||
|
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
|
|
@ -13,13 +13,13 @@ extern void GetSpecialDir(char *dst, size_t size, int whichDir);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static void *
|
/* static void *
|
||||||
Realloc(void *ptr, size_t siz)
|
Realloc(void *ptr, size_t siz)
|
||||||
{
|
{
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
return (void *) malloc(siz);
|
return (void *) malloc(siz);
|
||||||
return ((void *) realloc(ptr, siz));
|
return ((void *) realloc(ptr, siz));
|
||||||
} /* Realloc */
|
}*/
|
||||||
|
|
||||||
|
|
||||||
/* Use getcwd/getwd to get the full path of the current local
|
/* Use getcwd/getwd to get the full path of the current local
|
||||||
|
|
|
@ -1375,7 +1375,7 @@ ListCmd(const int argc, const char **const argv, const CommandPtr cmdp, const Ar
|
||||||
char options[32];
|
char options[32];
|
||||||
char option[2];
|
char option[2];
|
||||||
volatile int listmode;
|
volatile int listmode;
|
||||||
FILE *volatile stream;
|
FILE *stream;
|
||||||
volatile int paging;
|
volatile int paging;
|
||||||
#if defined(WIN32) || defined(_WINDOWS)
|
#if defined(WIN32) || defined(_WINDOWS)
|
||||||
#else
|
#else
|
||||||
|
@ -1557,7 +1557,7 @@ LocalListCmd(const int argc, const char **const argv, const CommandPtr cmdp, con
|
||||||
char options[32];
|
char options[32];
|
||||||
char option[2];
|
char option[2];
|
||||||
volatile int listmode;
|
volatile int listmode;
|
||||||
FILE *volatile stream;
|
FILE *stream;
|
||||||
volatile int paging;
|
volatile int paging;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1703,7 +1703,7 @@ LocalListCmd(const int argc, const char **const argv, const CommandPtr cmdp, con
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
/* static void
|
||||||
Sys(const int argc, const char **const argv, const ArgvInfoPtr aip, const char *syscmd, int noDQuote)
|
Sys(const int argc, const char **const argv, const ArgvInfoPtr aip, const char *syscmd, int noDQuote)
|
||||||
{
|
{
|
||||||
char cmd[256];
|
char cmd[256];
|
||||||
|
@ -1730,7 +1730,7 @@ Sys(const int argc, const char **const argv, const ArgvInfoPtr aip, const char *
|
||||||
Trace(0, "Sys: %s\n", cmd);
|
Trace(0, "Sys: %s\n", cmd);
|
||||||
(void) system(cmd);
|
(void) system(cmd);
|
||||||
#endif
|
#endif
|
||||||
} /* Sys */
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,8 @@ static const char copyright[] = "getline: Copyright (C) 1991, 1992, 1993, Chris
|
||||||
# include <conio.h>
|
# include <conio.h>
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
# define strcasecmp stricmp
|
// # define strcasecmp stricmp
|
||||||
# define strncasecmp strnicmp
|
// # define strncasecmp strnicmp
|
||||||
# define sleep(a) Sleep(a * 1000)
|
# define sleep(a) Sleep(a * 1000)
|
||||||
# ifndef S_ISREG
|
# ifndef S_ISREG
|
||||||
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
||||||
|
@ -152,8 +152,8 @@ static char gl_killbuf[GL_BUF_SIZE]=""; /* killed text */
|
||||||
static const char *gl_prompt; /* to save the prompt string */
|
static const char *gl_prompt; /* to save the prompt string */
|
||||||
static char gl_intrc = 0; /* keyboard SIGINT char */
|
static char gl_intrc = 0; /* keyboard SIGINT char */
|
||||||
static char gl_quitc = 0; /* keyboard SIGQUIT char */
|
static char gl_quitc = 0; /* keyboard SIGQUIT char */
|
||||||
static char gl_suspc = 0; /* keyboard SIGTSTP char */
|
// static char gl_suspc = 0; /* keyboard SIGTSTP char */
|
||||||
static char gl_dsuspc = 0; /* delayed SIGTSTP char */
|
// static char gl_dsuspc = 0; /* delayed SIGTSTP char */
|
||||||
static int gl_search_mode = 0; /* search mode flag */
|
static int gl_search_mode = 0; /* search mode flag */
|
||||||
static char **gl_matchlist = 0;
|
static char **gl_matchlist = 0;
|
||||||
static char *gl_home_dir = NULL;
|
static char *gl_home_dir = NULL;
|
||||||
|
|
|
@ -122,7 +122,7 @@ InitConnectionInfo(void)
|
||||||
UseTrace();
|
UseTrace();
|
||||||
(void) STRNCPY(gConn.user, "anonymous");
|
(void) STRNCPY(gConn.user, "anonymous");
|
||||||
gConn.host[0] = '\0';
|
gConn.host[0] = '\0';
|
||||||
gConn.progress = gProgressMeter;
|
gConn.progress = NULL;
|
||||||
gTransferTypeInitialized = 0;
|
gTransferTypeInitialized = 0;
|
||||||
gTransferType = kTypeBinary;
|
gTransferType = kTypeBinary;
|
||||||
gConn.leavePass = 1; /* Don't let the lib zap it. */
|
gConn.leavePass = 1; /* Don't let the lib zap it. */
|
||||||
|
|
|
@ -1132,7 +1132,7 @@ void SysPerror(const char *const errMsg)
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
if (reason[strlen(reason) - 1] = '\n')
|
if (reason[strlen(reason) - 1] == '\n')
|
||||||
reason[strlen(reason) - 1] = '\0';
|
reason[strlen(reason) - 1] = '\0';
|
||||||
(void) fprintf(stderr, "%s: %s\n", errMsg, reason);
|
(void) fprintf(stderr, "%s: %s\n", errMsg, reason);
|
||||||
} /* SysPerror */
|
} /* SysPerror */
|
||||||
|
|
6
rosapps/applications/net/netreg/CMakeLists.txt
Normal file
6
rosapps/applications/net/netreg/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
set_cpp(WITH_RUNTIME WITH_STL)
|
||||||
|
add_executable(netreg netreg.cpp netreg.rc)
|
||||||
|
set_module_type(netreg win32cui)
|
||||||
|
add_importlibs(netreg advapi32 user32 ws2_32 msvcrt kernel32)
|
||||||
|
add_cd_file(TARGET netreg DESTINATION reactos/system32 FOR all)
|
5
rosapps/applications/net/niclist/CMakeLists.txt
Normal file
5
rosapps/applications/net/niclist/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
add_executable(niclist niclist.c niclist.rc)
|
||||||
|
set_module_type(niclist win32cui)
|
||||||
|
add_importlibs(niclist user32 msvcrt kernel32)
|
||||||
|
add_cd_file(TARGET niclist DESTINATION reactos/system32 FOR all)
|
19
rosapps/applications/net/roshttpd/CMakeLists.txt
Normal file
19
rosapps/applications/net/roshttpd/CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
|
||||||
|
set_cpp(WITH_RUNTIME WITH_STL WITH_EXCEPTIONS)
|
||||||
|
include_directories(BEFORE include)
|
||||||
|
add_compile_flags("-D__USE_W32_SOCKETS")
|
||||||
|
|
||||||
|
list(APPEND SOURCE
|
||||||
|
config.cpp
|
||||||
|
error.cpp
|
||||||
|
http.cpp
|
||||||
|
httpd.cpp
|
||||||
|
roshttpd.cpp
|
||||||
|
common/list.cpp
|
||||||
|
common/socket.cpp
|
||||||
|
common/thread.cpp)
|
||||||
|
|
||||||
|
add_executable(roshttpd ${SOURCE} common/roshttpd.rc)
|
||||||
|
set_module_type(roshttpd win32cui)
|
||||||
|
add_importlibs(roshttpd user32 ws2_32 msvcrt kernel32)
|
||||||
|
add_cd_file(TARGET roshttpd DESTINATION reactos FOR all)
|
7
rosapps/applications/net/tditest/CMakeLists.txt
Normal file
7
rosapps/applications/net/tditest/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
include_directories(include)
|
||||||
|
add_executable(tditest tditest/tditest.c tditest.rc)
|
||||||
|
set_module_type(tditest kernelmodedriver)
|
||||||
|
target_link_libraries(tditest ${PSEH_LIB})
|
||||||
|
add_importlibs(tditest ntoskrnl hal)
|
||||||
|
add_cd_file(TARGET tditest DESTINATION reactos/system32/drivers FOR all)
|
Loading…
Reference in a new issue