10 More Discussions You Might Find Interesting
1. Programming
hi,
so I am familiar with visual studio for windows, I was wondering if there's that kind of IDE for linux that I can use to make an application...
thanks! (2 Replies)
Discussion started by: h0ujun
2 Replies
2. Shell Programming and Scripting
Hi,
Newbie to Linux needing some help with scripting, here. I've written a script that allows easily shutting down, rebooting, or exiting to terminal mode via a Dialog menu after logging out of X-server. In my .bash_profile I have startx followed by running my script, shutdownmenu.sh, and it... (1 Reply)
Discussion started by: Pop45398
1 Replies
3. UNIX and Linux Applications
Hello. I need upgrade memcached. This software is installed throuth yum. In official repositories isn`t newest version of memcached, but this one is vulnerable. So looks like I need built it from source, but I dont really want to install c libraries un compilers on system.
1.) So can I compile... (0 Replies)
Discussion started by: jabalv
0 Replies
4. Programming
I'm trying to do some cleanup (write open files) when Linux shuts down. I thought the right method would be to trap SIGTERM and do the necessary processing. Here's my sample code:
#include <stdio.h> // for File I/O
#include <signal.h> // for signals
#include <unistd.h> // for sleep()
void... (6 Replies)
Discussion started by: whatisron
6 Replies
5. Advertise with Us
Optiver US LLC is a worldwide market maker and derivatives trading firm with offices in Chicago, Amsterdam and Sydney. Attracting very ambitious, talented and results-oriented individuals to become members of a highly selective trading application engineering team. This position is a primary... (0 Replies)
Discussion started by: Barb S.
0 Replies
6. AIX
Hi All,
I am currently facing new problem of migrating C(c language) application from AIX machine to Linux machine. We are using GCC to compile the source code..
But facing with the compilation issues, with lot of GCC C libs differing between AIX box to Linux box...
Pls help me... (3 Replies)
Discussion started by: karthikc
3 Replies
7. Linux
tcp communication application
i have an application which run in
1)
while()
{in
}
and listens for some request
When a request comes to create a file(containing some data fetch from somewhere)
but i also want to start some timer that after 10/20 min delete that file
But i don't know how... (0 Replies)
Discussion started by: tryit
0 Replies
8. UNIX for Dummies Questions & Answers
i need to develop application which continuously wait for a request from multiple host and on receiving a request on that need to create a log file and after 30 mins delete that file
I am new to socket programming so could anyone help me on this.
How to continuously listen for a request
How... (0 Replies)
Discussion started by: tryit
0 Replies
9. SCO
Hello Valued Members,
I was wondering if there are any Linux, BSD, versions that can run SCO 5.0.6 applications without much modification? I was looking into purchasing a copy of Caldera Openlinux, the last version, but wanted to ask if there are any other options of a newer variant. I am also... (8 Replies)
Discussion started by: stay0ut
8 Replies
10. Programming
I need port Win32 console application, which was developed with MS Visual Studio 6.0 (without MFC using) into Linux. What is the best way to port project? Are there any standard tools or decisions?
Thank you in advance,
Sergey (0 Replies)
Discussion started by: Sergeyy
0 Replies
TIMER_GETOVERRUN(2) Linux Programmer's Manual TIMER_GETOVERRUN(2)
NAME
timer_getoverrun - get overrun count for a POSIX per-process timer
SYNOPSIS
#include <time.h>
int timer_getoverrun(timer_t timerid);
Link with -lrt.
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
timer_getoverrun(): _POSIX_C_SOURCE >= 199309L
DESCRIPTION
timer_getoverrun() returns the "overrun count" for the timer referred to by timerid. An application can use the overrun count to accu-
rately calculate the number of timer expirations that would have occurred over a given time interval. Timer overruns can occur both when
receiving expiration notifications via signals (SIGEV_SIGNAL), and via threads (SIGEV_THREAD).
When expiration notifications are delivered via a signal, overruns can occur as follows. Regardless of whether or not a real-time signal
is used for timer notifications, the system queues at most one signal per timer. (This is the behavior specified by POSIX.1-2001. The
alternative, queuing one signal for each timer expiration, could easily result in overflowing the allowed limits for queued signals on the
system.) Because of system scheduling delays, or because the signal may be temporarily blocked, there can be a delay between the time when
the notification signal is generated and the time when it is delivered (e.g., caught by a signal handler) or accepted (e.g., using sigwait-
info(2)). In this interval, further timer expirations may occur. The timer overrun count is the number of additional timer expirations
that occurred between the time when the signal was generated and when it was delivered or accepted.
Timer overruns can also occur when expiration notifications are delivered via invocation of a thread, since there may be an arbitrary delay
between an expiration of the timer and the invocation of the notification thread, and in that delay interval, additional timer expirations
may occur
RETURN VALUE
On success, timer_getoverrun() returns the overrun count of the specified timer; this count may be 0 if no overruns have occurred. On
failure, -1 is returned, and errno is set to indicate the error.
ERRORS
EINVAL timerid is not a valid timer ID.
VERSIONS
This system call is available since Linux 2.6.
CONFORMING TO
POSIX.1-2001.
NOTES
When timer notifications are delivered via signals (SIGEV_SIGNAL), on Linux it is also possible to obtain the overrun count via the
si_overrun field of the siginfo_t structure (see sigaction(2)). This allows an application to avoid the overhead of making a system call
to obtain the overrun count, but is a nonportable extension to POSIX.1-2001.
POSIX.1-2001 only discusses timer overruns in the context of timer notifications using signals.
BUGS
POSIX.1-2001 specifies that if the timer overrun count is equal to or greater than an implementation-defined maximum, DELAYTIMER_MAX, then
timer_getoverrun() should return DELAYTIMER_MAX. However, Linux does not implement this feature: instead, if the timer overrun value
exceeds the maximum representable integer, the counter cycles, starting once more from low values.
EXAMPLE
See timer_create(2).
SEE ALSO
clock_gettime(2), sigaction(2), signalfd(2), sigwaitinfo(2), timer_create(2), timer_delete(2), timer_settime(2), signal(7), time(7)
COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2009-02-20 TIMER_GETOVERRUN(2)