linux pipe

4-30 699 views

linux pipe 读写分开,读的只能读,写的只能写,写什么,读到的就是什么

    int msgpipe[2];
    if (pipe(msgpipe)) {
        LOG_INFO("could not create pipe: %s", strerror(errno));
        return NULL;
    }

    int8_t cmdr;
    int8_t cmdw = 9;
    write(msgpipe[1], &cmdw, sizeof(cmdw));
    read( msgpipe[0], &cmdr, sizeof(cmdr));

typescript 源码分析

https://www.cnblogs.com/xuld/p/12180913.html

阅读全文

flutter_gen config

const configDefaultYamlContent = ''' name: UNKNOWN flutter_gen: Optional output: lib/gen/ Optional line_length: 80 Optional parse_metadata: false ...

阅读全文

redis 函数的含义

您提供的函数列表是一个 Redis 客户端 API 的部分实现,通常用于与 Redis 数据库进行交互。以下是这些函数的简要解释,按类别进行分类以帮助理解其功能和用...

阅读全文

欢迎留言