mksignal.sh
来自「Sun Solaris 10 中的 DTrace 组件的源代码。请参看: htt」· Shell 代码 · 共 28 行
SH
28 行
#!/bin/sh## Copyright 2005 Sun Microsystems, Inc. All rights reserved.## The contents of this file are subject to the terms of the# Common Development and Distribution License, Version 1.0 only.# See the file usr/src/LICENSING.NOTICE in this distribution or# http://www.opensolaris.org/license/ for details.##ident "@(#)mksignal.sh 1.1 03/09/02 SMI"echo "\/*\n\ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.\n\ *\n\ * The contents of this file are subject to the terms of the\n\ * Common Development and Distribution License, Version 1.0 only.\n\ * See the file usr/src/LICENSING.NOTICE in this distribution or\n\ * http://www.opensolaris.org/license/ for details.\n\ */\n\\n\#pragma ident\t\"@(#)mksignal.sh\t1.1\t03/09/02 SMI\"\n"pattern='^#define[ ]*_*\(SIG[A-Z0-9]*\)[ ]\{1,\}\([A-Z0-9]*\).*$'replace='inline int \1 = \2;@#pragma D binding "1.0" \1'sed -n "s/$pattern/$replace/p;/SIGRTMAX/q" | tr '@' '\n'
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?