Skip to content

Instantly share code, notes, and snippets.

@sgeto
Last active October 28, 2017 20:48
Show Gist options
  • Save sgeto/bd6deaabc52464eb7e5ceae7f4e0fae7 to your computer and use it in GitHub Desktop.
Save sgeto/bd6deaabc52464eb7e5ceae7f4e0fae7 to your computer and use it in GitHub Desktop.
https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-crt/misc/alarm.c
https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-headers/crt/_mingw.h.in
more
https://openmodelica.org/svn/OpenModelica/trunk/SimulationRuntime/c/util/omc_msvc.h
see whole pack
https://svn.apache.org/repos/asf/stdcxx/branches/autotools/tests/src/alarm.cpp
nice one
https://github.com/Matroska-Org/dvdmenuxtractor/blob/master/dmx/libdvdread/msvc/msvc/contrib/timer/timer.c
http://pubs.opengroup.org/onlinepubs/7908799/xsh/alarm.html
http://gcc.gnu.org/ml/gcc-help/2007-03/msg00098.html
examples
https://stackoverflow.com/questions/21542077/c-sigalrm-alarm-to-display-message-every-second
https://stackoverflow.com/questions/1784136/simple-signals-c-programming-and-alarm-function
http://courses.teresco.org/cs432_f02/lectures/08-sysprog/sigalrm-example.c
https://gist.github.com/3462238
https://gist.github.com/aspyct/3462238
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#include <_mingw.h>
unsigned int alarm(unsigned int);
unsigned int alarm(unsigned int __UNUSED_PARAM(seconds))
{
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment