summaryrefslogtreecommitdiffstats
path: root/dvb-t/au-Perth
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2014-04-05 16:45:35 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2014-04-05 16:45:35 +0100
commit54c854a4adf8697afc0dd9305af3455bde37b24c (patch)
tree041088d50c1c0013b840c44d445a13f6ec0b0def /dvb-t/au-Perth
parent5f073d088cc2004ab56df8db500045b31f6f223d (diff)
parent8ba2155000fb193a9f99d9065066159513e4a109 (diff)
downloaddtv-scan-tables-54c854a4adf8697afc0dd9305af3455bde37b24c.tar.gz
Merge tag 'upstream/0+git20140326.cfc2975'
Upstream version 0+git20140326.cfc2975
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
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 */
#include <errno.h>
#include <stdio.h>
#include <sys/select.h>

volatile unsigned int variable = 0;

int main()
{
    struct timeval tv;
    int val;

    for (;;)
    {
        tv.tv_sec = 1;
        tv.tv_usec = 0;

        do
        {
            val = select(0, NULL, NULL, NULL, &tv);
        } while (val != 0 && errno == EINTR);

        printf("Variable = %u\n", ++variable);
    }
}