10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi, I've got an issue which I've been 'google-fu'ing without much luck. We have a legacy program which has been plagued by an issue for a long time and I've been tasked to investigate/fix.
The program uses XMotif2.1 (required due to dependency on an old GUI designer) and runs on a RHEL7... (4 Replies)
Discussion started by: altrefrain
4 Replies
2. Shell Programming and Scripting
Trying to figure out a load issue with a webserver. I have traced a php script and noticed the following
connect(4, {sa_family=AF_INET, sin_port=htons(3306), sin_addr=inet_addr("XX.XX.XX.XX")}, 16) = -1 EINPROGRESS (Operation now in progress) <0.000035>
poll(, 1, 2000) = 1 () <0.000120>... (5 Replies)
Discussion started by: rajan007
5 Replies
3. Fedora
We've been having issues for about a year, although thankfully they are in-frequent and randam. Meaning it happened a couple of times within a 3 month period, then stopped for a couple of months and then started again. It has happened twice now in the last month. At the stroke of midnight, ... (5 Replies)
Discussion started by: graybeard
5 Replies
4. Programming
hi everyone
i wrote a system call and compiled the kernel succesfully...
my system call is in a file in the kernel folder named my_syscall1.c (kernel/my_syscall1.c)
the header file for this system call i added it in the folder include like this include/my_syscall1/my_syscall1.h
my problem is... (2 Replies)
Discussion started by: demis87
2 Replies
5. Programming
I have a cgi script which is called after certain time interval, which has this:
system ("ls -l /tmp/cgic* | grep -v \"cgicsave.env\" | awk '{print $5}'");
During the execution of this script,the output is 0 sometimes. But due to this the system call is not working at all and doesnt o/p... (2 Replies)
Discussion started by: xs2punit
2 Replies
6. Shell Programming and Scripting
Hi,
How to write a system calls in a script ?
> cd $HOME
> ls -ltr
thanks in advance.. (10 Replies)
Discussion started by: hegdeshashi
10 Replies
7. Programming
Hi all,
I am facing a problem in recv() system call i.e.. in my project i have to implement timer for sending (data) and resending purpose when there is no acknowledgement.
is there any way that recv() sys call has its own timer i.e., for ex: recv() has to wait for 10 secs.
if any one knows... (2 Replies)
Discussion started by: Rohil
2 Replies
8. Programming
How the c compiler differentiates the system calls and function calls? (1 Reply)
Discussion started by: rangaswamy
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I've a question about MINIX OS.
1 - I would like to log the messages that user or kernel process send to each other through the system call send, recv, sendrec and notify.
Since MINIX is a microkernel OS, I suppose that the best way is to have an TCP socket, listening in INADDR_ANY... (0 Replies)
Discussion started by: pedrosacosta
0 Replies
10. UNIX for Advanced & Expert Users
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
Discussion started by: muru
2 Replies
SDL_AddTimer(3) SDL API Reference SDL_AddTimer(3)
NAME
SDL_AddTimer - Add a timer which will call a callback after the specified number of milliseconds has elapsed.
SYNOPSIS
#include "SDL.h"
SDL_TimerID SDL_AddTimer(Uint32 interval, SDL_NewTimerCallback callback, void *param);
CALLBACK
/* type definition for the "new" timer callback function */
typedef Uint32 (*SDL_NewTimerCallback)(Uint32 interval, void *param);
DESCRIPTION
Adds a callback function to be run after the specified number of milliseconds has elapsed. The callback function is passed the current
timer interval and the user supplied parameter from the SDL_AddTimer call and returns the next timer interval. If the returned value from
the callback is the same as the one passed in, the periodic alarm continues, otherwise a new alarm is scheduled.
To cancel a currently running timer call SDL_RemoveTimer with the timer ID returned from SDL_AddTimer.
The timer callback function may run in a different thread than your main program, and so shouldn't call any functions from within itself.
You may always call SDL_PushEvent, however.
The granularity of the timer is platform-dependent, but you should count on it being at least 10 ms as this is the most common number. This
means that if you request a 16 ms timer, your callback will run approximately 20 ms later on an unloaded system. If you wanted to set a
flag signaling a frame update at 30 frames per second (every 33 ms), you might set a timer for 30 ms (see example below). If you use this
function, you need to pass SDL_INIT_TIMER to SDL_Init.
RETURN VALUE
Returns an ID value for the added timer or NULL if there was an error.
EXAMPLES
my_timer_id = SDL_AddTimer((33/10)*10, my_callbackfunc, my_callback_param);
SEE ALSO
SDL_RemoveTimer, SDL_PushEvent
SDL
Tue 11 Sep 2001, 23:01 SDL_AddTimer(3)