System call "select( )" and "Message Queue" 
Author Message
 System call "select( )" and "Message Queue"

Does anyone know the function "select( )" is not support UNIX System V
IPC's "Message Queue" ? When I pass message queue ID into this function, it
always return -1. Anyone one can tell me the answer ?



Mon, 21 Jun 1999 03:00:00 GMT  
 System call "select( )" and "Message Queue"



Quote:
>Does anyone know the function "select( )" is not support UNIX System V
>IPC's "Message Queue" ? When I pass message queue ID into this function, it
>always return -1. Anyone one can tell me the answer ?

Maybe the readers of comp.unix.programmer. select() and UNIX IPC are Unix
system services, and simply have no meaning as far as the C language itself
is concerned.

--
-----------------------------------------


-----------------------------------------



Mon, 21 Jun 1999 03:00:00 GMT  
 System call "select( )" and "Message Queue"


Quote:

>Does anyone know the function "select( )" is not support UNIX System V
>IPC's "Message Queue" ? When I pass message queue ID into this function, it
>always return -1. Anyone one can tell me the answer ?

Wrong newsgroup. The select() call and System V IPC are not part of the C
language but part of UNIX extensions thereof.

I will tell you this: select() is a way of polling file descriptors. System V
IPC objects are not file descriptors, and their ID's are therefore not file
descriptor numbers. You are being foolhardy. In OO speak, we would say that
select() is not a method applicable to IPC objects.



Fri, 25 Jun 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. directing unix system call "system"s output

2. "system()" system call

3. remove() vrs fopen("""w")

4. Displaying binary data as ascii "1"'s and "0"'s

5. Looking for "Shroud"/"Obfus"

6. ""help with TSR""

7. Parse trees and "("")"

8. Error "free"-ing "malloc"-ed memory

9. Displaying binary data as ascii "1"'s and "0"'s

10. Q: Return-values of system("...") calls

11. C++ "system" call

12. Running system calls "silently"

 

 
Powered by phpBB® Forum Software