tschuldigung das tty1 brauch ich gar nicht(erst spaeter dann!)
so sollte es sein:
Code:
/*ledController whith FERNBEDIENUNG!
 *(C) by linuxuser
 *e-mail: unix4ever@gmx.net
 */

#include <sys/ioctl.h>
#include <sys/kd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>

#define INDEVICE "/dev/ttyS0"

#define BLOCKSIZE 8

int main(void){
    int readBytes;
    int input;
    
    char buffer[BLOCKSIZE];

    /*open the input device*/
    input = open(INDEVICE, O_RDONLY|O_NOCTTY|O_NONBLOCK);    

    if(input == -1){
        fprintf(stderr, "ERROR konnte die Devices nicht oeffnen");
        return 1;
    }/*end if*/
    
    while(1){
        printf("hallo\n");
        readBytes = read(input, buffer, BLOCKSIZE);
        perror("Fehler ");
        printf("%s,%d, - %d\n", buffer, buffer, readBytes);
    }

    return 0;
}/*end main*/
und /dev/ttS0 also COM1 habe ich!