/* $Id: plugin_uname.c,v 1.2 2004/01/29 04:40:02 reinelt Exp $ * * plugin for uname() syscall * * Copyright 2003 Michael Reinelt * Copyright 2004 The LCD4Linux Team * * 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. * * * $Log: plugin_uname.c,v $ * Revision 1.2 2004/01/29 04:40:02 reinelt * every .c file includes "config.h" now * * Revision 1.1 2004/01/14 11:33:00 reinelt * new plugin 'uname' which does what it's called * text widget nearly finished * first results displayed on MatrixOrbital * */ /* * exported functions: * * int plugin_init_uname (void) * adds uname() functions * */ #include "config.h" #include #include #include #include #include "debug.h" #include "plugin.h" static void my_uname (RESULT *result, RESULT *arg1) { struct utsname utsbuf; char *key, *value; key=R2S(arg1); if (uname(&utsbuf)!=0) { error("uname() failed: %s", strerror(errno)); SetResult(&result, R_STRING, ""); return; } if (strcasecmp(key, "sysname")==0) { value=utsbuf.sysname; } else if (strcasecmp(key, "nodename")==0) { value=utsbuf.nodename; } else if (strcasecmp(key, "nodename")==0) { value=utsbuf.nodename; } else if (strcasecmp(key, "release")==0) { value=utsbuf.release; } else if (strcasecmp(key, "version")==0) { value=utsbuf.version; } else if (strcasecmp(key, "machine")==0) { value=utsbuf.machine; #ifdef _GNU_SOURCE } else if (strcasecmp(key, "domainname")==0) { value=utsbuf.domainname; #endif } else { error("uname: unknown field '%s'", key); value=""; } SetResult(&result, R_STRING, value); } int plugin_init_uname (void) { AddFunction ("uname", 1, my_uname); return 0; } ef='/debian/dtv-scan-tables.git/log/?h=upstream/0%2bgit20160503.4f192bd&follow=1'>root/isdb-t/br-pr-SaoMiguelDoIguacu (unfollow)
r class='nohover-highlight'>
AgeCommit message (Expand)AuthorFilesLines
2016-06-11Imported Upstream version 0+git20160503.4f192bdupstream/0+git20160503.4f192bdJonathan McCrohan1-1/+1
2016-01-18Imported Upstream version 0+git20151202.3864e0aupstream/0+git20151202.3864e0aJonathan McCrohan840-4057/+18230
2015-04-01Imported Upstream version 0+git20150208.f2053b3upstream/0+git20150208.f2053b3Jonathan McCrohan32-333/+483
2014-12-28Imported Upstream version 0+git20141218.b46a22cupstream/0+git20141218.b46a22cJonathan McCrohan535-639/+317
2014-10-15Imported Upstream version 0+git20141009.d26b627upstream/0+git20141009.d26b627Jonathan McCrohan2010-11120/+159271
2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60
2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983
2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877
submitted by biribi free.fr
2010-05-23update scan file for fr-Lille-BouvignyChristoph Pfister3-43/+26
and remove obsoleted files submitted by romain romain-bajeux.com
2010-05-19update scan file for fr-LavalChristoph Pfister1-6/+6
submitted by hftom free.fr
2010-05-19update scan file for fr-NantesChristoph Pfister1-6/+6
submitted by matpic free.fr
2010-05-16update scan file for de-HamburgChristoph Pfister1-0/+1
submitted by toralf.foerster gmx.de
2010-05-09update scan file for de-UnitymediaChristoph Pfister1-8/+9
2010-05-02update scan file for hr-AllChristoph Pfister1-1/+1
submitted by samuel.rakitnican gmail.com
2010-04-29update scan file for de-PrimacomChristoph Pfister1-0/+5
submitted by robert.wohlrab gmx.de
2010-04-29update scan file for dk-AllChristoph Pfister1-5/+11
submitted by rk.katana.steel gmail.com
2010-04-29update scan file for fi-TurkuChristoph Pfister1-1/+7
submitted by miika vesti.fi
2010-04-29update scan file for uk-AberdareChristoph Pfister1-10/+15
submitted by redtux1 googlemail.com
2010-04-29update scan file for fr-NantesChristoph Pfister1-6/+6
submitted by debotux gmail.com