I am new to the C language and Arduino (yes my account here is old, but I never did much). I wrote a program in C which runs fine on my linux vm. I am trying to port it over to run on my Intel Edison with an Arduino kit. I was hoping someone could take a look at my code and help me with what needs to be changed. I tried changing it with the recommendations I found through my searches using "void setup" and "void loop" with no luck. Please note the code below is the C version I wrote.
looks like you want a file system, clock, and web access? do you have the hardware and the supporting libraries to provide that? if so work through the example sketches bundled in to demonstrate the access and use of the h/w. that should highlight the differences between the *nix development you have done and the arduino target platform.
then it looks like the code pre your while(1) loop should head towards the arduino ide setup() function and the while loop contents could shoehorn into the arduino loop() function