1*02efe53eSSevan Janiyan /* $NetBSD: sync.c,v 1.14 2016/09/05 01:00:07 sevan Exp $ */
25f59a986SLionel Sambuc
35f59a986SLionel Sambuc /*
45f59a986SLionel Sambuc * Copyright (c) 1987, 1993
55f59a986SLionel Sambuc * The Regents of the University of California. All rights reserved.
65f59a986SLionel Sambuc *
75f59a986SLionel Sambuc * Redistribution and use in source and binary forms, with or without
85f59a986SLionel Sambuc * modification, are permitted provided that the following conditions
95f59a986SLionel Sambuc * are met:
105f59a986SLionel Sambuc * 1. Redistributions of source code must retain the above copyright
115f59a986SLionel Sambuc * notice, this list of conditions and the following disclaimer.
125f59a986SLionel Sambuc * 2. Redistributions in binary form must reproduce the above copyright
135f59a986SLionel Sambuc * notice, this list of conditions and the following disclaimer in the
145f59a986SLionel Sambuc * documentation and/or other materials provided with the distribution.
155f59a986SLionel Sambuc * 3. Neither the name of the University nor the names of its contributors
165f59a986SLionel Sambuc * may be used to endorse or promote products derived from this software
175f59a986SLionel Sambuc * without specific prior written permission.
185f59a986SLionel Sambuc *
195f59a986SLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
205f59a986SLionel Sambuc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
215f59a986SLionel Sambuc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
225f59a986SLionel Sambuc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
235f59a986SLionel Sambuc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
245f59a986SLionel Sambuc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
255f59a986SLionel Sambuc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
265f59a986SLionel Sambuc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
275f59a986SLionel Sambuc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
285f59a986SLionel Sambuc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
295f59a986SLionel Sambuc * SUCH DAMAGE.
305f59a986SLionel Sambuc */
315f59a986SLionel Sambuc
325f59a986SLionel Sambuc #include <sys/cdefs.h>
335f59a986SLionel Sambuc #ifndef lint
345f59a986SLionel Sambuc __COPYRIGHT("@(#) Copyright (c) 1987, 1993\
355f59a986SLionel Sambuc The Regents of the University of California. All rights reserved.");
365f59a986SLionel Sambuc #endif /* not lint */
375f59a986SLionel Sambuc
385f59a986SLionel Sambuc #ifndef lint
395f59a986SLionel Sambuc #if 0
405f59a986SLionel Sambuc static char sccsid[] = "@(#)sync.c 8.1 (Berkeley) 5/31/93";
415f59a986SLionel Sambuc #else
42*02efe53eSSevan Janiyan __RCSID("$NetBSD: sync.c,v 1.14 2016/09/05 01:00:07 sevan Exp $");
435f59a986SLionel Sambuc #endif
445f59a986SLionel Sambuc #endif /* not lint */
455f59a986SLionel Sambuc
465f59a986SLionel Sambuc #include <stdlib.h>
475f59a986SLionel Sambuc #include <unistd.h>
485f59a986SLionel Sambuc
495f59a986SLionel Sambuc /* ARGSUSED */
505f59a986SLionel Sambuc int
main(int argc,char * argv[])515f59a986SLionel Sambuc main(int argc, char *argv[])
525f59a986SLionel Sambuc {
535f59a986SLionel Sambuc setprogname(argv[0]);
545f59a986SLionel Sambuc sync();
555f59a986SLionel Sambuc exit(0);
565f59a986SLionel Sambuc /* NOTREACHED */
575f59a986SLionel Sambuc }
58