ChinaUnix.net
相关文章推荐:

APUE的linux标准化的实现

[code] int sigaddmask(sigset_t* set, int signo) { if((signo <= 0) || (signo >= NSIG)){ errno = EINVAL; return -1; } *set |= (1 << (signo - 1));/*turn the bit on*/ return 0; } [/code] 这是apue2程序清单10_9中的一个部分,就是将编号是signo的信号加入到 信号集set中,有因为没有编号是0的信号,所以需要将set集中的第(signo-1) 位置1,(假设加入一...

by xiaozhu2007 - C/C++ - 2007-12-18 01:01:14 阅读(1632) 回复(4)

相关讨论

在拷入书上的源码后,编译出现下面的头文件问题: 。。。。。。。。。。 /usr/include/sys/feature_tests.h:336:2: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99" 最关键的我想是在feature_tests.h中出了问题,有朋友遇到了吗,怎么解决的?谢谢!

by new_hand - C/C++ - 2006-09-22 22:11:38 阅读(1080) 回复(2)

各位大虾: 看这段代码时,百思不得其解。具体请看下面代码: #include #include #include #include void abort(void) /* POSIX-style abort() function */ { sigset_t mask; struct sigaction action; /* * Caller can't ignore SIGABRT, if so reset to default. */ sigaction(SIGABRT, NULL, &action); if (action.sa_ha...

by hewangping - 程序开发 - 2006-10-20 13:15:50 阅读(1230) 回复(3)

各位大虾: 看这段代码时,百思不得其解。具体请看下面代码: #include #include #include #include void abort(void) /* POSIX-style abort() function */ { sigset_t mask; struct sigaction action; /* * Caller can't ignore SIGABRT, if so reset to default. */ sigaction(SIGABRT, NULL, &action); if (action.sa_ha...

by hewangping - Linux环境编程 - 2010-08-06 16:01:44 阅读(4575) 回复(5)

有一个地方不解,程序如下(apue 10.18),问题是,在(1)处已经阻塞的子进程结束信号的递送, 在(2)中,父进程还可以等待到子进程的结束信号吗? 谢谢!! [code] #include #include #include #include #include int system(const char *cmdstring) { pid_t pid; int status; struct sigaction ignore, savei...

by rwen2012 - C/C++ - 2006-05-28 01:34:12 阅读(1556) 回复(4)

本资源回复后,可见下载链接

linux

by 戴墨镜的乌龟 - 服务器资源下载 - 2012-05-13 10:50:30 阅读(1020) 回复(1)

赛迪顾问 钱磊 不久前微软在德国的一家刊物上刊登了一则广告,令人深思。广告图片是这样的:四只企鹅站成一排,第一只跟人们通常在画上见到的企鹅没什么两样;第二只企鹅长了一双长长的野兔耳朵;第三只长着青蛙的脑袋,脑门上还有两只鹿角;第四只更可笑,有一双猪耳朵和硕大无比的象鼻子。底下有一行文字:“一个没有任何用处的开放操作系统。”熟悉linux的人一眼就能看出来,这个广告所影射的是正在蓬勃发展,对微软的Wi...

by sjhf - Linux文档专区 - 2009-03-23 11:36:08 阅读(465) 回复(0)

【赛迪网讯】2月22日北京消息,为linux和跨平台软件开发提供领先技术的挪威奇趣科技公司(Trolltech)日前在2005年3GSM 世界大会(3GSM World Congress 2005)上宣布,中国本土最大的手机厂商宁波波导股份有限公司已选择奇趣科技的Qtopia作为其所有linux手机的软件平台。波导将于2005年中发布首款基于linux的智能手机E899。 奇趣科技首席执行官Haavard Nord 说:“这是Qtopia的重大胜利。中国是全球最大的无线业务市场,波导也是中国...

by neilux - Linux文档专区 - 2005-12-14 17:23:37 阅读(706) 回复(0)