摘要:
最近学习UNIX环境网络编程POSIX消息队列的时候发现一个问题,在mq_open的时候总会报Permission denied的错误。查看mq_overview后才得以解决。mq_overview原文描述如下:Mounting the message queue file system On Linux, message queues are created in a virtual file system. (Other implementations may also provide such a feature, but the details are likely to differ 阅读全文
摘要:
1、获取代码点击下载2、修改Make.defines.linux将WKDIR修改为代码当前所处的目录。3、编译直接make后会遇到两个问题。1. apue.2e/ipp/ipp.h 出现宏定义:#define status u.st编译出现错误提示:expected ':', ',', ';', '}' or '__attribute__' before '.' token解决方案:将apue.2e/ipp/ipp.h的宏定义:#define status u.sth中的status改成Status 阅读全文
摘要:
卷1 套接字联网API1、获取源码官网好像没有第三版的代码。我是从这里下载2、解压 $tar zxvf unpv13e.tar.gz3、编译$cd unpv13e$./configure $cd lib $make $cd ../libfree $make $cd ../libgai $make卷2 进程间通信1、获取代码 由于没找到第三版的,所以只好用第二版wget http://www.kohala.com/start/unpv22e/unpv22e.tar.gz2. 解压: $tar -zxvf unpv22e.tar.gz3. 编译: $cd unpv22e$ ./configur.. 阅读全文