VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/utils/dos/DosSleep.c@ 85855

Last change on this file since 85855 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: DosSleep.c 82968 2020-02-04 10:35:17Z vboxsync $ */
2/** @file
3 * 16-bit DOS sleep program.
4 *
5 * Build: wcl -I%WATCOM%\h\win -l=dos -k4096 -fm -W4 DosSleep.c
6 */
7
8/*
9 * Copyright (C) 2018-2020 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 *
19 * The contents of this file may alternatively be used under the terms
20 * of the Common Development and Distribution License Version 1.0
21 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
22 * VirtualBox OSE distribution, in which case the provisions of the
23 * CDDL are applicable instead of those of the GPL.
24 *
25 * You may elect to license modified versions of this file under the
26 * terms and conditions of either the GPL or the CDDL or both.
27 */
28
29
30/*********************************************************************************************************************************
31* Header Files *
32*********************************************************************************************************************************/
33#include <stdlib.h>
34#include <stdio.h>
35#include <unistd.h>
36
37
38
39int main(int argc, char **argv)
40{
41 int iExit;
42
43 if (argc == 2)
44 {
45 int cSeconds = atoi(argv[1]);
46 sleep(cSeconds);
47 iExit = 0;
48 }
49 else
50 {
51 fprintf(stderr, "syntax error: only expected a number of seconds\n");
52 iExit = 4;
53 }
54
55 return iExit;
56}
57
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette