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