Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1085 | pj | 1 | /* |
2 | * Project: HARTIK (HA-rd R-eal TI-me K-ernel) |
||
3 | * |
||
4 | * Coordinators: Giorgio Buttazzo <giorgio@sssup.it> |
||
5 | * Gerardo Lamastra <gerardo@sssup.it> |
||
6 | * |
||
7 | * Authors : Paolo Gai <pj@hartik.sssup.it> |
||
8 | * (see authors.txt for full list of hartik's authors) |
||
9 | * |
||
10 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
11 | * |
||
12 | * http://www.sssup.it |
||
13 | * http://retis.sssup.it |
||
14 | * http://hartik.sssup.it |
||
15 | */ |
||
16 | |||
17 | /** |
||
18 | ------------ |
||
19 | CVS : $Id: test4.c,v 1.1.1.1 2002-09-02 09:37:48 pj Exp $ |
||
20 | |||
21 | File: $File$ |
||
22 | Revision: $Revision: 1.1.1.1 $ |
||
23 | Last update: $Date: 2002-09-02 09:37:48 $ |
||
24 | ------------ |
||
25 | |||
26 | Test Number 4: |
||
27 | |||
28 | this test is a simple main() function |
||
29 | |||
30 | This test has to be compiled with init1.c, that introduce 2 RR levels |
||
31 | with a timeslice of 300us (!) |
||
32 | |||
33 | This test can be useful to test functions like |
||
34 | |||
35 | perror |
||
36 | |||
37 | **/ |
||
38 | |||
39 | /* |
||
40 | * Copyright (C) 2000 Paolo Gai |
||
41 | * |
||
42 | * This program is free software; you can redistribute it and/or modify |
||
43 | * it under the terms of the GNU General Public License as published by |
||
44 | * the Free Software Foundation; either version 2 of the License, or |
||
45 | * (at your option) any later version. |
||
46 | * |
||
47 | * This program is distributed in the hope that it will be useful, |
||
48 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
49 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
50 | * GNU General Public License for more details. |
||
51 | * |
||
52 | * You should have received a copy of the GNU General Public License |
||
53 | * along with this program; if not, write to the Free Software |
||
54 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
55 | * |
||
56 | */ |
||
57 | |||
58 | #include "kernel/kern.h" |
||
59 | |||
60 | int main(int argc, char **argv) |
||
61 | { |
||
62 | errno = EUNVALID_KILL; kern_printf("code: %d ",errno); perror("EUNVALID_KILL"); |
||
63 | errno = EINVAL; kern_printf("code: %d ",errno); perror("EINVAL"); |
||
64 | errno = ENOMEDIUM; kern_printf("code: %d ",errno); perror("ENOMEDIUM"); |
||
65 | |||
66 | return 0; |
||
67 | } |