1 /* --COPYRIGHT--,ESD
2 * Copyright (c) 2008 Texas Instruments. All rights reserved.
3 * This program and the accompanying materials are made available under the
4 * terms of the Eclipse Public License v1.0 and Eclipse Distribution License
5 * v. 1.0 which accompanies this distribution. The Eclipse Public License is
6 * available at http://www.eclipse.org/legal/epl-v10.html and the Eclipse
7 * Distribution License is available at
8 * http://www.eclipse.org/org/documents/edl-v10.php.
9 *
10 * Contributors:
11 * Texas Instruments - initial implementation
12 * --/COPYRIGHT--*/
13 /*
14 * ======== SysStd.xdc ========
15 *
16 *! Revision History
17 *! ================
18 *! 28-Nov-2006 toddm Start revision history
19 */
20
21 package xdc.runtime;
22
23 /*!
24 * ======== SysStd ========
25 * Implementation of `{@link ISystemSupport}` using ANSI C Standard Library
26 *
27 * This implementation provides a fully functional implementation of
28 * all methods specified by `ISystemSupport`. As with all
29 * `ISystemSupport` modules, this module is the back-end for the
30 * `{@link System}` module.
31 *
32 * This implementation relies on the target's runtime support libraries
33 * (i.e. `fflush()` and `putchar()`). Therefore the functions are re-entrant
34 * (thread-safe) if the underlying rts library is re-entrant.
35 */
36 module SysStd inherits xdc.runtime.ISystemSupport {
37 /*!
38 * ======== abort ========
39 * Backend for `{@link System#abort()}`
40 *
41 * This abort function writes the string via `putchar()`
42 * and flushes via `fflush()` to `stdout`.
43 *
44 * @see ISystemSupport#abort
45 */
46 override Void abort(String str);
47
48 /*!
49 * ======== exit ========
50 * Backend for `{@link System#exit()}`
51 *
52 * This exit function flushes via `fflush()` to `stdout`.
53 *
54 * @see ISystemSupport#exit
55 */
56 override Void exit(Int stat);
57
58 /*!
59 * ======== flush ========
60 * Backend for `{@link System#flush()}`
61 *
62 * This flush function flushes via `fflush()` to `stdout`.
63 *
64 * @see ISystemSupport#flush
65 */
66 override Void flush();
67
68 /*!
69 * ======== putch ========
70 * Backend for `{@link System#printf()}` and `{@link System#putch()}`
71 *
72 * This function outputs the character via `putchar()`.
73 *
74 * @see ISystemSupport#putch
75 */
76 override Void putch(Char ch);
77
78 /*!
79 * ======== ready ========
80 * Test if character output can proceed
81 *
82 * This always returns TRUE.
83 *
84 * @see ISystemSupport#ready
85 */
86 override Bool ready();
87 }
88 /*
89 * @(#) xdc.runtime; 2, 0, 0, 0,236; 12-18-2009 12:27:15; /db/ztree/library/trees/xdc/xdc-u16x/src/packages/
90 */
91