C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 12-05-2009, 06:17 AM   #1
Registered User
 
Join Date: Oct 2009
Posts: 69
wts is the type of key in msgget

hi in msgget(key _t key,int msgflg) wt is the value of key ? is it integer or character or string?

please any one can give explanation on this?
nkrao123@gmail. is offline   Reply With Quote
Old 12-05-2009, 09:54 AM   #2
dat is, vast staat
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 6,612
msgget() -- get message queue
__________________
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
GDB tutorial #1 -- gnu debugger tutorials -- GDB tutorial #2
cpwiki -- our wiki on sourceforge
MK27 is offline   Reply With Quote
Old 12-05-2009, 11:38 AM   #3
Staff software engineer
 
brewbuck's Avatar
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 6,014
Quote:
Originally Posted by MK27 View Post
That page doesn't answer the question at all. We still have no idea what "key_t" is (well, I do, but that's only because I already did). The man page sucks, honestly.

key_t is just a number.
__________________
"Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot
brewbuck is offline   Reply With Quote
Old 12-05-2009, 09:38 PM   #4
Registered User
 
Join Date: Oct 2009
Posts: 69
Hi ,

from previous replys, i cant assign any name to message queue ? i will assign only integer value as key?

i cant assign like msgget("name1",IPC_CREATE);

please post your suggestions
nkrao123@gmail. is offline   Reply With Quote
Old 12-05-2009, 10:22 PM   #5
dat is, vast staat
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 6,612
Quote:
Originally Posted by nkrao123@gmail. View Post
i cant assign any name to message queue ? i will assign only integer value as key?

i cant assign like msgget("name1",IPC_CREATE);
Quote:
Originally Posted by brewbuck View Post
That page doesn't answer the question at all. We still have no idea what "key_t" is
"The msgget() function returns the message queue identifier associated with key. A message queue identifier and an associated message queue and data structure are created if key is equal to IPC_PRIVATE"

Sorry! My ungodly intuition sees AN INTEGER here in the first sentence...
__________________
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
GDB tutorial #1 -- gnu debugger tutorials -- GDB tutorial #2
cpwiki -- our wiki on sourceforge

Last edited by MK27; 12-05-2009 at 10:25 PM.
MK27 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sorting the matrix question.. transgalactic2 C Programming 47 12-22-2008 03:17 PM
typename madness zxcv C++ Programming 4 05-13-2006 10:35 PM
Function to check memory left from malloc and free? Lechx C Programming 4 04-24-2006 05:45 AM
Erros in Utility Header File silk.odyssey C++ Programming 4 12-22-2003 06:17 AM
Directional Keys - Useing in Console RoD C++ Programming 38 10-06-2002 04:42 PM


All times are GMT -6. The time now is 12:16 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22