aboutsummaryrefslogtreecommitdiffstats
path: root/util/scan/dvb-t/fr-Bastia
diff options
context:
space:
mode:
authoretobi <git@e-tobi.net>2013-09-03 09:48:47 +0200
committeretobi <git@e-tobi.net>2013-09-03 09:48:47 +0200
commit76c08672bc6c2984ebd7045a71862099890c9118 (patch)
tree31e3232493a151138c510886eb97ad4362623357 /util/scan/dvb-t/fr-Bastia
parent9fe4d4ea9c054e539ab679ed2e9c076c35beb69d (diff)
downloadlinux-dvb-apps-76c08672bc6c2984ebd7045a71862099890c9118.tar.gz
Imported Upstream version 1.1.1+rev1457upstream/1.1.1+rev1457
Diffstat (limited to 'util/scan/dvb-t/fr-Bastia')
-rw-r--r--util/scan/dvb-t/fr-Bastia25
1 files changed, 0 insertions, 25 deletions
diff --git a/util/scan/dvb-t/fr-Bastia b/util/scan/dvb-t/fr-Bastia
deleted file mode 100644
index 36dec27..0000000
--- a/util/scan/dvb-t/fr-Bastia
+++ /dev/null
@@ -1,25 +0,0 @@
-# Bastia - France (DVB-T transmitter of Bastia ( SerradiPigno ) )
-# Bastia - France (signal DVB-T transmis depuis l'émetteur de SerradiPigno )
-#
-# ATTENTION ! Ce fichier a ete construit automatiquement a partir
-# des frequences obtenues sur : http://www.tvnt.net/multiplex_frequences.htm
-# en Avril 2006. Si vous constatez des problemes et voulez apporter des
-# modifications au fichier, envoyez le fichier modifie a
-# l'adresse linux-dvb@linuxtv.org (depot des fichiers d'init dvb)
-# ou a l'auteur du fichier :
-# Nicolas Estre <n_estre@yahoo.fr>
-#
-# T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy
-#### Bastia - SerradiPigno ####
-#R1
-T 490000000 8MHz AUTO NONE QAM64 8k AUTO NONE
-#R2
-T 626000000 8MHz AUTO NONE QAM64 8k AUTO NONE
-#R3
-T 578000000 8MHz AUTO NONE QAM64 8k AUTO NONE
-#R4
-T 666000000 8MHz AUTO NONE QAM64 8k AUTO NONE
-#R5
-T 602000000 8MHz AUTO NONE QAM64 8k AUTO NONE
-#R6
-T 538000000 8MHz AUTO NONE QAM64 8k AUTO NONE
ght .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/* $Id$
 * $URL$
 *
 * plugin for statfs() syscall
 *
 * Copyright (C) 2005 Michael Reinelt <michael@reinelt.co.at>
 * Copyright (C) 2005 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
 *
 * This file is part of LCD4Linux.
 *
 * LCD4Linux 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.
 *
 * LCD4Linux 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.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

/* 
 * exported functions:
 *
 * int plugin_init_statfs (void)
 *  adds statfs() functions
 *
 */


#include "config.h"

#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/vfs.h>

#include "debug.h"
#include "plugin.h"



static void my_statfs(RESULT * result, RESULT * arg1, RESULT * arg2)
{
    struct statfs buf;
    char *path, *key;
    double value;

    path = R2S(arg1);
    key = R2S(arg2);

    if (statfs(path, &buf) != 0) {
	error("statfs(%s) failed: %s", path, strerror(errno));
	SetResult(&result, R_STRING, "");
	return;
    }

    if (strcasecmp(key, "type") == 0) {
	value = buf.f_type;
    } else if (strcasecmp(key, "bsize") == 0) {
	value = buf.f_bsize;
    } else if (strcasecmp(key, "blocks") == 0) {
	value = buf.f_blocks;
    } else if (strcasecmp(key, "bfree") == 0) {
	value = buf.f_bfree;
    } else if (strcasecmp(key, "bavail") == 0) {
	value = buf.f_bavail;
    } else if (strcasecmp(key, "files") == 0) {
	value = buf.f_files;
    } else if (strcasecmp(key, "ffree") == 0) {
	value = buf.f_ffree;
#if 0
    } else if (strcasecmp(key, "fsid") == 0) {
	value = buf.f_fsid;
#endif
    } else if (strcasecmp(key, "namelen") == 0) {
	value = buf.f_namelen;
    } else {
	error("statfs: unknown field '%s'", key);
	value = -1;
    }

    SetResult(&result, R_NUMBER, &value);
}


int plugin_init_statfs(void)
{
    AddFunction("statfs", 2, my_statfs);
    return 0;
}

void plugin_exit_statfs(void)
{
}