Changeset 496
- Timestamp:
- Jun 8, 2006 11:43:42 PM (18 years ago)
- Location:
- pjproject/branches/symbian
- Files:
-
- 3 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/symbian/build/host-win32.mak
r65 r496 1 1 export HOST_MV := ren 2 export HOST_RM := if exist @@; del /F /Q @@3 export HOST_RMR := if exist @@; del /F /Q @@4 export HOST_RMDIR := if exist @@; rmdir @@2 export HOST_RM := if exist @@; del /F /Q /S @@ 3 export HOST_RMR := if exist @@; del /F /Q /S @@ 4 export HOST_RMDIR := if exist @@; rmdir /S /Q @@ 5 5 export HOST_MKDIR := if not exist @@; mkdir @@ 6 6 export HOST_EXE := .exe -
pjproject/branches/symbian/build/os-symbian.mak
r478 r496 1 export OS_CFLAGS := $(CC_DEF)PJ_SYMBIAN=1 -I$(SYMBIAN_SDK_PATH)/include -I$(SYMBIAN_SDK_PATH)/include/libc - O1 export OS_CFLAGS := $(CC_DEF)PJ_SYMBIAN=1 -I$(SYMBIAN_SDK_PATH)/include -I$(SYMBIAN_SDK_PATH)/include/libc -I../src/pjlib-test -O 2 2 3 3 export OS_CXXFLAGS := -
pjproject/branches/symbian/pjlib/build/Makefile
r431 r496 28 28 types.o symbols.o 29 29 export PJLIB_CFLAGS += $(_CFLAGS) 30 export PJLIB_CXXFLAGS += $(_CXXFLAGS) 30 31 31 32 ############################################################################### -
pjproject/branches/symbian/pjlib/build/os-symbian.mak
r478 r496 8 8 # to all operating systems should go in Makefile instead. 9 9 # 10 export PJLIB_OBJS += 10 export PJLIB_OBJS += addr_resolv_sock.o file_access_unistd.o \ 11 file_io_ansi.o guid_simple.o \ 12 log_writer_stdout.o os_core_symbian.o \ 13 os_error_unix.o os_time_unix.o \ 14 os_timestamp_common.o os_timestamp_posix.o \ 15 pool_policy_malloc.o compat/string.o sock_bsd.o sock_select.o 11 16 12 17 # … … 31 36 # operating system. 32 37 # 33 export TARGETS = pjlib pjlib-test.bas 34 35 pjlib-test.bas: pjlib-test 36 @echo [creating bas] 38 export TARGETS = pjlib pjlib-test 37 39 38 40 39 41 40 41 -
pjproject/branches/symbian/pjlib/include/pj/compat/os_symbian.h
r478 r496 41 41 #define PJ_HAS_STDLIB_H 1 42 42 #define PJ_HAS_STRING_H 1 43 #define PJ_HAS_NO_SNPRINTF 1 43 44 #define PJ_HAS_SYS_IOCTL_H 1 44 45 #define PJ_HAS_SYS_SELECT_H 0 … … 101 102 */ 102 103 103 /*#define NULL ((void*)0)104 */ 104 #define NULL ((void*)0) 105 105 106 /* 106 107 * Override features. … … 134 135 #define PJ_THREAD_ALLOCATE_STACK 0 135 136 137 /* Missing socklen_t */ 138 typedef unsigned int socklen_t; 139 136 140 #endif /* __PJ_COMPAT_OS_SYMBIAN_H__ */ 137 141 -
pjproject/branches/symbian/pjlib/include/pj/config.h
r478 r496 32 32 #elif defined(__GNUC__) 33 33 # include <pj/compat/cc_gcc.h> 34 #elif defined(__CW32__) 35 # include <pj/compat/cc_mwcc.h> 34 36 #else 35 37 # error "Unknown compiler." -
pjproject/branches/symbian/pjlib/include/pj/sock.h
r348 r496 61 61 */ 62 62 extern const pj_uint16_t PJ_AF_UNIX; /**< Unix domain socket. */ 63 #define PJ_AF_LOCAL PJ_AF_UNIX; /**< POSIX name for AF_UNIX */ 63 extern const pj_uint16_t PJ_AF_LOCAL; /**< Unix domain socket. */ 64 64 65 extern const pj_uint16_t PJ_AF_INET; /**< Internet IP protocol. */ 66 65 67 extern const pj_uint16_t PJ_AF_INET6; /**< IP version 6. */ 66 68 extern const pj_uint16_t PJ_AF_PACKET; /**< Packet family. */ -
pjproject/branches/symbian/pjlib/src/pj/config.c
r468 r496 1 1 /* $Id$ */ 2 /* 2 /* 3 3 * Copyright (C)2003-2006 Benny Prijono <benny@prijono.org> 4 4 * … … 15 15 * You should have received a copy of the GNU General Public License 16 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 19 #include <pj/config.h> … … 32 32 PJ_LOG(3, (id, " PJ_HAS_PENTIUM : %d", PJ_HAS_PENTIUM)); 33 33 PJ_LOG(3, (id, " PJ_OS_NAME : %s", PJ_OS_NAME)); 34 PJ_LOG(3, (id, " PJ_CC_NAME/VER_(1,2,3) : %s-%d.%d.%d", PJ_CC_NAME,35 PJ_CC_VER_1, PJ_CC_VER_2, PJ_CC_VER_3)); 36 PJ_LOG(3, (id, " PJ_IS_(BIG/LITTLE)_ENDIAN : %s", 34 /* PJ_LOG(3, (id, " PJ_CC_NAME/VER_(1,2,3) : %s-%d.%d.%d", PJ_CC_NAME, 35 PJ_CC_VER_1, PJ_CC_VER_2, PJ_CC_VER_3));*/ 36 PJ_LOG(3, (id, " PJ_IS_(BIG/LITTLE)_ENDIAN : %s", 37 37 (PJ_IS_BIG_ENDIAN?"big-endian":"little-endian"))); 38 38 PJ_LOG(3, (id, " PJ_HAS_INT64 : %d", PJ_HAS_INT64)); -
pjproject/branches/symbian/pjlib/src/pj/sock_bsd.c
r433 r496 29 29 * The values here are indexed based on pj_addr_family. 30 30 */ 31 #ifdef AF_UNIX 31 32 const pj_uint16_t PJ_AF_UNIX = AF_UNIX; 33 const pj_uint16_t PJ_AF_LOCAL = AF_UNIX; 34 #else 35 const pj_uint16_t PJ_AF_UNIX = 0xFFFF; 36 #ifdef AF_LOCAL 37 const pj_uint16_t PJ_AF_LOCAL = AF_LOCAL; 38 #else 39 const pj_uint16_t PJ_AF_LOCAL = 0xFFFF; 40 #endif 41 #endif 32 42 const pj_uint16_t PJ_AF_INET = AF_INET; 43 #ifdef AF_INET6 33 44 const pj_uint16_t PJ_AF_INET6 = AF_INET6; 45 #else 46 const pj_uint16_t PJ_AF_INET6 = 0xFFFF; 47 #endif 34 48 #ifdef AF_PACKET 35 49 const pj_uint16_t PJ_AF_PACKET = AF_PACKET; … … 50 64 const pj_uint16_t PJ_SOCK_DGRAM = SOCK_DGRAM; 51 65 const pj_uint16_t PJ_SOCK_RAW = SOCK_RAW; 66 #ifdef SOCK_RDM 52 67 const pj_uint16_t PJ_SOCK_RDM = SOCK_RDM; 68 #else 69 const pj_uint16_t PJ_SOCK_RDM = 0xFFFF; 70 #endif 53 71 54 72 /* … … 78 96 79 97 /* optname values. */ 98 #ifdef SO_TYPE 80 99 const pj_uint16_t PJ_SO_TYPE = SO_TYPE; 100 #else 101 const pj_uint16_t PJ_SO_TYPE = 0xFFFF; 102 #endif 81 103 const pj_uint16_t PJ_SO_RCVBUF = SO_RCVBUF; 82 104 const pj_uint16_t PJ_SO_SNDBUF = SO_SNDBUF; … … 462 484 PJ_ASSERT_RETURN(len, PJ_EINVAL); 463 485 486 #if !defined(PJ_SYMBIAN) && PJ_SYMBIAN == 0 464 487 *len = sendto(sock, (const char*)buf, *len, flags, 465 488 (const struct sockaddr*)to, tolen); 489 #else 490 *len = sendto(sock, (const char*)buf, *len, flags, 491 (struct sockaddr*)to, tolen); 492 #endif 466 493 467 494 if (*len < 0) … … 543 570 { 544 571 PJ_CHECK_STACK(); 572 #if !defined(PJ_SYMBIAN) && PJ_SYMBIAN == 0 545 573 if (setsockopt(sock, level, optname, (const char*)optval, optlen) != 0) 574 #else 575 if (setsockopt(sock, level, optname, (void *)optval, optlen) != 0) 576 #endif 546 577 return PJ_RETURN_OS_ERROR(pj_get_native_netos_error()); 547 578 else -
pjproject/branches/symbian/pjlib/src/pj/symbols.c
r66 r496 249 249 PJ_EXPORT_SYMBOL(PJ_AF_UNIX) 250 250 PJ_EXPORT_SYMBOL(PJ_AF_INET) 251 #ifdef AF_INET6 251 252 PJ_EXPORT_SYMBOL(PJ_AF_INET6) 253 #endif 252 254 PJ_EXPORT_SYMBOL(PJ_AF_PACKET) 253 255 PJ_EXPORT_SYMBOL(PJ_AF_IRDA) -
pjproject/branches/symbian/pjlib/src/pjlib-test/test.h
r433 r496 1 1 /* $Id$ */ 2 /* 2 /* 3 3 * Copyright (C)2003-2006 Benny Prijono <benny@prijono.org> 4 4 * … … 15 15 * You should have received a copy of the GNU General Public License 16 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 19 #ifndef __PJLIB_TEST_H__ … … 42 42 #define INCLUDE_MUTEX_TEST GROUP_OS 43 43 #define INCLUDE_SLEEP_TEST GROUP_OS 44 #define INCLUDE_THREAD_TEST GROUP_OS 44 #define INCLUDE_THREAD_TEST GROUP_OS 45 45 #define INCLUDE_SOCK_TEST GROUP_NETWORK 46 46 #define INCLUDE_SOCK_PERF_TEST GROUP_NETWORK … … 49 49 #define INCLUDE_TCP_IOQUEUE_TEST GROUP_NETWORK 50 50 #define INCLUDE_IOQUEUE_PERF_TEST GROUP_NETWORK 51 #define INCLUDE_IOQUEUE_UNREG_TEST 1// GROUP_NETWORK51 #define INCLUDE_IOQUEUE_UNREG_TEST 0 // GROUP_NETWORK 52 52 #define INCLUDE_FILE_TEST GROUP_FILE 53 53
Note: See TracChangeset
for help on using the changeset viewer.