摘要: https://blog.csdn.net/qq_24188351/article/details/77891353 https://blog.csdn.net/qq_24188351/article/details/77921653 https://www.jianshu.com/p/040459 阅读全文
posted @ 2020-03-14 00:52 sinferwu 阅读(1274) 评论(0) 推荐(0)
摘要: 一、fork入门知识 一个进程,包括代码、数据和分配给进程的资源。fork()函数通过系统调用创建一个与原来进程几乎完全相同的进程, 也就是两个进程可以做完全相同的事,但如果初始参数或者传入的变量不同,两个进程也可以做不同的事。 一个进程调用fork()函数后,系统先给新的进程分配资源,例如存储数据 阅读全文
posted @ 2020-03-06 14:33 sinferwu 阅读(1119) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq_25424545/article/details/78772959 今天用fork()写程序时候,突然发现自己对Printf的缓冲机制还是有些不够了解,于是来深度解析一下,Printf的缓冲机制到底是怎么一回事呢? 首先printf是库函数,它是由C 阅读全文
posted @ 2020-03-06 14:29 sinferwu 阅读(1850) 评论(0) 推荐(0)
摘要: nodejs server client 通信 gRPC https://grpc.io/ protobuf https://my.oschina.net/u/3860449/blog/2396031 RPMsg work_queue K8S ... https://howardlau.me/mac 阅读全文
posted @ 2020-01-19 18:26 sinferwu 阅读(107) 评论(0) 推荐(0)
摘要: .a静态库文件实际上就是.o目标文件的集合 x[o] - extract file(s) from the archivear -x libxxx.a 提取目标文件 file add.o nm add.o https://www.jianshu.com/p/863b279c941e 通过使用工具re 阅读全文
posted @ 2019-12-26 11:36 sinferwu 阅读(700) 评论(0) 推荐(0)
摘要: 首选 Clang-Format https://clang.llvm.org/docs/ClangFormatStyleOptions.html# Astyle http://astyle.sourceforge.net/ http://astyle.sourceforge.net/astyle.h 阅读全文
posted @ 2019-12-25 19:16 sinferwu 阅读(281) 评论(0) 推荐(0)
摘要: http://blog.itpub.net/27181165/viewspace-1061688/ 在linux中通常会使用shell结合正则表达式来过滤字符,本文将以一个简单的例子来说明+,*,[:space:]的一些用法+ 匹配1个或多个字符* 匹配0个或多个字符[:space:] 匹配空白字符 阅读全文
posted @ 2019-12-12 12:57 sinferwu 阅读(5587) 评论(0) 推荐(1)
摘要: 删除文件中的 ^M 字符 有时候,我们在 Linux 中打开曾在 Win 中编辑过的文件时,会在行尾看到 ^M 字符。虽然,这并不影响什么,但心里面还是有点不痛快。如果想要删除这些 ^M 字符,可以使用 Vim 来轻松搞定它。 在 Vim 的命令模式中输入 :%s/^M$//g 后,回车即会自动删除 阅读全文
posted @ 2019-12-09 13:13 sinferwu 阅读(1219) 评论(0) 推荐(0)
摘要: https://likegeeks.com/expect-command/ In the previous post, we talked about writing practical shell scripts and we saw how it is easy to write a shell 阅读全文
posted @ 2019-11-14 10:18 sinferwu 阅读(492) 评论(0) 推荐(0)
摘要: 命令模式:进入:其他模式都可以直接转换到命令模式,按Esc即可。如果一次不行就多按几次。主要用来浏览和操作文件,可以使用相关的快捷键,例如:gg:跳到文件首 ngg:跳到文件n行 shitf + g:跳到行文件尾 yy: 复制光标所在的一行yny:复制光标处起的n行p:粘贴 16进制查看 gvim  阅读全文
posted @ 2019-06-27 11:16 sinferwu 阅读(277) 评论(0) 推荐(0)