Subversion Repositories Kolibri OS

Compare Revisions

No changes between revisions

Regard whitespace Rev 8337 → Rev 8338

/programs/develop/ktcc/trunk/bin/lib/libck.a
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/programs/develop/ktcc/trunk/bin/lib/libnetwork.a
Cannot display: file marked as a binary type.
svn:mime-type = application/x-archive
Property changes:
Added: svn:mime-type
+application/x-archive
\ No newline at end of property
/programs/develop/ktcc/trunk/lib/libnetwork/Makefile
0,0 → 1,7
all:
fasm network.asm
ar -csr libnetwork.a network.o
clean:
rm -f *.o *.a
install:
cp libnetwork.a ../../bin/lib
/programs/develop/ktcc/trunk/lib/libnetwork/network.asm
0,0 → 1,50
format elf
use32 ; Tell compiler to use 32 bit instructions
; ELF section
section '.text' executable
 
 
include '../../../../../proc32.inc'
include '../../../../../macros.inc'
purge section,mov,add,sub
include '../../../../../dll.inc'
 
 
public lib_init as 'networklib_init'
 
 
proc lib_init
local retval dd ?
mov [retval], eax
pusha
mcall 68, 11
test eax, eax
jnz @f
mov [retval], -1
jmp exit_init_networklib
@@:
stdcall dll.Load, @IMPORT
test eax, eax
jz exit_init_networklib
mov [retval], -1
exit_init_networklib:
popa
mov eax, [retval]
ret
endp
 
section '.data' writeable
@IMPORT:
library networklib, 'network.obj'
 
import networklib, \
inet_addr, 'inet_addr', \
inet_ntoa, 'inet_ntoa', \
getaddrinfo, 'getaddrinfo', \
freeaddrinfo, 'freeaddrinfo'
 
public inet_addr as 'inet_addr'
public inet_ntoa as 'inet_ntoa'
public getaddrinfo as 'getaddrinfo'
public freeaddrinfo as 'freeaddrinfo'
/programs/develop/ktcc/trunk/libc/net/network.asm
File deleted
/programs/develop/ktcc/trunk/samples/Makefile
13,6 → 13,7
../bin/kos32-tcc console/console.c -lck -limg -o console/console.kex -I ../libc/include
../bin/kos32-tcc dir_example.c -lck -o dir_example.kex -I ../libc/include
../bin/kos32-tcc net/tcpsrv_demo.c -lck -o net/tcpsrv_demo.kex -I ../libc/include
../bin/kos32-tcc net/nslookup.c -lck -lnetwork -o net/nslookup.kex -I ../libc/include
 
clean:
rm *.kex
/programs/develop/ktcc/trunk/samples/build_all.sh
13,5 → 13,5
../tcc console/console.c -lck -limg -o /tmp0/1/console
../tcc dir_example.c -lck -o /tmp0/1/dir_example
../tcc net/tcpsrv_demo.c -lck -o /tmp0/1/tcpsrv_demo
../tcc net/nslookup.c -lck -o /tmp0/1/nslookup
../tcc net/nslookup.c -lck -lnetwork -o /tmp0/1/nslookup
exit