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

📄 ntfy_perror.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef	lint#ifdef sccsstatic	char sccsid[] = "@(#)ntfy_perror.c 1.1 92/07/30 Copyr 1985 Sun Micro";#endif#endif /* * Copyright (c) 1985 by Sun Microsystems, Inc. *//* * Ntfy_perror.c - Notify_perror implementation. */#include <stdio.h>#include <sunwindow/ntfy.h>extern voidnotify_perror(str)	char *str;{	register char *msg;	switch(notify_errno) {	case NOTIFY_OK: msg = "Success"; break;	case NOTIFY_UNKNOWN_CLIENT: msg = "Unknown client"; break;	case NOTIFY_NO_CONDITION: msg = "No condition for client"; break;	case NOTIFY_BAD_ITIMER: msg = "Unknown interval timer type"; break;	case NOTIFY_BAD_SIGNAL: msg = "Bad signal number"; break;	case NOTIFY_NOT_STARTED: msg = "Notifier not started"; break;	case NOTIFY_DESTROY_VETOED: msg = "Destroy vetoed"; break;	case NOTIFY_INTERNAL_ERROR: msg = "Notifier internal error"; break;	case NOTIFY_SRCH: msg = "No such process"; break;	case NOTIFY_BADF: msg = "Bad file number"; break;	case NOTIFY_NOMEM: msg = "Not enough core"; break;	case NOTIFY_INVAL: msg = "Invalid argument"; break;	case NOTIFY_FUNC_LIMIT: msg = "Too many interposition functions"; break;	default: msg = "Unknown notifier error";	}	(void) fprintf(stderr, "%s: %s\n", str, msg);}

⌨️ 快捷键说明

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