003 File Manager
Current Path:
/usr/src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/probes
usr
/
src
/
cddl
/
contrib
/
opensolaris
/
cmd
/
dtrace
/
test
/
tst
/
common
/
probes
/
📁
..
📄
err.D_PDESC_ZERO.probeqtn.d
(1.2 KB)
📄
err.D_PDESC_ZERO.probestar.d
(1.19 KB)
📄
err.D_PDESC_ZERO.tickstar.d
(1.2 KB)
📄
err.D_SYNTAX.assign.d
(1.18 KB)
📄
err.D_SYNTAX.declare.d
(1.18 KB)
📄
err.D_SYNTAX.declarein.d
(1.19 KB)
📄
err.D_SYNTAX.lbraces.d
(1.12 KB)
📄
err.D_SYNTAX.probespec.d
(1.2 KB)
📄
err.D_SYNTAX.rbraces.d
(1.12 KB)
📄
err.D_SYNTAX.recdec.d
(1.14 KB)
📄
tst.basic1.d
(1.13 KB)
📄
tst.check.d
(1.17 KB)
📄
tst.declare.d
(1.13 KB)
📄
tst.declareafter.d
(1.14 KB)
📄
tst.emptyprobe.d
(1.13 KB)
📄
tst.pragma.d
(1.12 KB)
📄
tst.pragmaaftertab.d
(1.16 KB)
📄
tst.pragmainside.d
(1.12 KB)
📄
tst.pragmaoutside.d
(1.12 KB)
📄
tst.probestar.c
(1.19 KB)
📄
tst.probestar.d
(1.18 KB)
Editing: tst.probestar.c
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2017 Li-Wen Hsu <lwhsu@FreeBSD.org> */ #include <signal.h> #include <stdio.h> #include <unistd.h> int main(void) { sigset_t set; siginfo_t info; struct timespec timeout; (void)sigemptyset(&set); (void)sigaddset(&set, SIGHUP); timeout.tv_sec = 1; timeout.tv_nsec = 0; for (;;) (void)sigtimedwait(&set, &info, &timeout); return (0); }
Upload File
Create Folder