Changes in / [6048744:6fb6410]
- Files:
-
- 5 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
.bzrignore
r6048744 r6fb6410 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 -
Makefile
r6048744 r6fb6410 10 10 11 11 # Program variables 12 objects = account.o bitlbee.o c onf.o crypting.o help.o ini.o ipc.o irc.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_text.o unix.o url.o user.o util.o12 objects = account.o bitlbee.o crypting.o help.o ini.o ipc.o irc.o irc_commands.o nick.o query.o root_commands.o set.o storage.o storage_text.o url.o user.o util.o 13 13 headers = account.h bitlbee.h commands.h conf.h config.h crypting.h help.h ini.h ipc.h irc.h log.h nick.h query.h set.h sock.h storage.h url.h user.h protocols/http_client.h protocols/md5.h protocols/nogaim.h protocols/proxy.h protocols/sha.h protocols/ssl_client.h 14 14 subdirs = 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
r6048744 r6fb6410 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 ); … … 256 255 struct sockaddr_in conn_info; 257 256 int new_socket = accept( global.listen_socket, (struct sockaddr *) &conn_info, &size ); 258 pid_t client_pid = 0;259 257 260 258 if( new_socket == -1 ) … … 264 262 } 265 263 264 #ifndef _WIN32 266 265 if( global.conf->runmode == RUNMODE_FORKDAEMON ) 267 266 { 267 pid_t client_pid = 0; 268 268 int fds[2]; 269 269 … … 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
r6048744 r6fb6410 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 … … 75 76 #undef strncasecmp 76 77 #define strncasecmp __PLEASE_USE_G_STRNCASECMP_INSTEAD__ 77 78 #ifndef F_OK79 #define F_OK 080 #endif81 78 82 79 #define _( x ) x -
configure
r6048744 r6fb6410 64 64 --ipv6=0/1 IPv6 socket support $ipv6 65 65 66 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto)66 --ssl=... SSL library to use (gnutls, nss, openssl, sspi, bogus, auto) 67 67 $ssl 68 68 EOF … … 235 235 elif [ "$ssl" = "nss" ]; then 236 236 detect_nss; 237 elif [ "$ssl" = "sspi" ]; then 238 echo 237 239 elif [ "$ssl" = "openssl" ]; then 238 240 echo -
ipc.c
r6048744 r6fb6410 417 417 } 418 418 419 #ifndef _WIN32 419 420 char *ipc_master_save_state() 420 421 { … … 484 485 } 485 486 486 #ifndef _WIN32487 487 int ipc_master_listen_socket() 488 488 { … … 528 528 } 529 529 #else 530 int ipc_master_listen_socket() 531 { 530 532 /* FIXME: Open named pipe \\.\BITLBEE */ 533 return 0; 534 } 531 535 #endif 532 536 -
irc_commands.c
r6048744 r6fb6410 544 544 ipc_to_master( cmd ); 545 545 546 #ifndef _WIN32 546 547 irc_reply( irc, 382, "%s :Rehashing", CONF_FILE ); 548 #endif 547 549 } 548 550 -
protocols/nogaim.h
r6048744 r6fb6410 139 139 }; 140 140 141 struct ft 142 { 143 const char *filename; 144 145 /* Total number of bytes in file */ 146 size_t total_bytes; 147 148 /* Current number of bytes received */ 149 size_t cur_bytes; 150 }; 151 152 struct ft_request 153 { 154 const char *filename; 155 struct gaim_connection *gc; 156 }; 157 158 typedef void (*ft_recv_handler) (struct ft *, void *data, size_t len); 159 141 160 struct prpl { 142 161 int options; -
protocols/oscar/AUTHORS
r6048744 r6fb6410 28 28 E: awwaiid@auk.cx 29 29 D: Figured out original password roasting 30 31 -
sock.h
r6048744 r6fb6410 21 21 #else 22 22 # include <winsock2.h> 23 # ifndef _MSC_VER24 # include <ws2tcpip.h>25 # endif26 23 # if !defined(BITLBEE_CORE) && defined(_MSC_VER) 27 24 # pragma comment(lib,"bitlbee.lib") … … 30 27 # define read(a,b,c) recv(a,b,c,0) 31 28 # define write(a,b,c) send(a,b,c,0) 32 # define umask _umask33 # define mode_t int34 29 # define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); } 35 30 # define sock_make_blocking(fd) { int non_block = 0; ioctlsocket(fd, FIONBIO, &non_block); } -
storage_text.c
r6048744 r6fb6410 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 /* DO NOT USE THIS FUNCTION IN NEW CODE. This -
unix.c
r6048744 r6fb6410 64 64 if( global.conf->runmode == RUNMODE_INETD ) 65 65 { 66 log_link( LOGLVL_ERROR, LOGOUTPUT_IRC ); 67 log_link( LOGLVL_WARNING, LOGOUTPUT_IRC ); 68 66 69 i = bitlbee_inetd_init(); 67 70 log_message( LOGLVL_INFO, "Bitlbee %s starting in inetd mode.", BITLBEE_VERSION ); … … 70 73 else if( global.conf->runmode == RUNMODE_DAEMON ) 71 74 { 75 log_link( LOGLVL_ERROR, LOGOUTPUT_SYSLOG ); 76 log_link( LOGLVL_WARNING, LOGOUTPUT_SYSLOG ); 77 72 78 i = bitlbee_daemon_init(); 73 79 log_message( LOGLVL_INFO, "Bitlbee %s starting in daemon mode.", BITLBEE_VERSION );
Note: See TracChangeset
for help on using the changeset viewer.