add_subdirectory(explorer-old)
add_subdirectory(fraginator)
add_subdirectory(imagesoft)
-#add_subdirectory(net)
+add_subdirectory(net)
add_subdirectory(notevil)
add_subdirectory(screensavers)
add_subdirectory(sysutils)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR})
-
list(APPEND SOURCE
gdihv.c
gdihv.rc
set_cpp(WITH_RUNTIME WITH_STL)
-include_directories(${CMAKE_CURRENT_SOURCE_DIR})
-
list(APPEND SOURCE
Fraginator.cpp
MainDialog.cpp
--- /dev/null
+add_subdirectory(ncftp)
+add_subdirectory(netreg)
+add_subdirectory(niclist)
+add_subdirectory(roshttpd)
+add_subdirectory(tditest)
--- /dev/null
+
+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)
char gLibNcFTPVersion[64] = kLibraryVersion;
-#ifdef NO_SIGNALS
+/* #ifdef NO_SIGNALS
static char gNoSignalsMarker[] = "@(#) LibNcFTP - NO_SIGNALS";
#else
static sigjmp_buf gCancelConnectJmp;
#else
static jmp_buf gCancelConnectJmp;
-#endif /* HAVE_SIGSETJMP */
+#endif
-#endif /* NO_SIGNALS */
+#endif */
#ifndef lint
#endif
-static void *
+/* static void *
Realloc(void *ptr, size_t siz)
{
if (ptr == NULL)
return (void *) malloc(siz);
return ((void *) realloc(ptr, siz));
-} /* Realloc */
+}*/
/* Use getcwd/getwd to get the full path of the current local
char options[32];
char option[2];
volatile int listmode;
- FILE *volatile stream;
+ FILE *stream;
volatile int paging;
#if defined(WIN32) || defined(_WINDOWS)
#else
char options[32];
char option[2];
volatile int listmode;
- FILE *volatile stream;
+ FILE *stream;
volatile int paging;
-static void
+/* static void
Sys(const int argc, const char **const argv, const ArgvInfoPtr aip, const char *syscmd, int noDQuote)
{
char cmd[256];
Trace(0, "Sys: %s\n", cmd);
(void) system(cmd);
#endif
-} /* Sys */
+}*/
# include <conio.h>
# include <io.h>
# include <fcntl.h>
-# define strcasecmp stricmp
-# define strncasecmp strnicmp
+// # define strcasecmp stricmp
+// # define strncasecmp strnicmp
# define sleep(a) Sleep(a * 1000)
# ifndef S_ISREG
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
static const char *gl_prompt; /* to save the prompt string */
static char gl_intrc = 0; /* keyboard SIGINT char */
static char gl_quitc = 0; /* keyboard SIGQUIT char */
-static char gl_suspc = 0; /* keyboard SIGTSTP char */
-static char gl_dsuspc = 0; /* delayed SIGTSTP char */
+// static char gl_suspc = 0; /* keyboard SIGTSTP char */
+// static char gl_dsuspc = 0; /* delayed SIGTSTP char */
static int gl_search_mode = 0; /* search mode flag */
static char **gl_matchlist = 0;
static char *gl_home_dir = NULL;
UseTrace();
(void) STRNCPY(gConn.user, "anonymous");
gConn.host[0] = '\0';
- gConn.progress = gProgressMeter;
+ gConn.progress = NULL;
gTransferTypeInitialized = 0;
gTransferType = kTypeBinary;
gConn.leavePass = 1; /* Don't let the lib zap it. */
NULL
);
- if (reason[strlen(reason) - 1] = '\n')
+ if (reason[strlen(reason) - 1] == '\n')
reason[strlen(reason) - 1] = '\0';
(void) fprintf(stderr, "%s: %s\n", errMsg, reason);
} /* SysPerror */
--- /dev/null
+
+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)
--- /dev/null
+
+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)
--- /dev/null
+
+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)
--- /dev/null
+
+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)