Changeset 361 in Main


Ignore:
Timestamp:
Oct 17, 2024, 9:37:10 AM (4 weeks ago)
Author:
Nishi
Message:

works on netware

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Koakumafile

    r354 r361  
    5151                        RunCommand "doas cp tewidist.zip /raid/f/g/tewi/os2/tewidistos2-[exec make get-version]-nossl.zip"
    5252                        RunCommand "doas cp tewidist.zip /raid/ftp/pub/tewi/os2/tewidistos2-[exec make get-version]-nossl.zip"
     53                        return
     54                } elseif { "$project_name" == "Tewi-NetWare" } {
     55                        set ::env(WATCOM) "/usr/watcom"
     56                        set ::env(NOVELLNDK) "/usr/novell/clib"
     57                        set ::env(PATH) "$::env(PATH):/usr/watcom/binl64"
     58                        RunCommand "rm -rf netware"
     59                        RunCommand "make PLATFORM=netware"
     60                        RunCommand "make PLATFORM=netware install DESTDIR=netware/"
     61                        cd netware/SYS:
     62                        RunCommand "zip -rv ../../tewidist.zip Tewi"
     63                        cd ../..
     64                        RunCommand "doas mkdir -p /raid/f/g/tewi/netware"
     65                        RunCommand "doas mkdir -p /raid/ftp/pub/tewi/netware"
     66                        RunCommand "doas cp tewidist.zip /raid/f/g/tewi/netware/tewidistnw-[exec make get-version]-nossl.zip"
     67                        RunCommand "doas cp tewidist.zip /raid/ftp/pub/tewi/os2/tewidistnw-[exec make get-version]-nossl.zip"
    5368                        return
    5469                } elseif { "$project_name" == "Tewi-PSP" } {
  • trunk/Platform/netware.mk

    r356 r361  
    77AR = wlib
    88AR_FLAGS = -q -b -n -fo
    9 CFLAGS = -b netware_clib_lite -I $(NOVELLNDK)/include -I $(NOVELLNDK)/include/nlm -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I ../Common -I ../VC6Compat -fPIC -D__WATCOM_LFN__ -Duint64_t=uint32_t
     9CFLAGS = -b netware_clib_lite -I $(NOVELLNDK)/include -I $(NOVELLNDK)/include/nlm -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I ../Common -I ../VC6Compat -fPIC -D__WATCOM_LFN__ -Duint64_t=uint32_t -DN_PLAT_NLM
    1010LDFLAGS = -b netware_clib_lite
    1111LIBS =
  • trunk/README

    r359 r361  
    4747UnixWare                 Working on 7.1.1
    4848OS/2                     Working
     49NetWare                  Working on 6.5 SP8
    4950DOS                      Working, missing module support and multi-threading
    5051NeXTSTEP                 Working, missing module support
     
    5859I sometimes check they do compile, but does not work:
    5960
    60 NetWare                  Cannot run fopen somehow
    6161PlayStation 2            Does not boot
  • trunk/README.tmpl

    r359 r361  
    4747UnixWare                 Working on 7.1.1
    4848OS/2                     Working
     49NetWare                  Working on 6.5 SP8
    4950DOS                      Working, missing module support and multi-threading
    5051NeXTSTEP                 Working, missing module support
     
    5859I sometimes check they do compile, but does not work:
    5960
    60 NetWare                  Cannot run fopen somehow
    6161PlayStation 2            Does not boot
  • trunk/Server/http.c

    r359 r361  
    2929#endif
    3030#elif defined(__NETWARE__)
     31#include <sys/bsdskt.h>
    3132#include <sys/socket.h>
    3233#else
  • trunk/Server/main.c

    r359 r361  
    4242#include <windows.h>
    4343#elif defined(__NETWARE__)
     44#include <nwnamspc.h>
     45#include <nwthread.h>
     46#include <nwconio.h>
    4447#endif
    4548
     
    549552#ifdef __NETWARE__
    550553        struct arg_struct* parg = malloc(sizeof(*parg));
     554        SetCurrentNameSpace(NW_NS_LONG);
    551555        parg->argc = argc;
    552556        parg->argv = argv;
    553         thread_stuff(parg);
     557        DestroyScreen(GetCurrentScreen());
     558        SetCurrentScreen(CreateScreen("Tewi Console", 0));
     559        BeginThread(thread_stuff, NULL, 0, parg);
     560        ThreadSwitch();
    554561        return 0;
    555562}
  • trunk/Server/server.c

    r359 r361  
    6464typedef int socklen_t;
    6565#elif defined(__NETWARE__)
     66#include <sys/bsdskt.h>
    6667#include <sys/socket.h>
    6768
    6869#define IPPROTO_TCP 0
    6970#define INADDR_ANY 0
    70 #define htons(x) x
    7171#include "strptime.h"
    7272typedef int socklen_t;
     73
     74uint16_t htons(uint16_t n) { return ((n >> 8) & 0xff) | ((n << 8) & 0xff00); }
    7375#elif defined(__DOS__)
    7476#include <netinet/tcp.h>
     
    10111013        struct timeval tv;
    10121014#endif
    1013 #if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
     1015#if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__NETWARE__))
    10141016        struct thread_entry threads[2048];
    10151017        for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) {
     
    10841086                                        _beginthread(tw_server_pass, 0, 0, e);
    10851087#elif defined(__NETWARE__)
    1086                                         tw_server_pass(e);
     1088                                        BeginThread(tw_server_pass, NULL, 0, e);
    10871089#elif defined(__DOS__)
    10881090                                        tw_server_pass(e);
Note: See TracChangeset for help on using the changeset viewer.