⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 win_is_ind.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lint#ifdef sccsstatic	char sccsid[] = "@(#)win_is_ind.c 1.1 92/07/30 Copyr 1985 Sun Micro";#endif#endif/* * Copyright (c) 1985 by Sun Microsystems, Inc. *//* * Win_is_ind.c: Implement the win_is_input_device call. */#include <sys/types.h>#include <sys/time.h>#include <sys/file.h>#include <sys/ioctl.h>#include <sun/fbio.h>#include <errno.h>#include <stdio.h>#include <sunwindow/rect.h>#include <sunwindow/cms.h>#include <sunwindow/win_screen.h>#include <sunwindow/win_input.h>#include <sunwindow/win_ioctl.h>#include <sunwindow/win_struct.h>#include <strings.h>extern	int	errno;intwin_is_input_device(windowfd, name)	int windowfd;	char *name;{	struct	input_device in_dev;	(void)strncpy(in_dev.name, name, SCR_NAMESIZE);	in_dev.id = -1;	if (ioctl(windowfd, WINGETINPUTDEV, &in_dev) == -1) {		if (errno == ENODEV)			return(0);		(void)werror(-1, WINGETINPUTDEV);		return(-1);	}	return(1);}

⌨️ 快捷键说明

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