Mercurial > ecos
comparison packages/redboot/current/include/redboot.h @ 1122:92e31da869cc
Add ^C abort functionality to BOOTP and PING operations.
| author | gthomas |
|---|---|
| date | Wed, 16 Jul 2003 19:08:54 +0000 |
| parents | 906a5d289c6d |
| children | dbcfe4e0dbd2 |
comparison
equal
deleted
inserted
replaced
| 1121:7992fe4e88eb | 1122:92e31da869cc |
|---|---|
| 7 //========================================================================== | 7 //========================================================================== |
| 8 //####ECOSGPLCOPYRIGHTBEGIN#### | 8 //####ECOSGPLCOPYRIGHTBEGIN#### |
| 9 // ------------------------------------------- | 9 // ------------------------------------------- |
| 10 // This file is part of eCos, the Embedded Configurable Operating System. | 10 // This file is part of eCos, the Embedded Configurable Operating System. |
| 11 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. | 11 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. |
| 12 // Copyright (C) 2002 Gary Thomas | 12 // Copyright (C) 2002, 2003 Gary Thomas |
| 13 // | 13 // |
| 14 // eCos is free software; you can redistribute it and/or modify it under | 14 // eCos is free software; you can redistribute it and/or modify it under |
| 15 // the terms of the GNU General Public License as published by the Free | 15 // the terms of the GNU General Public License as published by the Free |
| 16 // Software Foundation; either version 2 or (at your option) any later version. | 16 // Software Foundation; either version 2 or (at your option) any later version. |
| 17 // | 17 // |
| 137 // Result codes from 'gets()' | 137 // Result codes from 'gets()' |
| 138 #define _GETS_TIMEOUT -1 | 138 #define _GETS_TIMEOUT -1 |
| 139 #define _GETS_CTRLC -2 | 139 #define _GETS_CTRLC -2 |
| 140 #define _GETS_GDB 0 | 140 #define _GETS_GDB 0 |
| 141 #define _GETS_OK 1 | 141 #define _GETS_OK 1 |
| 142 // Test for ^C on the console. This function should only be used if any | |
| 143 // other console input can be discarded, e.g. while performing some long | |
| 144 // computation, waiting for the network, etc. Returns 'true' if ^C typed. | |
| 145 externC bool _rb_break(int timeout); | |
| 142 | 146 |
| 143 // "console" selection | 147 // "console" selection |
| 144 externC int start_console(void); | 148 externC int start_console(void); |
| 145 externC void end_console(int old_console); | 149 externC void end_console(int old_console); |
| 146 | 150 |
