yuqing
|
c6a41be8b9
|
add comments
|
2016-02-03 16:03:08 +08:00 |
Yu Qing
|
39b0a94eb2
|
set tv_usec 0 in Linux
|
2016-02-02 16:37:31 +08:00 |
yuqing
|
b1a6bbfa27
|
output file device
|
2016-02-02 15:05:30 +08:00 |
Yu Qing
|
6c74629633
|
compile passed in mac os
|
2016-02-02 10:13:18 +08:00 |
yuqing
|
0e11466085
|
output file inode
|
2016-02-02 08:52:17 +08:00 |
yuqing
|
a8b9d024e3
|
define nsec of file stat in Linux and FreeBSD
|
2016-02-01 15:07:06 +08:00 |
YuQing
|
08d3932845
|
Merge pull request #5 from lichhaosysu/master
io_opt.c bug fix
|
2016-02-01 09:41:29 +08:00 |
Yu Qing
|
283f16db7d
|
remove useless variable
|
2016-01-29 14:59:28 +08:00 |
lichhaosysu
|
e1d140c7e5
|
io_opt.c bug fix
|
2016-01-29 14:42:44 +08:00 |
yuqing
|
7b9b40d2f5
|
use timeval instead of second
|
2016-01-29 14:40:34 +08:00 |
Yu Qing
|
0165a3357b
|
compile by mac os
|
2016-01-29 10:17:32 +08:00 |
yuqing
|
e4876f0c61
|
add get_sysinfo
|
2016-01-28 12:26:11 +08:00 |
Yu Qing
|
0758be6e88
|
sysinfo for FreeBSD
|
2016-01-28 11:30:07 +08:00 |
yuqing
|
7b61231508
|
Merge branch 'master' of github.com:happyfish100/libfastcommon
|
2016-01-27 22:51:52 +08:00 |
yuqing
|
74715cb089
|
iovent bug fixed for FreeBSD
|
2016-01-27 22:51:13 +08:00 |
yuqing
|
4a6b6a6576
|
linux process starttime as Unix timestamp
|
2016-01-27 18:38:35 +08:00 |
Yu Qing
|
8a77902f34
|
iOS test ok
|
2016-01-27 18:14:36 +08:00 |
yuqing
|
4421133912
|
get_processes support FreeBSD
|
2016-01-27 17:52:46 +08:00 |
yuqing
|
94feb0b311
|
change log level
|
2016-01-26 21:53:25 +08:00 |
yuqing
|
c18387c7f8
|
add test_blocked_queue
|
2016-01-26 19:16:23 +08:00 |
yuqing
|
9229a5cf0b
|
add blocked_queue_terminate
|
2016-01-26 09:52:31 +08:00 |
yuqing
|
cb82009656
|
add fast_blocked_queue.[hc]
|
2016-01-26 09:42:53 +08:00 |
yuqing
|
d911109689
|
test changed
|
2016-01-25 17:47:55 +08:00 |
yuqing
|
6c7852cdab
|
format
|
2016-01-20 21:57:36 +08:00 |
yuqing
|
12c1355c2a
|
export function task_queue_get_new_buffer_size
|
2016-01-19 14:28:44 +08:00 |
yuqing
|
9c7a510803
|
do NOT use function xxxmntent in linux
|
2016-01-18 15:32:32 +08:00 |
yuqing
|
a786f36d65
|
getlocaladdrs
|
2016-01-18 10:17:45 +08:00 |
yuqing
|
05e01ce113
|
getlocaladdrs fixed
|
2016-01-17 22:48:30 +08:00 |
yuqing
|
481f57befa
|
add micro HAVE_FILE_SYSTEM_ID check
|
2016-01-14 18:48:37 +08:00 |
yuqing
|
e73b37f7da
|
ini_file_reader add iniGetSectionNames and iniGetSectionItems
|
2016-01-14 17:09:26 +08:00 |
yuqing
|
bb57593f14
|
test_mblock ok
|
2016-01-14 13:35:10 +08:00 |
yuqing
|
0fc9297155
|
add function get_processes for Linux
|
2016-01-14 12:29:14 +08:00 |
yuqing
|
6af9b0d52d
|
return EOPNOTSUPP on other unix system
|
2016-01-13 16:30:03 +08:00 |
yuqing
|
00d5c43b50
|
remove useless variable
|
2016-01-12 18:20:25 +08:00 |
Yu Qing
|
6ddfdf1265
|
compile Ok in mac OS
|
2016-01-12 16:47:15 +08:00 |
yuqing
|
10c15228ec
|
add function get_mounted_filesystems
|
2016-01-12 16:32:26 +08:00 |
yuqing
|
700f8d2c2b
|
add system_info.h and system_info.c
|
2016-01-12 15:14:47 +08:00 |
Yu Qing
|
c2b66b3ced
|
format if mac address
|
2016-01-12 11:18:29 +08:00 |
yuqing
|
1c6a73d4f3
|
support get local mac addresses
|
2016-01-12 10:56:07 +08:00 |
yuqing
|
5d130c1608
|
remove debug info
|
2016-01-11 18:25:53 +08:00 |
yuqing
|
66e2db7b6f
|
add skiplist wrapper
|
2015-12-30 11:16:06 +08:00 |
yuqing
|
a1fc869430
|
support free data callback
|
2015-12-29 16:55:29 +08:00 |
yuqing
|
9dc2f2901e
|
skiplist add find_all and delete_all
|
2015-12-29 14:21:36 +08:00 |
yuqing
|
a6ac2867c1
|
add tests/test_multi_skiplist.c
|
2015-12-29 12:23:59 +08:00 |
yuqing
|
5bae0d57cb
|
support multi skiplist
|
2015-12-29 12:23:03 +08:00 |
yuqing
|
866c8a83fe
|
support multi skiplist
|
2015-12-28 17:03:34 +08:00 |
yuqing
|
7de0f850e4
|
make.sh changed
|
2015-12-27 13:48:10 +08:00 |
yuqing
|
a6ef605c6e
|
skiplist support stable sort
|
2015-12-25 19:02:36 +08:00 |
yuqing
|
159d69983b
|
test code modified
|
2015-12-25 16:56:52 +08:00 |
yuqing
|
c8024b10e0
|
test_skiplist.c
|
2015-12-25 16:32:04 +08:00 |
yuqing
|
d07af5dda8
|
make.sh: replace perl with sed
|
2015-12-25 16:26:26 +08:00 |
yuqing
|
0bb237190d
|
skiplist bugfixed
|
2015-12-25 16:06:43 +08:00 |
yuqing
|
74fe4c8889
|
add skiplist
|
2015-12-24 18:20:14 +08:00 |
liuwei
|
62e9004f2c
|
fixed rpm build error
|
2015-11-18 10:59:16 +08:00 |
yuqing
|
9828c45343
|
add function fast_mblock_init_ex1
|
2015-11-16 13:48:26 +08:00 |
Yu Qing
|
b6eb0e20da
|
add fast_buffer
|
2015-11-13 15:13:28 +08:00 |
Yu Qing
|
d49bfa7294
|
allocator support reclaim
|
2015-11-06 18:57:39 +08:00 |
Yu Qing
|
c39a4915de
|
mblock support trunk malloc check and notify
|
2015-11-06 15:19:07 +08:00 |
Yu Qing
|
00056480d4
|
mblock stat output alloc_bytes
|
2015-11-06 10:34:51 +08:00 |
Yu Qing
|
389234ff76
|
fast allocator ok
|
2015-11-05 18:44:12 +08:00 |
Yu Qing
|
fb5abf5927
|
add fast_allocator
|
2015-11-04 17:19:36 +08:00 |
yuqing
|
0fe90e35da
|
add function get_sys_cpu_count()
|
2015-11-04 15:02:56 +08:00 |
yuqing
|
f734884700
|
fast_mblock reclaimed object pool
|
2015-11-03 18:13:51 +08:00 |
yuqing
|
8f26a0a354
|
use pthread_detach
|
2015-11-03 09:55:43 +08:00 |
yuqing
|
07c93f6206
|
delay task can execute in a new thread
|
2015-11-02 18:24:26 +08:00 |
yuqing
|
3e1d1e2ae1
|
add function get_sys_total_mem_size, ONLY support Linux and FreeBSD
|
2015-11-02 16:19:49 +08:00 |
yuqing
|
81f75a019c
|
stat_print output memory usage summary
|
2015-10-30 17:30:22 +08:00 |
yuqing
|
cc070f18f4
|
modify mblock stat ratio
|
2015-10-30 16:01:16 +08:00 |
yuqing
|
d2db706f7a
|
mblock stat function test ok
|
2015-10-30 15:53:43 +08:00 |
yuqing
|
c17d55ec7d
|
mblock stat function test ok
|
2015-10-30 15:34:22 +08:00 |
yuqing
|
e2ef7c87b6
|
mblock add stat function
|
2015-10-30 12:52:13 +08:00 |
yuqing
|
cb81992905
|
add function get_current_time_us and get_current_time_ms
|
2015-10-26 17:07:43 +08:00 |
yuqing
|
96a6464e91
|
sched_thread.c: support delay tasks
|
2015-10-16 16:44:46 +08:00 |
yuqing
|
90ea025cb5
|
sched_thread.c: task can execute in a new thread
|
2015-10-16 10:43:02 +08:00 |
Yu Qing
|
75198e5005
|
install to /usr/lib/ anyway
|
2015-10-10 11:37:11 +08:00 |
yuqing
|
3a3abaf148
|
add function is_private_ip
|
2015-10-09 16:12:30 +08:00 |
yuqing
|
a9388ab7fe
|
remove macro IGNORE_ANNOTATION
|
2015-09-18 15:47:21 +08:00 |
yuqing
|
ba00a3bb12
|
export php function: fastcommon_get_first_local_ip
|
2015-09-15 14:56:29 +08:00 |
yuqing
|
8f5c4fd3f7
|
iniGetValues use iniGetValuesEx
|
2015-09-14 18:03:49 +08:00 |
yuqing
|
c049d85f96
|
check n for BSD event set
|
2015-09-14 09:18:34 +08:00 |
yuqing
|
e46333c00a
|
ioevent for BSD ok
|
2015-09-13 20:49:09 +08:00 |
liuwei
|
07ffa9e6bd
|
ignore annotation in some cases
|
2015-09-11 19:40:15 +08:00 |
liuwei
|
5f52349bd6
|
ignore annotation in some cases
|
2015-09-11 18:22:49 +08:00 |
yuqing
|
29451eaf49
|
add function get_first_local_ip
|
2015-09-08 19:09:35 +08:00 |
yuqing
|
69c8970e2d
|
add INIT_SCHEDULE_ENTRY_EX
|
2015-09-05 22:42:55 +08:00 |
YuQing
|
fbe55f1889
|
Merge pull request #3 from agile6v/master
added INIT_SCHEDULE_ENTRY macro for simplifying code.
|
2015-09-05 22:21:35 +08:00 |
yuqing
|
fe9b8dad60
|
allow_ips support CIDR addresses such as 172.16.12.0/22
|
2015-09-05 19:40:23 +08:00 |
yuqing
|
c0b48a7bf8
|
make clean
|
2015-08-26 19:00:15 +08:00 |
yuqing
|
31149bb6e9
|
correct PTHREAD_MUTEX_ERRORCHECK define
|
2015-08-26 18:46:07 +08:00 |
hao
|
77bb1bf94e
|
compile depends system bit version
|
2015-08-26 11:32:16 +08:00 |
hao
|
444c68f1e8
|
fix 'PTHREAD_MUTEX_ERRORCHECK undeclared'
throw error 'PTHREAD_MUTEX_ERRORCHECK' undeclared when compile on centos
|
2015-08-26 10:51:49 +08:00 |
yuqing
|
de1be00ccb
|
ini_file_reader support annotation function
|
2015-08-25 17:20:20 +08:00 |
yuqing
|
757ae81e35
|
Merge branch 'dev'
|
2015-08-25 15:07:32 +08:00 |
liuwei
|
d1026167d4
|
eliminate potential trouble
|
2015-08-20 15:46:59 +08:00 |
yuqing
|
89d7ea6d27
|
call log_check_rotate anyway
|
2015-08-20 14:43:47 +08:00 |
liuwei
|
d3e8cc1833
|
eliminate potential trouble
|
2015-08-19 15:52:10 +08:00 |
liuwei
|
fdaa6afa59
|
eliminate potential trouble
|
2015-08-19 10:37:31 +08:00 |
liuwei
|
8821594608
|
eliminate potential trouble
|
2015-08-18 18:36:07 +08:00 |
liuwei
|
333f9b56e4
|
eliminate potential trouble
|
2015-08-18 17:52:57 +08:00 |
liuwei
|
a9fc4a5a2a
|
optimizing
|
2015-08-18 17:21:50 +08:00 |
liuwei
|
ecfafbcf38
|
optimizing
|
2015-08-18 16:43:42 +08:00 |
liuwei
|
9208cfde96
|
eliminate potential trouble
|
2015-08-18 09:46:25 +08:00 |
liuwei
|
a173000298
|
optimize
|
2015-08-17 19:32:33 +08:00 |
liuwei
|
ad51130d2d
|
add annotation mechanism for ini parse
|
2015-08-17 16:05:32 +08:00 |
yuqing
|
ee32ccd512
|
make.sh changed
|
2015-08-17 15:31:47 +08:00 |
yuqing
|
f71c846a24
|
resolve compile warning in mac book
|
2015-08-16 10:50:21 +08:00 |
yuqing
|
ba6cc38703
|
add GEO function get_line_distance_km
|
2015-08-06 16:04:58 +08:00 |
yuqing
|
c623a6c935
|
correct logger rotate time near 0 clock
|
2015-07-24 09:44:31 +08:00 |
yuqing
|
e610e8a45d
|
OS macro defines put in _os_define.h
|
2015-07-15 14:26:39 +08:00 |
yuqing
|
f9936ec4ba
|
ini_file_reader.c realloc change to malloc and memcpy
|
2015-07-14 09:50:35 +08:00 |
yuqing
|
d884069622
|
ini_file_reader.c change PJWHash to Time33Hash and increase capacity
|
2015-07-13 15:13:06 +08:00 |
yuqing
|
e879393c88
|
add comment
|
2015-07-01 15:17:19 +08:00 |
yuqing
|
59fbe9214a
|
add fast_mpool for memory pool
|
2015-07-01 13:26:07 +08:00 |
yuqing
|
693874d0b9
|
fast_mblock.h add static inline
|
2015-06-25 10:25:23 +08:00 |
yuqing
|
f296a3e459
|
fast_mblock add fast_mblock_delay_free
|
2015-06-19 19:04:37 +08:00 |
yuqing
|
7a2c942863
|
ini_file_reader set global section before and after directive #include
|
2015-06-16 10:34:35 +08:00 |
yuqing
|
bcd00f4079
|
fast_mblock suport alloc and free object
|
2015-06-15 20:33:14 +08:00 |
yuqing
|
7e1abd6054
|
ioevent support set timeout
|
2015-06-11 09:49:04 +08:00 |
yuqing
|
b3e37bd584
|
change comment
|
2015-05-22 14:43:42 +08:00 |
yuqing
|
d1d225c8db
|
fast_mblock.c support none lock
|
2015-05-22 14:24:09 +08:00 |
yuqing
|
0fd3425fb6
|
bug fixed: log header correctly when rotate
|
2015-05-15 14:02:39 +08:00 |
yuqing
|
8b9bdfd333
|
logger.c call log_check_rotate in lock
|
2015-05-15 11:16:14 +08:00 |
yuqing
|
62f94164c1
|
macro FDFS_WRITE_BUFF_SIZE change to FAST_WRITE_BUFF_SIZE
|
2015-05-12 14:05:09 +08:00 |
yuqing
|
d2d916fbab
|
correct fsbytes to sbytes
|
2015-05-11 18:25:37 +08:00 |
yuqing
|
72e75e039d
|
use file lock when write logger header
|
2015-05-08 17:49:19 +08:00 |
yuqing
|
c21f9a59a7
|
fast_task_info support set_buffer_size and realloc_buffer
|
2015-04-28 17:22:22 +08:00 |
yuqing
|
7afa2a9e40
|
set_run_by log more info
|
2015-02-27 17:27:55 +08:00 |
yuqing
|
ec4df41993
|
add process_start
|
2014-12-16 18:36:15 +08:00 |
agile6v
|
a7b22f41f6
|
added INIT_SCHEDULE_ENTRY macro
|
2014-12-10 12:47:38 +08:00 |
yuqing
|
0a87130ee0
|
check the return value of snprintf
|
2014-12-06 12:41:19 +08:00 |
yuqing
|
e7b2874e2a
|
can call sched_add_entries many times before schedule
|
2014-12-05 18:12:02 +08:00 |
yuqing
|
60b1f50c1f
|
bug fixed: must check the return value of vsnprintf
|
2014-12-05 09:54:48 +08:00 |
yuqing
|
23a12c1bef
|
bug fixed: NOT set last_block->next when realloc
|
2014-11-20 14:21:17 +08:00 |
yuqing
|
c0778f54fb
|
remove usleep call in logger.c
|
2014-11-05 18:30:47 +08:00 |
yuqing
|
8718f26b2e
|
must set timeout entry's dlink to NULL because NOT in time wheel
|
2014-10-31 11:05:15 +08:00 |
yuqing
|
81a45e7253
|
correct iovent macro define
|
2014-10-31 09:28:23 +08:00 |
yuqing
|
865cb7032a
|
remote debug statement
|
2014-10-29 10:11:22 +08:00 |
yuqing
|
6db41264ef
|
mblock support alloc_init_func
|
2014-10-26 11:52:28 +08:00 |
yuqing
|
503cdc6006
|
get local ipaddr support interface based 1
|
2014-10-24 18:20:00 +08:00 |
yuqing
|
83a8b14174
|
Version struct add variable: patch
|
2014-10-23 15:46:36 +08:00 |
yuqing
|
8ad9d6961b
|
judge changed
|
2014-10-09 18:09:12 +08:00 |
yuqing
|
5e6233ab69
|
sched_thread.c: calculate next_call_time correctly
|
2014-10-08 16:58:25 +08:00 |
yuqing
|
07d9cfa9b8
|
bug fixed: caused by memory organize
|
2014-09-16 16:55:39 +08:00 |
yuqing
|
65d0e0223c
|
bug fixed: caused by memory organize
|
2014-09-16 16:50:36 +08:00 |
yuqing
|
01b4969913
|
bug fixed: caused by memory organize
|
2014-09-16 16:44:37 +08:00 |
yuqing
|
757a3b96a7
|
delete log old files with any time format affix
|
2014-09-16 11:26:17 +08:00 |
yuqing
|
acc17549ee
|
conn_pool_destroy close connections and free memory
|
2014-09-15 14:43:42 +08:00 |
yuqing
|
aafcd765dc
|
check file size before log access header
|
2014-09-15 14:22:12 +08:00 |
yuqing
|
5a5c0c8b7d
|
rename current_connections to alloc_connections
|
2014-09-11 09:34:13 +08:00 |
yuqing
|
79cf264688
|
add function free_queue_current_connections
|
2014-09-10 18:01:03 +08:00 |
yuqing
|
b9328983cb
|
increment alloc task buffer
|
2014-09-10 09:42:15 +08:00 |
yuqing
|
1403cc4ed8
|
support increment task alloc
|
2014-09-09 18:39:33 +08:00 |
yuqing
|
d442ed9176
|
add comments for connection pool
|
2014-09-03 10:18:31 +08:00 |
yuqing
|
c790ac5208
|
add function log_set_fd_flags
|
2014-08-27 16:06:27 +08:00 |
yuqing
|
ba60d10858
|
extern function log_rotate
|
2014-08-26 15:30:49 +08:00 |
yuqing
|
d88e9a6408
|
add function log_reopen_ex
|
2014-08-26 13:46:24 +08:00 |
yuqing
|
118f657c7f
|
add function ioevent_remove
|
2014-08-25 09:24:52 +08:00 |
yuqing
|
ed4a70d97b
|
http_parse_query_ex set key terminated with ASCII 0
|
2014-08-11 17:46:54 +08:00 |
yuqing
|
9ca29b6b06
|
http_parse_query_ex support binary buffer, and set both lengths of key and name
|
2014-08-11 16:58:27 +08:00 |
yuqing
|
93598b1862
|
http_parse_query set both lengths of key and name
|
2014-08-11 16:25:15 +08:00 |
yuqing
|
8725ebd997
|
socket send and recv ignore erno EINTR
|
2014-08-10 21:57:06 +08:00 |
yuqing
|
0280c71807
|
include <inttypes.h> in common_define.h
|
2014-08-10 14:00:00 +08:00 |
yuqing
|
ea7c5d24bb
|
correct spelling curent to current
|
2014-08-10 13:46:00 +08:00 |
yuqing
|
1b80270f90
|
remote useless break statement
|
2014-08-10 12:49:05 +08:00 |
yuqing
|
e211604368
|
support OS Darwin
|
2014-08-09 11:15:55 +08:00 |
yuqing
|
386a5eb485
|
remove .o files
|
2014-08-09 10:28:04 +08:00 |
yuqing
|
dbc7bf6981
|
make.sh support Darwin
|
2014-08-09 10:12:13 +08:00 |
yuqing
|
e1cbe753ba
|
logger can take over stderr and stdout
|
2014-08-07 14:18:14 +08:00 |
yuqing
|
4a66dbf4a6
|
log_set_filename_ex check filename NULL
|
2014-08-06 10:48:41 +08:00 |
yuqing
|
cf55d98142
|
replace INT64_PRINTF_FORMAT with PRId64
|
2014-08-05 15:52:17 +08:00 |
liaozaixue
|
b29e27fb13
|
add static library
|
2014-08-04 17:52:09 +08:00 |
liaozaixue
|
1852d4ce66
|
change library name
|
2014-08-04 09:43:19 +08:00 |
yuqing
|
3077eb6a65
|
change req_count from int to int64_t
|
2014-07-23 17:39:04 +08:00 |
yuqing
|
dd42d9c08c
|
sockopt.c add tcprecvdata_nb_ms to support millisecond timeout
|
2014-07-14 18:03:13 +08:00 |
yuqing
|
31db77f3cd
|
logger.c do NOT call fsync after write
|
2014-07-02 18:14:15 +08:00 |
yuqing
|
876a08d370
|
correct macro fast_mblock_to_node_ptr
|
2014-06-27 17:34:15 +08:00 |
yuqing
|
701bc391bc
|
bug fixed: connection pool should NOT increase counter when connect fail
|
2014-06-27 15:12:41 +08:00 |
yuqing
|
28dcc9d099
|
log time format
|
2014-06-27 10:56:15 +08:00 |
yuqing
|
16bda0a1ab
|
mblock add total_count
|
2014-06-27 10:10:18 +08:00 |
yuqing
|
101caed964
|
logger can delete old rotated files
|
2014-06-24 16:37:03 +08:00 |
liaozaixue
|
5a65898707
|
udpate Makefile.in for rpmbuild
|
2014-06-24 15:39:36 +08:00 |
yuqing
|
7e4a69deb1
|
#include <stdbool.h> to use C99 bool
|
2014-06-18 16:28:55 +08:00 |
yuqing
|
4ad15b09d3
|
bug fixed
|
2014-06-17 18:31:25 +08:00 |
yuqing
|
cfe46a63ed
|
logger can log header line
|
2014-06-17 11:34:13 +08:00 |
yuqing
|
f11b5a1f07
|
change Makefile.in
|
2014-06-17 10:07:06 +08:00 |
yuqing
|
d168878643
|
add connection pool
|
2014-06-17 09:47:04 +08:00 |
yuqing
|
9ec6a70c29
|
logger can set rotate time format
|
2014-06-16 17:53:50 +08:00 |
yuqing
|
b620f77391
|
add get_url_content_ex to support buffer passed by caller
|
2014-06-13 14:13:06 +08:00 |
yuqing
|
b0494666ad
|
add member thread_loop_callback in nio_thread_data
|
2014-06-06 18:31:06 +08:00 |
yuqing
|
f4dacfda98
|
add macro fast_mblock_to_node_ptr
|
2014-06-05 18:16:20 +08:00 |
yuqing
|
80fba80f41
|
add object memory pool
|
2014-06-05 14:11:53 +08:00 |
yuqing
|
df3e985540
|
struct nio_thread_data add arg
|
2014-06-04 18:30:31 +08:00 |
yuqing
|
090c6f819d
|
add function short2buff and buff2short
|
2014-05-30 16:12:17 +08:00 |
yuqing
|
0dd3d17c92
|
update source code from FastDFS V5.02
|
2014-05-29 09:21:50 +08:00 |