File: CHANGELOG.md

package info (click to toggle)
tbox 1.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,676 kB
  • sloc: ansic: 86,482; sh: 4,172; asm: 1,185; makefile: 8; cpp: 5
file content (692 lines) | stat: -rw-r--r-- 18,357 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
# Changelog  ([中文](#中文))

## master (unreleased)

## v1.7.6

### New features

* Support cosmocc toolchain

### Changes

* Implement copy symlinks on windows

## v1.7.5

### Changes

* Improve to check interfaces
* Improve process to output same pipes

## v1.7.4

### New features

* Add Haiku support
* Add tb_file_fscase

### Changes

* Improve wasm support
* Improve to kill processes
* Improve xmake.sh

### Bugs fixed

* Fix setenv for msys/mingw
* Fix compile error for mingw
* Fix tb_buffer_memsetp

## v1.7.3

### Changes

* Improve support for xp and mingw
* Improve configure to support debian package better

## v1.7.2

### New features

* [#201](https://github.com/tboox/tbox/pull/201): Add xmake.sh

### Changes

* Improve path for windows, support UNC and dos device path

### Bugs Fixed

* [#199](https://github.com/tboox/tbox/issues/199): Fix tb_strcmp

## v1.7.1

### New features

* [#190](https://github.com/tboox/tbox/pull/190): Add fs watcher
* Add `tb_file_touch` api

### Changes

* Support wasm
* Support arm64 for windows
* Improve tb_file_info to detect symlink
* Improve tb_file_copy to support symlink
* Improve tb_directory_copy to support symlink

## v1.6.9

### Changes

* Improve bloom filter
* Improve random for msvc

### Bugs Fixed

* [#187](https://github.com/tboox/tbox/issues/187): Fix sort and iterator bug

## v1.6.8

### Changes

* Add riscv32/riscv64/sh4/sparc support
* Improve path support
* Add peer name for socket

### Bugs Fixed

* [#178](https://github.com/tboox/tbox/issues/178): Fix coroutine on windows/x86

## v1.6.7

### Changes

* Support coroutine for mingw
* Improve process poller to support to wait more processes on windows

### Bugs Fixed

* [#175](https://github.com/tboox/tbox/issues/175): Fix coroutine crash on windows
* Fix some compilation errors

## v1.6.6

### New features

* Support *BSD system, e.g. FreeBSD ..

### Changes

* Support to change the current directory for process
* Support stdin for creating process
* Fix some compilation errors for mingw

## v1.6.5

### New features

* [#112](https://github.com/tboox/tbox/issues/112): Support unix socket,thanks [@Codehz](https://github.com/codehz)
* Support to wait pipe, socket and process in coroutine and poller at same time

### Changes

* improve uuid and improve uuid v4
* support msys/mingw and cygwin/gcc toolchains

## v1.6.4

### New features

* [#70](https://github.com/tboox/tbox/issues/70): Add `tb_stream_init_from_sock_ref()` to open a given socket as stream
* Add stdfile api to read/write stdin, stdout and stderr.
* [#81](https://github.com/tboox/tbox/issues/81): Add set/get thread/process cpu affinity
* Add filelock api
* Add anonymous and named pipe

### Changes

* Optimize queue_buffer module
* Improve stream interfaces
* Improve charset encoding and add ANSI support
* Improve atomic and add c11-like atomic apis
* Improve spinlock
* Support to redirect process output to pipe
* Uses virtual memory for coroutine stack
* Improve openssl/mbedtls for https

## v1.6.3

### New features

* [#24](https://github.com/tboox/tbox/issues/24): Support IOCP for coroutine on windows

### Changes

* Move docs directory to tbox-docs repo
* Support tinyc compiler
* Remove deprecated module (asio), please use coroutine module
* Improve memory for container
* Help valgrind to understand coroutines

### Bugs fixed

* Fix the charset problem of envirnoment variables
* Fix process exit bug
* Fix setenv empty value crash
* Fix coroutine.sleep bug
* Fix windows root path bug
* Fix thread local memory leak
* Fix context bug for coroutine
* Fix `tb_vsnprintf` overflow
* [#43](https://github.com/tboox/tbox/issues/43): Fix read dns server and stream bug

## v1.6.2

### New features

* Add ping demo for network

### Changes

* Modify license to Apache License 2.0
* Rename `--smallest=y|n` option to `--small=y|n`
* Support stat64
* Improve copy speed and fix permissions for `tb_file_copy`
* Improve path operation for posix platform
* Improve socket interfaces and support icmp

### Bugs fixed

* Fix create file mode to 0644
* Fix file and directory path bug
* Fix remove directory with dead symbol link failed
* Fix remove readonly file failed
* [#34](https://github.com/tboox/tbox/issues/34): Fix cache time and coroutine sleep bug
* [#35](https://github.com/tboox/tbox/issues/35): Fix epoll bug with the edge trigger mode

## v1.6.1

### New features

* Support coroutine context switch for mips
* Add `__tb_thread_local__` keyword macro
* Add `--micro=y|n` option to compiling micro library (~64K) for the embed system
* Add `tb_addrinfo_addr` and `tb_addrinfo_name` interfaces
* Add stackless coroutine
* Add semaphone and lock for the stackless coroutine

### Changes

* Optimize io scheduler for coroutine, cache events for poller
* Add c11 `_Static_assert`
* Remove some deprecated interfaces for hash and platform

## v1.6.0

### New features

* Support make command and compile directly without xmake
* Add switch context interfaces into platform module
* Add coroutine module (supports i386, x86_64, arm, arm64, mips ..)
* Add simple http server demo using coroutine
* Add simple spider using coroutine
* Add io poller interfaces(with epoll, poll, kqueue, select)
* Support mbedtls ssl library
* All io modules(stream, socket, http, ..) support coroutine mode
* Provide lock, semaphone and channel for coroutine

### Changes

* Optimize and rewrite thread local store module
* Modify thread interfaces
* Mark the asio module as deprecated
* Optimize exception interfaces

### Bugs fixed

* Fix some warning and errors for compiler
* Fix some thread bugs
* Fix parse bplist uid type

## v1.5.3

### New features

* Add wait multi-processes interface
* Add uuid generator
* Add hash library module
* Add `__tb_deprecated__` keyword and option

### Changes

* Move some utils interfaces to the hash module
* Rewrite random generator

### Bugs fixed

* Fix stdout compatibility issue for vs2015
* Fix process arguments length limit

## v1.5.2

### New features

* Add smallest configure option
* Add process operation interfaces

### Changes

* Improve envirnoment interfaces
* Modify xmake.lua for supporting xmake v2.x

### Bugs fixed

* Fix ltimer bug
* Fix asio memory leaks bug
* Fix asio httpd response bug on linux
* Fix path bug for windows

## v1.5.1

### New features

* Add automaticlly check libc interfaces
* Support custom allocator
* Add trace for allocator in the debug mode
* Add `static_pool` module
* Add stream interfaces for reading all data to string
* Add adler32 hash algorithm
* Add `tb_memmem` interface
* Add regex module with pcre, pcre2 or posix regex

### Changes

* Optimize stream and support read/write character device file
* Modify `tb_init` api and support allocator arguments
* Improve memory manager and use the allocator mode
* Redefine `assert` and will abort for debug mode

### Bugs fixed

* Fix some bugs for android
* Fix seek bug for stream

<h1 id="中文"></h1>

# 更新日志

## master (开发中)

## v1.7.6

### 新特性

* 增加对 cosmocc 工具链支持

### 改进

* 改进 copyfile 支持,在 windows 实现对 symlinks 的复制

## v1.7.5

### 改进

* 改进接口检测
* 改进 windows 进程输出,支持同时输出到同一个管道

## v1.7.4

### 新特性

* 添加 Haiku 支持
* 添加 tb_file_fscase 接口判断文件大小写敏感

### 改进

* 改进 wasm 支持
* 改进退出子进程
* 改进 xmake.sh

### Bugs 修复

* 修复 msys/mingw 下 setenv 设置问题
* 修复 mingw 编译错误
* 修复 tb_buffer_memsetp

## v1.7.3

### 改进

* 改进对 xp 和 mingw 的支持
* 改进 configure 构建脚本,更好的支持 debian 打包

## v1.7.2

### 新特性

* [#201](https://github.com/tboox/tbox/pull/201): 添加 xmake.sh

### 改进

* 改进 windows 下根路径处理,支持 UNC 和 dos 设备路径格式

### Bugs 修复

* [#199](https://github.com/tboox/tbox/issues/199): 修复 tb_strcmp

## v1.7.1

### 新特性

* [#190](https://github.com/tboox/tbox/pull/190): 添加文件系统状态监视器
* 添加 `tb_file_touch` 接口

### 改进

* 支持 wasm
* 支持 arm64 windows
* 改进 tb_file_info,支持判断符号链接
* 改进 tb_file_copy 支持符号链接
* 改进 tb_directory_copy 支持符号链接

## v1.6.9

### 改进

* 改进 bloom filter
* 改进 windows/msvc 下 random 实现

### Bugs 修复

* [#187](https://github.com/tboox/tbox/issues/187): 修复排序和迭代器问题

## v1.6.8

### 改进

* 添加 riscv32/riscv64/sh4/sparc 架构支持
* 改进路径支持
* 为 socket 添加 peer name 接口

### Bugs 修复

* [#178](https://github.com/tboox/tbox/issues/178): 修复协程在 windows/x86 上栈溢出问题

## v1.6.7

### 改进

* 改进协程,增加对 mingw 支持
* 改进 process poller 支持在 windows 上等待更多进程

### Bugs 修复

* [#175](https://github.com/tboox/tbox/issues/175): 修复协程在 windows 上崩溃
* 修复一些编译问题

## v1.6.6

### 新特性

* 支持*BSD系统,例如:FreeBSD

### 改进

* 创建进程支持修改处理当前工作目录
* 创建禁止支持 stdin 重定向输入
* 修复一些 mingw 上的编译错误

## v1.6.5

### 新特性

* [#112](https://github.com/tboox/tbox/issues/112): 新增unix socket支持,感谢[@Codehz](https://github.com/codehz)的贡献
* 在协程和poller中支持同时等待和调度socket,pipe io和process

### 改进

* 改进uuid生成,实现uuid v4
* 支持msys/mingw和cygwin/gcc上编译

## v1.6.4

### 新特性

* [#70](https://github.com/tboox/tbox/issues/70): 添加`tb_stream_init_from_sock_ref()`接口去直接打开一个socket作为stream去读取数据。
* 添加stdfile接口去读写stdin, stdout和stderr。
* [#81](https://github.com/tboox/tbox/issues/81): 添加对进程和线程的cpu亲缘性设置和获取
* 添加filelock文件锁跨平台api接口
* 添加匿名管道,命名管道支持

### 改进

* 优化queue_buffer模块
* 改进stream接口实现
* 改进字符集编码转换,以及增加对ANSI编码的支持
* 改进原子操作,并增加c11风格原子接口
* 改进spinlock实现
* 新增进程输出重定向到管道
* 针对协程栈使用虚拟内存
* 改进基于openssl/mbedtls的https访问

## v1.6.3

### 新特性

* [#24](https://github.com/tboox/tbox/issues/24): 针对windows平台下的协程处理,增加IOCP支持

### 改进

* 移除docs目录,放置到独立tbox-docs仓库,减少tbox.zip包大小
* 支持tinyc编译器
* 移除被废弃的模块(asio模块,先用coroutine代替)
* 精简优化容器库内存资源使用
* 帮助valgrind更好的理解coroutine

### Bugs修复

* 修复windows环境变量的中文编码问题
* 修复后台进程退出问题
* 修复设置环境变量值为空时的崩溃问题
* 修复协程sleep超时覆写数据的bug
* 修复windows根路径问题
* 修复tls线程存储内存泄露问题
* 修复context切换问题
* 修复`tb_vsnprintf`栈溢出问题
* [#43](https://github.com/tboox/tbox/issues/43): 修复读取dns服务器以及stream读取bug

## v1.6.2

### 新特性

* 增加ping测试程序

### 改进

* 修改license,使用更加宽松的Apache License 2.0
* 重命名`--smallest=y|n`选项到`--small=y|n`
* 使用`stat64`支持大文件信息获取
* 改进`tb_file_copy`,更加快速的文件copy,并且修复copy后文件权限丢失问题
* 改进posix平台下的路径操作
* 改进socket初始化接口,支持icmp协议

### Bugs修复

* 修复创建文件权限不对问题
* 修复文件和目录路径问题
* 修复无法移除带有无效软链的目录问题
* 修复无法移除只读文件问题
* [#34](https://github.com/tboox/tbox/issues/34): 修复缓存时间和协程sleep不准问题
* [#35](https://github.com/tboox/tbox/issues/35): 修复epoll边缘触发模式下,centos上检测连接关闭失效问题

## v1.6.1

### 新特性

* 针对协程上下文切换,支持mips架构
* 添加`__tb_thread_local__`关键字宏
* 添加 `--micro=y|n` 选项,实现极小编译,针对嵌入式平台,编译tbox微内核(~64K)
* 添加 `tb_addrinfo_addr` and `tb_addrinfo_name` 接口
* 添加stackless协程,更加轻量的协程支持,每个协程只占用几十个bytes,同时支持io调度
* 针对stackless协程,增加lock和semaphone支持

### 改进

* 为协程优化io调度器,缓存poller轮询等待,减少频繁重复调用epoll_ctl, kevent等系统接口
* 添加对c11关键字`_Static_assert`的支持
* 针对hash和platform模块,移除一些废弃的接口

## v1.6.0

### 新特性

* 支持make进行直接编译(会去自动下载xmake进行构建)
* 在平台库中,添加切换context上下文接口(参考boost.context实现原理进行重写,并对部分架构进行优化)
* 新增跨平台协程模块(支持i386, x86_64, arm, arm64, mips),提供更加易用的高性能并发编程模式
* 新增基于协程的各种服务器开发实例(包括:简单轻量的http服务器,爬虫。。)
* 新增poller轮询器接口,实现对epoll, poll, kqueue, select的封装,逐步取代老的aiop接口
* 新增mbedtls ssl库接口支持,目前已支持:openssl, polarssl, mbedtls
* tbox所有stream, socket, http, dns, ssl 等io相关操作,原生支持协程模式,并且可以在线程和协程间随意切换
* 为协程提供lock, semaphone, channel模块

### 改进

* 优化和重构线程局部存储TLS模块
* 修改部分线程接口
* asio模块被标记为废弃接口,下个版本将会被移除,逐步使用协程模式来实现异步io开发
* 优化异常捕获接口

### Bugs修复

* 修复一些编译警告和错误
* 修复一些线相关bug
* 修复bplist中解析uid类型失败问题

## v1.5.3

### 新特性

* 增加同时等待多个进程接口
* 增加uuid生成器
* 增加hash库模块
* 添加`__tb_deprecated__`关键字以及配置选项

### 改进

* 移动部分utils接口到hash模块
* 重写random生成器

### Bugs修复

* 修复stdout在vs2015以上版本的兼容性问题
* 修复进程参数长度限制

## v1.5.2

### 新特性

* 增加smallest参数配置选项,实现一键配置最小化编译,禁用所有扩展模块和依赖库
* 增加进程创建和控制接口

### 改进

* 增强环境变量设置接口
* 修改xmake.lua支持最新版xmake v2.x, 简化编译配置

### Bugs修复

* 修复ltimer定时器不准问题
* 修复asio部分内存泄露问题
* 修复asio/httpd在linux下keepalive模式,响应很慢问题
* 修复windows下路径处理的一些bug

## v1.5.1

### 新特性

* 自动检测所有系统libc接口,优先使用系统版本
* 支持自定义内存分配器,并且能够在debug模式下,获取每次分配的代码位置信息,用于自定义追踪
* 增加轻量级`static_pool`来维护整块buffer的内存分配,适合局部管理部分内存,pool虽然也能维护,但是底层基于`large_pool`,比较重量级,适合全局管理内存
* 增加stream快速读取全部数据到string的接口
* 增加adler32 hash算法
* 增加`tb_memmem`接口
* 采用pcre/pcre2/posix regex实现正则表达式库

### 改进

* 优化stream,支持对字符设备文件的读写
* 修改`tb_init`接口,增加allocator自定义内存分配器参数,实现用户的侵入式内存管理
* 重构内存管理,完全采用分配器allocator模式,可以灵活切换内存管理,支持原生系统内存、静态buffer内存、内存池等各种分配方式
* 重定义assert,debug模式遇到assert直接abort执行

### Bugs修复

* 修复android下的一些bug
* 修复stream的seek问题

## v1.5.0

### 新特性

* 增加跨平台环境变量操作接口

### 改进

* 重建整个编译架构,采用xmake跨平台自动构建工具进行构建。。
* 优化.pkg的依赖包机制,支持依赖库和接口的自动检测,针对libc、libm优先使用自动检测到的系统库接口实现,如果当前平台没有实现则使用tbox的自己实现版本,使得最大化性能和跨平台性。。
* 完善和优化路径操作,增加相对路径、绝对路径的相互转换

### Bugs修复

* 修复strlcpy等一些libc接口的实现bug

## v1.4.8

### 新特性

* 新增路径操作接口,支持相对路径、绝对路径相互转换

### 改进

* 重建整个makefile架构,采用`*.pkg`依赖包模式模块化对第三方库的依赖,降低耦合
* 默认编译配置可以自动探测当前平台支持的依赖包,注:所有依赖包都是可选的,如果要最小化编译,可以完全禁用
* 编译生成的所有库和头文件,也都安装成独立`*.pkg`格式,方便集成到其他开发平台,也方便copy
* 增强object路径解析接口,支持json, xml宏路径解析,并增加实用json解析工具:jcat
* 实现通用ipaddr结构,统一接口,全面支持ipv6/ipv4,stream/http的url也完全支持ipv6格式解析
* 重命名hash为`hash_map`,并新增`hash_set`容器

## v1.4.7

### 改进

* 增强fixed16定点类型的接口,优化部分接口性能,调试模式下增加更多的溢出检测
* 优化整数平方根的实现,增加对64位整数平方根的快速计算

### Bugs修复

* 修复string空字符串bug
* 修复windows下asio的一些bug
* 修复一些编译问题

## v1.4.7_rc1

### 新特性

* 增加asio模块,支持各种异步socket/file操作,支持异步dns、ssl(依赖polarssl/openssl)、http
* 增加http cookie支持,完善http客户端协议
* 增加sql数据库模块,依赖sqlite3/mysql
* 增加object模块
* 新增min/max heap容器,新增`list_entry`、`single_list_entry`等外置轻量链表实现,和`list`、`single_list`不同的是,不需要维护内部内存,而且更加灵活,新增bloom_filter
* 新增remove、walk、count、for等常用算法支持
* 新增线程池、定时器、信号量、自旋锁、atomic64等常用系统操作
* 新增http服务器、http爬虫、http下载器等实用性demo

### 改进

* 重构stream模块,并新增`async_stream`、`async_transfer`、`transfer_pool`等新特性。
* 优化和完善libc、libm的接口
* 重构整个内存管理架构,完善内存检测的支持,优化内存使用和效率

### Bugs修复

* 修复和优化xml解析模块