当前位置: 技术问答>APUE中“信号”一节的问题
iis7站长之家
apue关于record lock一节的疑问,详见:
来源: 互联网 发布时间:2016-09-06
本文导语: 这两天在啃apue,关于record lock一节(14。3节)有点疑问: Figure 14.7. Example of deadlock detection #include "apue.h" #include static void lockabyte(const char *name, int fd, off_t offset) { if (writew_lock(fd, offset, SEEK_SET, 1)
这两天在啃apue,关于record lock一节(14。3节)有点疑问:
Figure 14.7. Example of deadlock detection
#include "apue.h"
#include
static void
lockabyte(const char *name, int fd, off_t offset)
{
if (writew_lock(fd, offset, SEEK_SET, 1)
Figure 14.7. Example of deadlock detection
#include "apue.h"
#include
static void
lockabyte(const char *name, int fd, off_t offset)
{
if (writew_lock(fd, offset, SEEK_SET, 1)