X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=old-door-deamon%2Flibparportled-0.5.1%2Fledlib.c;fp=old-door-deamon%2Flibparportled-0.5.1%2Fledlib.c;h=0000000000000000000000000000000000000000;hp=b7b4cc388832c83670c264f528d209a64a39534d;hb=ef0255ffe0a390c49c6e2c3e41fb5312032a4f00;hpb=5f90a9da59975c3bf81efc461fcd13637e4e0e5d diff --git a/old-door-deamon/libparportled-0.5.1/ledlib.c b/old-door-deamon/libparportled-0.5.1/ledlib.c deleted file mode 100644 index b7b4cc3..0000000 --- a/old-door-deamon/libparportled-0.5.1/ledlib.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2002,2003 Julien Danjou - * - * This is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2, or (at your option) any - * later version. - * - * This is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - */ - - -#include -#include -#include -#include -#include -#include -#include - -#include "parportled.h" - -static unsigned char lights; - -int current_blinking_led[MAXLED]; - -int blink_thread = -1; - - -void led_print_debug(char s, char *f) -{ fprintf(stderr, "%s -> %d\n",f,s); } - -int led_setperm() -{ - /* Return 1 if the process has not the root perm */ - if(geteuid() != 0) return 1; - - /* Return -1 if the process fails accessing device */ - return ioperm(BASEPORT,1,1); -} - -void led_off_all() -{ - outb(0x0, BASEPORT); -} - -void led_on_all() -{ - outb(0xff, BASEPORT); -}