Removed closing of stdin, stdout (and stderr on the Apple2). It was introduced in order to maximize the number of available file handles for the webserver. However none of the target machine DOSes allows to open a single file several times diminishing the intended effect very much. One the other hand not being able to "just printf() something" causes trouble over and again - i.e. hello-world seemingly not working...after all a typical case of german over-enigneering ;-)

This commit is contained in:
oliverschmidt 2010-02-10 07:43:25 +00:00
parent 6d987651c6
commit 50be40768b
10 changed files with 13 additions and 35 deletions

View File

@ -30,7 +30,7 @@
;
; Author: Oliver Schmidt <ol.sc@web.de>
;
; $Id: log-asm.S,v 1.1 2007/12/21 00:43:57 oliverschmidt Exp $
; $Id: log-asm.S,v 1.1 2010/02/10 07:43:25 oliverschmidt Exp $
;
;---------------------------------------------------------------------
.importzp ptr1

View File

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: log.c,v 1.1 2007/12/21 00:43:57 oliverschmidt Exp $
* $Id: log.c,v 1.1 2010/02/10 07:43:25 oliverschmidt Exp $
*/
#include "net/uip.h"

View File

@ -25,10 +25,6 @@ bootable floppy disk image containing the project binary, a sample configuration
file and the Ethernet card drivers.
The 6502-based targets do in general not support keyboard input or screen output
through stdin, stdout and stderr.
The build for 6502-based machines supports so-called high-level configuration
macros which allow to customize Contiki on a per-project basis. They are set
in form of a comma-separated list as value of the make variable DEFINES on the

View File

@ -30,10 +30,10 @@
#
# Author: Oliver Schmidt <ol.sc@web.de>
#
# $Id: Makefile.apple2enh,v 1.11 2010/01/31 18:21:41 oliverschmidt Exp $
# $Id: Makefile.apple2enh,v 1.12 2010/02/10 07:43:25 oliverschmidt Exp $
#
CONTIKI_SOURCEFILES += log-asm.S pfs.S
CONTIKI_SOURCEFILES += pfs.S
HIGHCODE_SOURCEFILES = process.c etimer.c uip_arp.c
CONTIKI_CPU = $(CONTIKI)/cpu/6502

View File

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: contiki-conf.h,v 1.18 2010/01/31 21:50:11 oliverschmidt Exp $
* $Id: contiki-conf.h,v 1.19 2010/02/10 07:43:25 oliverschmidt Exp $
*/
#ifndef __CONTIKI_CONF_H__
@ -56,7 +56,7 @@
#define IRC_CONF_HEIGHT 23
#define WEBSERVER_CONF_CGI_CONNS UIP_CONNS
#define WEBSERVER_CONF_CFS_CONNS 7
#define WEBSERVER_CONF_CFS_CONNS 8 - 3
#define WWW_CONF_WEBPAGE_WIDTH 80
#define WWW_CONF_WEBPAGE_HEIGHT 19

View File

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: contiki-main.c,v 1.19 2009/10/18 09:37:37 oliverschmidt Exp $
* $Id: contiki-main.c,v 1.20 2010/02/10 07:43:25 oliverschmidt Exp $
*/
#include "contiki-net.h"
@ -73,12 +73,6 @@ main(void)
rebootafterexit();
videomode(VIDEOMODE_80COL);
#if !WITH_PFS
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
#endif /* !WITH_PFS */
process_init();
#if 1

View File

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: contiki-conf.h,v 1.9 2010/02/03 23:19:39 oliverschmidt Exp $
* $Id: contiki-conf.h,v 1.10 2010/02/10 07:43:25 oliverschmidt Exp $
*/
#ifndef __CONTIKI_CONF_H__
@ -64,7 +64,7 @@
#define IRC_CONF_HEIGHT 24
#define WEBSERVER_CONF_CGI_CONNS UIP_CONNS
#define WEBSERVER_CONF_CFS_CONNS 7
#define WEBSERVER_CONF_CFS_CONNS 8 - 3
#define WWW_CONF_WEBPAGE_WIDTH 80
#define WWW_CONF_WEBPAGE_HEIGHT 20

View File

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: contiki-main.c,v 1.7 2009/10/18 09:35:07 oliverschmidt Exp $
* $Id: contiki-main.c,v 1.8 2010/02/10 07:43:25 oliverschmidt Exp $
*/
#include <string.h>
@ -89,12 +89,6 @@ main(void)
videomode(VIDEOMODE_80COL);
close(STDIN_FILENO);
close(STDOUT_FILENO);
#if !UIP_LOGGING && !LOG_CONF_ENABLED
close(STDERR_FILENO);
#endif /* !UIP_LOGGING && !LOG_CONF_ENABLED */
process_init();
#if 1

View File

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: contiki-conf.h,v 1.19 2010/01/31 21:50:11 oliverschmidt Exp $
* $Id: contiki-conf.h,v 1.20 2010/02/10 07:43:25 oliverschmidt Exp $
*/
#ifndef __CONTIKI_CONF_H__
@ -64,7 +64,7 @@
#define IRC_CONF_HEIGHT 24
#define WEBSERVER_CONF_CGI_CONNS UIP_CONNS
#define WEBSERVER_CONF_CFS_CONNS 8
#define WEBSERVER_CONF_CFS_CONNS 8 - 3
#define WWW_CONF_WEBPAGE_WIDTH 40
#define WWW_CONF_WEBPAGE_HEIGHT 20

View File

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: contiki-main.c,v 1.22 2009/02/27 07:57:14 oliverschmidt Exp $
* $Id: contiki-main.c,v 1.23 2010/02/10 07:43:25 oliverschmidt Exp $
*/
#include <string.h>
@ -87,12 +87,6 @@ main(void)
{
struct ethernet_config *ethernet_config;
close(STDIN_FILENO);
close(STDOUT_FILENO);
#if !UIP_LOGGING && !LOG_CONF_ENABLED
close(STDERR_FILENO);
#endif /* !UIP_LOGGING && !LOG_CONF_ENABLED */
process_init();
#if 1