2019年1月23日

The new SFCB broker fails to start with a SSL-related error: Failure setting ECDH curve name (secp22

摘要: # openssl ecparam -list_curves secp384r1 : NIST/SECG curve over a 384 bit prime field secp521r1 : NIST/SECG curve over a 521 bit prime field prime256v 阅读全文

posted @ 2019-01-23 16:57 liujx2019 阅读(207) 评论(0) 推荐(0)

SVN diff

摘要: http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.diff.html Name svn diff (di) — This displays the differences between two revisions or paths. Name svn 阅读全文

posted @ 2019-01-23 16:56 liujx2019 阅读(182) 评论(0) 推荐(0)

Linux 常用C函数

摘要: http://net.pku.edu.cn/~yhf/linux_c/ 阅读全文

posted @ 2019-01-23 16:56 liujx2019 阅读(126) 评论(0) 推荐(0)

shell脚本报错:"[: =: unary operator expected"

摘要: shell脚本报错:"[: =: unary operator expected" 在匹配字符串相等时,我用了类似这样的语句: if [ $STATUS == "OK" ]; then echo "OK" fi 在运行时出现了 [: =: unary operator expected 的错误,就一 阅读全文

posted @ 2019-01-23 16:56 liujx2019 阅读(1043) 评论(0) 推荐(0)

一种用 数组元素 指定 所调函数 的方法

摘要: typedef struct mgrHandler { void (*handler) (int *, OperationHdr *); } MgrHandler; static MgrHandler mHandlers[] = { {notSupported}, // dummy {classProvider}, ... 阅读全文

posted @ 2019-01-23 16:55 liujx2019 阅读(152) 评论(0) 推荐(0)

阻塞 非阻塞

摘要: 阻塞的系统调用是指, 当进行系统调用时, 除非出错(被信号打断也视为出错) , 进程将会一直陷入内核态直到调用完成。 非阻塞的系统调用是指无论I/O操作成功与否, 调用都会立刻返回 阅读全文

posted @ 2019-01-23 16:54 liujx2019 阅读(105) 评论(0) 推荐(0)

Linux open() 一个函数,两个函数原型

摘要: open在手册中有两个函数原型, 如下所示: int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode); 这样的函数原型有些违背了我们的直觉。 C语言是不支持函数 阅读全文

posted @ 2019-01-23 16:45 liujx2019 阅读(943) 评论(0) 推荐(1)

QT 执行windows cmd 命令并读取结果

摘要: 1,写好命令, 2,用QProcess执行,等待完成(有超时), 3,读取结果 注意形如“Program Files”的有 空格 的路径,要加上双引号。 阅读全文

posted @ 2019-01-23 16:42 liujx2019 阅读(3139) 评论(0) 推荐(0)

Qt5 escape spaces in path

摘要: There are two possible ways. You can either use escaped quotes (inserting the string between quotes) : Or use the QStringList() overload of start whic 阅读全文

posted @ 2019-01-23 16:41 liujx2019 阅读(232) 评论(0) 推荐(0)

获取磁盘的 总容量,空余容量,已用容量 【windows】

摘要: 使用windows api 输入:盘符字符串 输出:磁盘容量 注意其中的字符数组 dir 一定要以'\0'结尾,否则程序时好时坏,因为有时dir末尾正好是0,而有时不是。 阅读全文

posted @ 2019-01-23 16:40 liujx2019 阅读(440) 评论(0) 推荐(0)

导航