walnux/include
chao.an 2980792efd libs/libc: add lib_dumpvbuffer support
e.g: Encapsulation Type: Bluetooth H4: add packet type dump support

From:

lib_dumpvbuffer(NULL, data, len);

[    1.567100] 0000  03 0c 00                                         ...
[    1.890100] 0000  0e 04 01 03 0c 00                                ......
[    1.890100] 0000  03 10 00                                         ...
[    1.892900] 0000  0e 0c 01 03 10 00 ff ff 8f fe db ff 5b 87        ............[.
[    1.892900] 0000  01 10 00                                         ...
[    1.894900] 0000  0e 0c 01 01 10 00 06 bb 22 06 0a 00 bb 22        ........"...."
[    1.894900] 0000  02 10 00                                         ...
[    1.901900] 0000  0e 44 01 02 10 00 ff ff ff 03 fe ff ff ff ff ff  .D..............
[    1.901900] 0010  ff ff f3 0f e8 fe 3f f7 83 ff 1c 00 00 00 61 f7  ......?.......a.
[    1.901900] 0020  ff ff 7f 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.901900] 0030  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    1.901900] 0040  00 00 00 00 00 00                                ......

To:

struct iovec bufs[2];

bufs[0].iov_base = &type;
bufs[0].iov_len = 1;
bufs[1].iov_base = data;
bufs[1].iov_len = len;

lib_dumpvbuffer(NULL, bufs, 2);

[    3.711400] 0000  01 03 0c 00                                      ....
[    4.035400] 0000  04 0e 04 01 03 0c 00                             .......
[    4.035400] 0000  01 03 10 00                                      ....
[    4.037400] 0000  04 0e 0c 01 03 10 00 ff ff 8f fe db ff 5b 87     .............[.
[    4.037400] 0000  01 01 10 00                                      ....
[    4.039400] 0000  04 0e 0c 01 01 10 00 06 bb 22 06 0a 00 bb 22     ........."...."
[    4.039400] 0000  01 02 10 00                                      ....
[    4.046400] 0000  04 0e 44 01 02 10 00 ff ff ff 03 fe ff ff ff ff  ..D.............
[    4.046400] 0010  ff ff ff f3 0f e8 fe 3f f7 83 ff 1c 00 00 00 61  .......?.......a
[    4.046400] 0020  f7 ff ff 7f 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    4.046400] 0030  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
[    4.046400] 0040  00 00 00 00 00 00 00                             .......

Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-23 00:11:38 -08:00
..
arpa nxstyle fixes 2020-04-11 21:19:47 +01:00
cxx stdio: remove depends on setbuf setvbuf 2020-10-26 22:12:02 -07:00
net NXStyle fixes 2020-06-15 08:07:19 -06:00
netinet libs/libc/net: implement ether_aton/ether_aton_r 2020-12-10 20:37:32 -06:00
netpacket bluetooth: Add support for HCI RAW channel; make host layer optional 2020-10-25 17:04:25 -07:00
nuttx net: fix typos, incorrect comments, nxstyle 2020-12-13 09:06:28 -06:00
sys libc: Implement getppid 2020-12-20 16:40:14 -03:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 18:00:40 +01:00
aio.h syscall: Fix typo error in cvs and header file 2020-05-07 10:31:05 -06:00
alloca.h include/alloca.h: Add alloca.h. Included limited implmentation of alloc() that is only available for GCC versions 3 and above. 2019-04-04 11:04:08 -06:00
assert.h arch: up_assert shouldn't call exit directly 2020-07-19 01:21:36 +01:00
crc8.h Battery monitor support (#404) 2020-02-28 18:18:50 -06:00
crc16.h
crc32.h
crc64.h include/crc64.h: fix warning: integer constant is too large for its type 2018-08-27 05:47:59 -06:00
ctype.h libc: Change ctype macro to normal function 2020-08-21 16:56:00 +08:00
debug.h libs/libc: add lib_dumpvbuffer support 2020-12-23 00:11:38 -08:00
dirent.h vfs/dirread: Should return the same file type as lstat 2020-07-07 13:41:10 +01:00
dlfcn.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
dsp.h libdsp: Changed headers for apache 2.0 license 2020-10-10 12:24:28 -06:00
elf.h arch: Select 64bit elf base on the architecture characteristic 2020-05-31 21:38:32 -07:00
elf32.h Add missing Elf_Addr typedef 2020-04-30 08:46:21 -06:00
elf64.h Add missing Elf_Addr typedef 2020-04-30 08:46:21 -06:00
endian.h Fix typographical error in endian.h and resource.h 2018-11-09 09:05:48 -06:00
errno.h Completes the Implementation of the TLS-based errno 2020-05-07 23:11:34 +01:00
fcntl.h libc: Implement posix_fallocate 2020-12-14 09:20:15 +01:00
fixedmath.h Fix nxstyle warning 2020-11-29 18:40:40 +09:00
ftw.h libc: Implement ftw and nftw function 2020-08-11 16:44:42 +09:00
getopt.h libc: implement getopt_long partially 2020-11-21 07:01:08 -06:00
grp.h libc/grp: Added stubbed implementations of getgrgid, getgrgid_r, getgrnam, getgrnam_r, and initgroups. These functions are essentially stubs pretending that NuttX supported groups and that the only configured group in the system was 'root' with gid 0. The intend is not to provide meaningful new features, but to ease porting of foreign source code to NuttX. 2019-08-03 08:23:04 -06:00
hex2bin.h Squashed commit of the following: 2019-06-26 14:37:19 -06:00
inttypes.h include/inttypes.h: Provide PRIdMAX and friends using 'j' modifier 2020-11-19 00:49:56 -08:00
libgen.h
limits.h libc/stdio: Allocate file_struct dynamically 2020-09-11 17:58:17 +08:00
locale.h libc/locale: Add the mininal support for locale_t operation 2020-06-15 07:20:19 -06:00
lzf.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
malloc.h mm: Implement malloc_usable_size 2020-08-24 03:36:44 -07:00
mqueue.h syscall: Fix typo error in cvs and header file 2020-05-07 10:31:05 -06:00
netdb.h libc/netdb: Add hostent_s to avoid the change of hostent 2020-04-01 16:09:28 -06:00
nxflat.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
poll.h Change all 'Nuttx' to 'NuttX' 2020-10-20 01:45:06 -07:00
pthread.h pthread/spinlock: move the structure prototype out of the definition 2020-11-09 18:45:48 -08:00
pwd.h libc/pwd: Added stubbed implementations 2019-08-04 07:18:58 -06:00
queue.h include/queue.h: Add dq_tail marco 2018-08-27 05:57:53 -06:00
sched.h sched: Fix undefined reference to 'sched_cpu_count' 2020-09-21 07:37:04 -07:00
semaphore.h Implement proposed POSIX _clockwait variants of existing _timedwait functions 2020-07-27 20:39:59 -03:00
signal.h signal.h: fix compile failed when open TTY_SIGINT 2020-11-05 08:28:53 +01:00
spawn.h syscall: Fix typo error in cvs and header file 2020-05-07 10:31:05 -06:00
stdbool.h include/stdbool.h: Define bool only when __cplusplus isn't defined. 2019-01-27 11:25:00 -06:00
stddef.h stddef.h: Add max_align_t typedef 2020-05-27 05:40:37 -06:00
stdint.h include/inttypes.h: Provide PRIdMAX and friends using 'j' modifier 2020-11-19 00:49:56 -08:00
stdio.h stdio.h: Sprinkle scanflike 2020-11-19 18:03:04 -08:00
stdlib.h crypto/arc4random: rename getrandom to arc4random_buf 2020-12-13 08:49:51 -06:00
stdnoreturn.h stdnoreturn.h: remove C++11 dependency. Applies to C too. 2017-10-02 07:38:43 -06:00
string.h libc: Implement strlcpy function 2020-08-14 03:44:26 -07:00
strings.h libc: Implement popcount/popcountl/popcountll 2020-09-21 07:37:04 -07:00
syscall.h
syslog.h include/syslog.h: Sprinkle sysloglike 2020-12-06 09:03:09 -06:00
termios.h serial/termios: support custom baud rate setting 2020-10-21 10:11:21 -07:00
threads.h threads.h: Support mtx_timedlock and recursive mutex 2020-06-02 09:45:05 +02:00
time.h clock/time: add CLOCK_BOOTTIME definition 2020-12-10 06:40:47 -06:00
unistd.h libc: Implement getppid 2020-12-20 16:40:14 -03:00
uuid.h libc: Add uuid implemenation 2020-07-21 21:48:18 -07:00
wchar.h libc: Add the remaining wscanf series declaration 2020-06-08 11:42:56 +01:00
wctype.h syscall: Fix typo error in cvs and header file 2020-05-07 10:31:05 -06:00