Changeset 147
- Timestamp:
- Aug 19, 2008, 3:26:53 PM (17 years ago)
- Location:
- branches/client-1.5/src
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-1.5/src/Config.km_
r146 r147 5 5 VERSION = 1.4.9 6 6 BUILD = Alpha_1 7 SAMBA = ../../samba-3.0 /source7 SAMBA = ../../samba-3.0 8 8 TOOLKIT = f:/dev/toolkit452 -
branches/client-1.5/src/Makefile.kmk
r146 r147 2 2 # please define (as env variables or kmk command line) the following variables before starting: 3 3 # BUILD_PLATFORM = os2 4 # BUILD_ MODE = release|debug4 # BUILD_TYPE = release|debug 5 5 # 6 6 # Copy Config.km_ to Config.kmk and edit it to match your installation. … … 13 13 DLLS = ndpsmb 14 14 15 #ndpsmb_INST = $(DEPTH)/bin16 15 ndpsmb_SOURCES = \ 17 16 rc/rc.rc \ … … 20 19 debug.c \ 21 20 printf.c \ 21 util.c \ 22 22 smbwrp.c 23 23 24 ndpsmb_CFLAGS = -s -Zomf -O3 -march=pentium -mcpu=pentium4 25 ndpsmb_LDFLAGS = -s -Zomf -Zno-fork -Zmap -Zbin-files 26 ndpsmb_CFLAGS.debug = -g -Zomf -O0 -march=pentium -mcpu=pentium4 -DDEBUG_PRINTF 27 ndpsmb_LDFLAGS.debug = -g -Zomf -Zno-fork -Zmap -Zbin-files 24 ndpsmb_CFLAGS = -Zomf 25 ndpsmb_CFLAGS.release = -s -O3 -march=pentium -mcpu=pentium4 26 ndpsmb_CFLAGS.debug = -g -O0 -DDEBUG_PRINTF 27 ndpsmb_LDFLAGS = -Zomf -Zno-fork -Zmap -Zbin-files 28 ndpsmb_LDFLAGS.release = -s 29 ndpsmb_LDFLAGS.debug = -g 28 30 29 31 ndpsmb_DEFS = 30 32 ndpsmb_INCS = ./h ./rc \ 31 $(SAMBA) \32 $(SAMBA)/ include \33 $(SAMBA)/ lib/replace \34 $(SAMBA)/ popt \35 $(SAMBA)/ lib/talloc \36 $(SAMBA)/ librpc \37 $(SAMBA)/ tdb/include33 $(SAMBA)/source \ 34 $(SAMBA)/source/include \ 35 $(SAMBA)/source/lib/replace \ 36 $(SAMBA)/source/popt \ 37 $(SAMBA)/source/lib/talloc \ 38 $(SAMBA)/source/librpc \ 39 $(SAMBA)/source/tdb/include 38 40 39 41 ndpsmb_LIBS = libsmbclient.a socket.a 40 ndpsmb_LIBPATH = $(SAMBA)/ bin42 ndpsmb_LIBPATH = $(SAMBA)/source/bin 41 43 42 ndpsmb_CLEAN = rc/description.rc ndpsmb.hlp44 ndpsmb_CLEAN = rc/description.rc $(PATH_BIN)/ndpsmb.hlp 43 45 44 46 #build other files (e.g. help) 45 OTHERS = ndpsmb.hlp47 OTHERS = $(PATH_BIN)/ndpsmb.hlp 46 48 47 # without this rule, kmk will fail! 48 PROGRAMS = 49 49 # now include standard code 50 50 include $(PATH_KBUILD)/rules.kMk 51 51 … … 60 60 @BldLevelInf0.cmd $(VERSION) $(BUILD) 61 61 62 ndpsmb.hlp: ./rc/rc.ipf ./rc/rc.h ./H/hmacros.h config.kmk62 $(PATH_BIN)/ndpsmb.hlp: ./rc/rc.ipf ./rc/rc.h ./H/hmacros.h config.kmk 63 63 -gcc -E -I./h -I./rc -x c ./rc/rc.ipf > rc.i 64 $(TOOLKIT)\bin\ipfc.exe rc.i ndpsmb.hlp /COUNTRY=001 /CODEPAGE=850 64 -@mkdir $(PATH_BIN) 65 $(TOOLKIT)\bin\ipfc.exe rc.i $(PATH_BIN)/ndpsmb.hlp /COUNTRY=001 /CODEPAGE=850 65 66 rm rc.i 66 67 -
branches/client-1.5/src/ndpsmb.c
r146 r147 7 7 #define INCL_LONGLONG 8 8 #include <ndextpl2.h> 9 #include <smbwrp.h> 9 #include "smbwrp.h" 10 #include "util.h" 10 11 11 12 #ifndef DEBUG_PRINTF -
branches/client-1.5/src/smbwrp.c
r145 r147 89 89 /* 90 90 * Wrapper for cli_errno to return not connected error on negative fd 91 * Now returns an OS/2 return code instead of lerrno. 91 92 */ 92 93 int os2cli_errno(cli_state * cli) … … 96 97 return ENOTCONN; 97 98 } 98 return cli_errno(cli);99 return maperror(cli_errno(cli)); 99 100 } 100 101 … … 1699 1700 } 1700 1701 1701 1702 char * getlastslash(char * path)1703 {1704 char * p;1705 if (!path)1706 {1707 return NULL;1708 }1709 for (p = path + strlen(path) - 1; p >= path; p--)1710 {1711 if (*p == '\\' || *p == '/')1712 {1713 return p;1714 }1715 }1716 return NULL;1717 }1718
Note:
See TracChangeset
for help on using the changeset viewer.