1318325Sngie/*
2346920Sngie * Copyright (c) 2017 Enji Cooper <ngie@FreeBSD.org>
3318325Sngie *
4318325Sngie * Redistribution and use in source and binary forms, with or without
5318325Sngie * modification, are permitted provided that the following conditions
6318325Sngie * are met:
7318325Sngie * 1. Redistributions of source code must retain the above copyright
8318325Sngie *    notice, this list of conditions and the following disclaimer.
9318325Sngie * 2. Redistributions in binary form must reproduce the above copyright
10318325Sngie *    notice, this list of conditions and the following disclaimer in the
11318325Sngie *    documentation and/or other materials provided with the distribution.
12318325Sngie *
13318325Sngie * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
14318325Sngie * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
15318325Sngie * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16318325Sngie * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
17318325Sngie * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18318325Sngie * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19318325Sngie * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20318325Sngie * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21318325Sngie * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22318325Sngie * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23318325Sngie * POSSIBILITY OF SUCH DAMAGE.
24318325Sngie */
25318325Sngie
26318325Sngie#include <sys/cdefs.h>
27318325Sngie__RCSID("$FreeBSD: stable/11/usr.bin/procstat/tests/while1.c 352492 2019-09-18 19:28:17Z jilles $");
28318325Sngie
29318325Sngie#include <stdlib.h>
30318325Sngie#include <unistd.h>
31318325Sngie
32318325Sngieint
33318325Sngiemain(void)
34318325Sngie{
35318325Sngie
36352492Sjilles	if (write(STDOUT_FILENO, "started\n", 8) != 8)
37352492Sjilles		abort();
38318325Sngie	for (;;)
39352492Sjilles		pause();
40318325Sngie}
41