Changes in / [5f5d433:d179921d]
- Files:
-
- 5 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
.bzrignore
r5f5d433 rd179921d 2 2 config.h 3 3 bitlbee 4 Debug 5 Debugx 6 deps 7 admin/Debug 8 admin/admin.plg 9 bitlbee.plg 10 *.plg 11 *.aps 12 *.clw 4 13 user-guide.txt 5 14 user-guide.html … … 17 26 *.gcno 18 27 *.o 28 coverage 29 bitlbee.info -
Makefile
r5f5d433 rd179921d 10 10 11 11 # Program variables 12 objects = account.o bitlbee.o c onf.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.ouser.o12 objects = account.o bitlbee.o crypting.o help.o ipc.o irc.o irc_commands.o nick.o query.o root_commands.o set.o storage.o $(STORAGE_OBJS) 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 ($(ARCH),Windows) 17 objects += win32.o 18 else 19 objects += unix.o conf.o log.o 20 endif 15 21 16 22 # Expansion of variables -
bitlbee.c
r5f5d433 rd179921d 123 123 ipc_master_listen_socket(); 124 124 125 #ifndef _WIN32 125 126 if( ( fp = fopen( global.conf->pidfile, "w" ) ) ) 126 127 { … … 132 133 log_message( LOGLVL_WARNING, "Warning: Couldn't write PID to `%s'", global.conf->pidfile ); 133 134 } 135 #endif 134 136 135 137 return( 0 ); … … 140 142 if( !irc_new( 0 ) ) 141 143 return( 1 ); 142 143 log_link( LOGLVL_ERROR, LOGOUTPUT_IRC );144 log_link( LOGLVL_WARNING, LOGOUTPUT_IRC );145 144 146 145 return( 0 ); … … 250 249 struct sockaddr_in conn_info; 251 250 int new_socket = accept( global.listen_socket, (struct sockaddr *) &conn_info, &size ); 252 pid_t client_pid = 0;253 251 254 252 if( new_socket == -1 ) … … 258 256 } 259 257 258 #ifndef _WIN32 260 259 if( global.conf->runmode == RUNMODE_FORKDAEMON ) 261 260 { 261 pid_t client_pid = 0; 262 262 int fds[2]; 263 263 … … 316 316 } 317 317 else 318 #endif 318 319 { 319 320 log_message( LOGLVL_INFO, "Creating new connection with fd %d.", new_socket ); -
bitlbee.h
r5f5d433 rd179921d 48 48 #include <stdio.h> 49 49 #include <ctype.h> 50 #include <errno.h> 51 50 52 #ifndef _WIN32 51 53 #include <syslog.h> 52 #include <errno.h>53 54 #endif 54 55 -
configure
r5f5d433 rd179921d 74 74 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) 75 75 $ssl 76 --arch=... Override target architecture $arch 77 76 78 EOF 77 79 exit; … … 213 215 detect_gnutls() 214 216 { 215 if libgnutls-config --version > /dev/null 2> /dev/null; then 217 if $PKG_CONFIG --exists gnutls; then 218 cat <<EOF>>Makefile.settings 219 EFLAGS+=`$PKG_CONFIG --libs gnutls` 220 CFLAGS+=`$PKG_CONFIG --cflags gnutls` 221 EOF 222 ssl=gnutls 223 ret=1 224 elif libgnutls-config --version > /dev/null 2> /dev/null; then 216 225 cat <<EOF>>Makefile.settings 217 226 EFLAGS+=`libgnutls-config --libs` … … 267 276 elif [ "$ssl" = "nss" ]; then 268 277 detect_nss 278 elif [ "$ssl" = "sspi" ]; then 279 echo 269 280 elif [ "$ssl" = "openssl" ]; then 270 281 echo … … 375 386 376 387 if [ "$gcov" = "1" ]; then 377 echo "CFLAGS+=- ftest-coverage -fprofile-arcs" >> Makefile.settings378 echo "EFLAGS+=- lgcov" >> Makefile.settings388 echo "CFLAGS+=--coverage" >> Makefile.settings 389 echo "EFLAGS+=--coverage" >> Makefile.settings 379 390 fi 380 391 … … 483 494 echo 'Cygwin is not officially supported.' 484 495 ;; 496 Windows ) 497 echo OUTFILE=bitlbee.exe >> Makefile.settings 498 echo LFLAGS+=-lwsock32 >> Makefile.settings 499 echo EFLAGS+=-lsecur32 >> Makefile.settings 500 ;; 485 501 * ) 486 502 echo 'We haven'\''t tested BitlBee on many platforms yet, yours is untested. YMMV.' -
ipc.c
r5f5d433 rd179921d 439 439 } 440 440 441 #ifndef _WIN32 441 442 char *ipc_master_save_state() 442 443 { … … 504 505 } 505 506 506 #ifndef _WIN32507 507 int ipc_master_listen_socket() 508 508 { … … 541 541 } 542 542 #else 543 int ipc_master_listen_socket() 544 { 543 545 /* FIXME: Open named pipe \\.\BITLBEE */ 546 return 0; 547 } 544 548 #endif 545 549 -
protocols/nogaim.h
r5f5d433 rd179921d 130 130 struct im_connection *ic; /* the connection it belongs to */ 131 131 }; 132 133 struct ft 134 { 135 const char *filename; 136 137 /* Total number of bytes in file */ 138 size_t total_bytes; 139 140 /* Current number of bytes received */ 141 size_t cur_bytes; 142 }; 143 144 struct ft_request 145 { 146 const char *filename; 147 struct gaim_connection *gc; 148 }; 149 150 typedef void (*ft_recv_handler) (struct ft *, void *data, size_t len); 132 151 133 152 struct prpl { -
protocols/oscar/AUTHORS
r5f5d433 rd179921d 28 28 E: awwaiid@auk.cx 29 29 D: Figured out original password roasting 30 31 -
protocols/yahoo/libyahoo2.c
r5f5d433 rd179921d 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)73 71 #endif 74 72 -
protocols/yahoo/yahoo_httplib.c
r5f5d433 rd179921d 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)55 53 # define snprintf _snprintf 56 54 #endif -
sock.h
r5f5d433 rd179921d 16 16 #else 17 17 # include <winsock2.h> 18 # if ndef _MSC_VER18 # ifdef IPV6 19 19 # include <ws2tcpip.h> 20 20 # endif … … 23 23 # endif 24 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 _umask28 # define mode_t int29 25 # define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); } 30 26 # define sock_make_blocking(fd) { int non_block = 0; ioctlsocket(fd, FIONBIO, &non_block); } -
storage_text.c
r5f5d433 rd179921d 27 27 #include "bitlbee.h" 28 28 #include "crypting.h" 29 #ifdef _WIN32 30 # define umask _umask 31 # define mode_t int 32 #endif 33 34 #ifndef F_OK 35 #define F_OK 0 36 #endif 29 37 30 38 static void text_init (void) -
unix.c
r5f5d433 rd179921d 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 62 65 i = bitlbee_inetd_init(); 63 66 log_message( LOGLVL_INFO, "Bitlbee %s starting in inetd mode.", BITLBEE_VERSION ); … … 66 69 else if( global.conf->runmode == RUNMODE_DAEMON ) 67 70 { 71 log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG ); 72 log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG ); 73 68 74 i = bitlbee_daemon_init(); 69 75 log_message( LOGLVL_INFO, "Bitlbee %s starting in daemon mode.", BITLBEE_VERSION );
Note: See TracChangeset
for help on using the changeset viewer.