Changes in / [178e2f8:e0f9170]
- Files:
-
- 3 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
.bzrignore
r178e2f8 re0f9170 19 19 coverage 20 20 bitlbee.info 21 bitlbee.exe -
Makefile
r178e2f8 re0f9170 10 10 11 11 # Program variables 12 objects = account.o bitlbee.o c rypting.o help.o ipc.o irc.o irc_commands.o nick.o query.o root_commands.o set.o storage.o $(STORAGE_OBJS)user.o12 objects = account.o bitlbee.o conf.o crypting.o help.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o $(STORAGE_OBJS) unix.o user.o 13 13 headers = account.h bitlbee.h commands.h conf.h config.h crypting.h help.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h user.h lib/events.h lib/http_client.h lib/ini.h lib/md5.h lib/misc.h lib/proxy.h lib/sha1.h lib/ssl_client.h lib/url.h protocols/nogaim.h 14 14 subdirs = lib protocols 15 16 ifeq ($(TARGET),i586-mingw32msvc)17 objects += win32.o18 LFLAGS+=-lws2_3219 EFLAGS+=-lsecur3220 OUTFILE=bitlbee.exe21 else22 objects += unix.o conf.o log.o23 OUTFILE=bitlbee24 endif25 15 26 16 # Expansion of variables -
bitlbee.c
r178e2f8 re0f9170 123 123 ipc_master_listen_socket(); 124 124 125 #ifndef _WIN32126 125 if( ( fp = fopen( global.conf->pidfile, "w" ) ) ) 127 126 { … … 133 132 log_message( LOGLVL_WARNING, "Warning: Couldn't write PID to `%s'", global.conf->pidfile ); 134 133 } 135 #endif136 134 137 135 return( 0 ); … … 142 140 if( !irc_new( 0 ) ) 143 141 return( 1 ); 142 143 log_link( LOGLVL_ERROR, LOGOUTPUT_IRC ); 144 log_link( LOGLVL_WARNING, LOGOUTPUT_IRC ); 144 145 145 146 return( 0 ); … … 253 254 struct sockaddr_in conn_info; 254 255 int new_socket = accept( global.listen_socket, (struct sockaddr *) &conn_info, &size ); 256 pid_t client_pid = 0; 255 257 256 258 if( new_socket == -1 ) … … 260 262 } 261 263 262 #ifndef _WIN32263 264 if( global.conf->runmode == RUNMODE_FORKDAEMON ) 264 265 { 265 pid_t client_pid = 0;266 266 int fds[2]; 267 267 … … 320 320 } 321 321 else 322 #endif323 322 { 324 323 log_message( LOGLVL_INFO, "Creating new connection with fd %d.", new_socket ); -
bitlbee.h
r178e2f8 re0f9170 29 29 #define _GNU_SOURCE /* Stupid GNU :-P */ 30 30 31 /* Depend on Windows 2000 for now since we need getaddrinfo() */32 #define _WIN32_WINNT 0x050133 34 31 #define PACKAGE "BitlBee" 35 32 #define BITLBEE_VERSION "1.2.1" … … 51 48 #include <stdio.h> 52 49 #include <ctype.h> 53 #include <errno.h>54 55 50 #ifndef _WIN32 56 51 #include <syslog.h> 52 #include <errno.h> 57 53 #endif 58 54 -
configure
r178e2f8 re0f9170 20 20 ipcsocket='/var/run/bitlbee.sock' 21 21 pcdir='$prefix/lib/pkgconfig' 22 systemlibdirs="/lib /usr/lib /usr/local/lib"23 22 24 23 msn=1 … … 110 109 PCDIR=$pcdir 111 110 112 TARGET=$target113 111 ARCH=$arch 114 112 CPU=$cpu 113 OUTFILE=bitlbee 115 114 116 115 DESTDIR= … … 135 134 EOF 136 135 137 138 139 136 if [ -n "$target" ]; then 140 PKG_CONFIG_LIBDIR=/usr/$target/lib/pkgconfig 141 export PKG_CONFIG_LIBDIR 137 PKG_CONFIG_PATH=/usr/$target/lib/pkgconfig 142 138 PATH=/usr/$target/bin:$PATH 143 139 CC=$target-cc 144 140 LD=$target-ld 145 systemlibdirs="/usr/$target/lib" 146 fi 147 141 fi 148 142 149 143 if [ "$debug" = "1" ]; then … … 291 285 elif [ "$ssl" = "nss" ]; then 292 286 detect_nss 293 elif [ "$ssl" = "sspi" ]; then294 echo295 287 elif [ "$ssl" = "openssl" ]; then 296 288 echo … … 349 341 echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings 350 342 351 for i in $systemlibdirs; do343 for i in /lib /usr/lib /usr/local/lib; do 352 344 if [ -f $i/libresolv.a ]; then 353 345 echo '#define HAVE_RESOLV_A' >> config.h … … 509 501 echo 'Cygwin is not officially supported.' 510 502 ;; 511 Windows )512 ;;513 503 * ) 514 504 echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.' -
ipc.c
r178e2f8 re0f9170 441 441 } 442 442 443 #ifndef _WIN32444 443 char *ipc_master_save_state() 445 444 { … … 507 506 } 508 507 508 #ifndef _WIN32 509 509 int ipc_master_listen_socket() 510 510 { … … 543 543 } 544 544 #else 545 int ipc_master_listen_socket()546 {547 545 /* FIXME: Open named pipe \\.\BITLBEE */ 548 return 0;549 }550 546 #endif 551 547 -
irc.c
r178e2f8 re0f9170 26 26 #define BITLBEE_CORE 27 27 #include "bitlbee.h" 28 #include "sock.h"29 28 #include "crypting.h" 30 29 #include "ipc.h" -
lib/misc.c
r178e2f8 re0f9170 373 373 void random_bytes( unsigned char *buf, int count ) 374 374 { 375 #ifndef _WIN32376 375 static int use_dev = -1; 377 376 … … 423 422 424 423 if( !use_dev ) 425 #endif426 424 { 427 425 int i; -
lib/ssl_bogus.c
r178e2f8 re0f9170 61 61 return GAIM_INPUT_READ; 62 62 } 63 64 int ssl_pending( void *conn )65 {66 return 0;67 } -
protocols/yahoo/libyahoo2.c
r178e2f8 re0f9170 69 69 #ifdef __MINGW32__ 70 70 # include <winsock2.h> 71 # define write(a,b,c) send(a,b,c,0) 72 # define read(a,b,c) recv(a,b,c,0) 71 73 #endif 72 74 -
protocols/yahoo/yahoo_httplib.c
r178e2f8 re0f9170 51 51 #ifdef __MINGW32__ 52 52 # include <winsock2.h> 53 # define write(a,b,c) send(a,b,c,0) 54 # define read(a,b,c) recv(a,b,c,0) 53 55 # define snprintf _snprintf 54 56 #endif -
sock.h
r178e2f8 re0f9170 16 16 #else 17 17 # include <winsock2.h> 18 # include <ws2tcpip.h> 18 # ifndef _MSC_VER 19 # include <ws2tcpip.h> 20 # endif 19 21 # if !defined(BITLBEE_CORE) && defined(_MSC_VER) 20 22 # pragma comment(lib,"bitlbee.lib") 21 23 # endif 22 24 # include <io.h> 25 # define read(a,b,c) recv(a,b,c,0) 26 # define write(a,b,c) send(a,b,c,0) 27 # define umask _umask 28 # define mode_t int 23 29 # define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); } 24 30 # define sock_make_blocking(fd) { int non_block = 0; ioctlsocket(fd, FIONBIO, &non_block); } -
storage_text.c
r178e2f8 re0f9170 27 27 #include "bitlbee.h" 28 28 #include "crypting.h" 29 #ifdef _WIN3230 # define umask _umask31 # define mode_t int32 #endif33 34 #ifndef F_OK35 #define F_OK 036 #endif37 29 38 30 static void text_init (void) -
unix.c
r178e2f8 re0f9170 60 60 if( global.conf->runmode == RUNMODE_INETD ) 61 61 { 62 log_link( LOGLVL_ERROR, LOGOUTPUT_IRC );63 log_link( LOGLVL_WARNING, LOGOUTPUT_IRC );64 65 62 i = bitlbee_inetd_init(); 66 63 log_message( LOGLVL_INFO, "Bitlbee %s starting in inetd mode.", BITLBEE_VERSION ); … … 69 66 else if( global.conf->runmode == RUNMODE_DAEMON ) 70 67 { 71 log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG );72 log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG );73 74 68 i = bitlbee_daemon_init(); 75 69 log_message( LOGLVL_INFO, "Bitlbee %s starting in daemon mode.", BITLBEE_VERSION ); … … 225 219 return( (double) time->tv_sec + (double) time->tv_usec / 1000000 ); 226 220 } 227 228
Note: See TracChangeset
for help on using the changeset viewer.