ndet_wait.c

来自「操作系统SunOS 4.1.3版本的源码」· C语言 代码 · 共 32 行

C
32
字号
#ifndef	lint#ifdef sccsstatic	char sccsid[] = "@(#)ndet_wait.c 1.1 92/07/30 Copyr 1985 Sun Micro";#endif#endif/* * Copyright (c) 1985 by Sun Microsystems, Inc. *//* * Ndet_wait.c - Implement wait3 specific calls. */#include <sunwindow/ntfy.h>#include <sunwindow/ndet.h>#include <errno.h>extern	errno;pkg_private intndet_check_pid(pid)	int pid;{	if (kill(pid, 0)) {		ntfy_set_errno((errno == ESRCH)? NOTIFY_SRCH: NOTIFY_INVAL);		return(-1);	}	return(0);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?