8 More Discussions You Might Find Interesting
1. Programming
gede is a graphical debugger, a front-end for good ole uncle gdb. gede doesn't need a specialized gdb version. :b:
Unfortunately its a qt app, nevertheless it fits well in a gtk desktop environment.:eek:
Its author Johan Henriksson is a smart and nice guy always open for bug reports and... (2 Replies)
Discussion started by: dodona
2 Replies
2. Web Development
hi All
I use tomcat server to publish war file. How to send an notification to users via the application screen and it should dismiss once user clicks X mark.
Any suggestions ? (1 Reply)
Discussion started by: anil529
1 Replies
3. UNIX and Linux Applications
hi All
I use tomcat server to publish war file. How to send an notification to users via the application screen and it should dismiss once user clicks X mark.
Any suggestions ? (0 Replies)
Discussion started by: anil529
0 Replies
4. UNIX for Dummies Questions & Answers
Hi guys ,
I want to develop a web page which is capable of executing the command on os and show the output on the browser.(Which involves reading and writing too.)
I m using jsp language to develop the web page. How would i use it to communicate with my linux server?
Any... (3 Replies)
Discussion started by: pinga123
3 Replies
5. UNIX for Dummies Questions & Answers
I keep trying to append some astrix to the end of a line, but it keeps overwriting at the front of the line.
These are the originals
Fred Fardbarkle:674-843-1385:20 Parak Lane, Duluth, MN 23850:4/12/23:780900
Fred Fardbarkle:674-843-1385:20 Parak Lane, Duluth, MN 23850:4/12/23:780900
... (5 Replies)
Discussion started by: DrSammyD
5 Replies
6. Shell Programming and Scripting
Hi,
I have a txt file called a.txt which contain over 10,000 records and I would like to remove space before comma or after comma....like below:
The input (for example two record 00001,00002):
00001,client,card limited ,02292,N ,162:41 , 192, ... (6 Replies)
Discussion started by: happyv
6 Replies
7. Programming
Hi,
I have created a tool which analyses and debugs cobol programs on Unix environment usin the C files. I now want to create a frontend for the tool in windows. For this i need to establish some kinda communication between the front the end and the back end. I know pipes in one way of... (0 Replies)
Discussion started by: Sinbad
0 Replies
8. UNIX for Advanced & Expert Users
Hi,
I would like to develop a user interface on Solaris. Can anybody throw some light on currently available software utilities/ packages..?
Thanks in Advance ..
JS (4 Replies)
Discussion started by: shibz
4 Replies
mq_notify(3) Library Functions Manual mq_notify(3)
NAME
mq_notify - Attaches a request for asynchronous signal notification to a message queue (P1003.1b)
LIBRARY
Realtime Library (librt.so, librt.a)
SYNOPSIS
#include <mqueue.h>
int mq_notify (
mqd_t mqdes,
const struct sigevent *notification);
PARAMETERS
mqdes Specifies a message queue descriptor.
*notification Specifies a signal to be sent when the specified queue accepts a message. If the notification argument is NULL, and the
process has previously attached a notification request to the message queue with this mqdes argument, the notification
request is detached and the queue is available for another process to attach a notification request.
DESCRIPTION
The mq_notify function attaches a request for asynchronous signal notification to a message queue for the calling process. Following a
call to this function, the specified signal is sent to the calling process when the queue transitions from empty to non-empty. Two or more
processes cannot attach notification requests to the same queue at the same time.
If a process has attached a notification request and any process is blocked in the execution of the mq_receive function waiting to receive
a message when a message arrives at the queue, then the appropriate mq_receive function is completed and the notification remains pending.
When the notification has been sent, the registration is canceled. In effect, it is a one-shot notification and must be re-registered if
required.
Note that the POSIX IPC functions are not reentrant with respect to signals. For example, if your application were to use a signal to
notify it that a queue has become non-empty and then attempt to call mq_receive from the signal handler, the signal handler must reside in
a thread other than the tread that called mq_send. Otherwise, a deadlock on internal locks would occur.
RETURN VALUES
On successful completion, the function returns the value 0 (zero); otherwise, the function returns the value -1 and sets errno to indicate
the error.
ERRORS
The mq_notify function fails under the following conditions:
[EBADF] The mqdes argument is not a valid message queue descriptor.
[EBUSY] A process has already attached to this message queue for asynchronous notification, or the calling process attempted to can-
cel a request that was attached by another process.
[EINVAL] The requested signo is invalid, or the sigev_notify field of the notification structure does not equal SIGEV_SIGNAL.
RELATED INFORMATION
Functions: mq_open(3), mq_send(3)
Guide to Realtime Programming delim off
mq_notify(3)