免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4932 | 回复: 10
打印 上一主题 下一主题

[函数] linux下面有posix中的消息队列函数吗? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-23 12:02 |只看该作者 |倒序浏览
linux下面有posix中的消息队列函数吗?
如:mq_open之类,在unix下有的.linux下面没有吗?还是有什么相应的替代品啊?

论坛徽章:
0
2 [报告]
发表于 2006-03-23 12:10 |只看该作者
没有吗?
posix IPC需要内核的支持, 有些发行版编译的内核没打开这个选项也是可能的。

论坛徽章:
0
3 [报告]
发表于 2006-03-23 12:49 |只看该作者
没劲,我的机器里面没有的.连头文件都找不到.

论坛徽章:
0
4 [报告]
发表于 2007-12-06 11:41 |只看该作者
我也有同样的疑惑

论坛徽章:
0
5 [报告]
发表于 2007-12-06 13:06 |只看该作者
应该有的。

ipc.PNG (9.83 KB, 下载次数: 38)

APUE 2e 15.1

APUE 2e 15.1

论坛徽章:
0
6 [报告]
发表于 2007-12-06 13:33 |只看该作者
楼上的拜托,楼主说的是posix 消息队列

论坛徽章:
0
7 [报告]
发表于 2007-12-06 14:47 |只看该作者
有的,我这两天刚用了(fedora 7)
如果没有
1、升级内核
2、自己编译内核

论坛徽章:
0
8 [报告]
发表于 2007-12-06 16:12 |只看该作者
原帖由 lanying_wzw 于 2007-12-6 13:33 发表
楼上的拜托,楼主说的是posix 消息队列


“拜托”
<--- 现代汉语词典 --->
拜托
bàituō
敬辞,托人办事:有一封信,~您带给他。


既然你拜托我,那我就不能让你失望。


POSIX一般指的是IEEE Std 1003.1。

根据
The Open Group Base Specifications Issue 6
IEEE Std 1003.1, 2004 Edition

分成4部分(The Open Group Single UNIX Specification也包括这4部分,但还有其他内容),分别为:
Base Definitions volume (XBD)
System Interfaces volume (XSH)
Shell and Utilities volume (XCU)
Rationale (Informative) volume (XRAT)

XSI IPC(IEEE Std 1003.1 XSH 2.7 XSI Interprocess Communication)属于System Interfaces volume (XSH)。


另:
如果仁兄(lanying_wzw)手头没有新版 POSIX(IEEE Std 1003.1, 2004 Edition),
我愿意eMail一份给你,不收费

XSH目录


  1. System Interfaces: Table of Contents

  2.     * Introduction
  3.           o Scope
  4.           o Conformance
  5.           o Normative References
  6.           o Change History
  7.           o Terminology
  8.                 + can
  9.                 + implementation-defined
  10.                 + legacy
  11.                 + may
  12.                 + shall
  13.                 + should
  14.                 + undefined
  15.                 + unspecified
  16.           o Definitions
  17.           o Relationship to Other Formal Standards
  18.           o Portability
  19.                 + Codes
  20.           o Format of Entries
  21.     * General Information
  22.           o Use and Implementation of Functions
  23.           o The Compilation Environment
  24.                 + POSIX.1 Symbols
  25.                       # The _POSIX_C_SOURCE Feature Test Macro
  26.                       # The _XOPEN_SOURCE Feature Test Macro
  27.                 + The Name Space
  28.           o Error Numbers
  29.                 + Additional Error Numbers
  30.           o Signal Concepts
  31.                 + Signal Generation and Delivery
  32.                 + Realtime Signal Generation and Delivery
  33.                 + Signal Actions
  34.                 + Signal Effects on Other Functions
  35.           o Standard I/O Streams
  36.                 + Interaction of File Descriptors and Standard I/O Streams
  37.                 + Stream Orientation and Encoding Rules
  38.           o STREAMS
  39.                 + Priority
  40.                 + Message Parts
  41.                 + Accessing STREAMS
  42.           o XSI Interprocess Communication
  43.                 + IPC General Description
  44.           o Realtime
  45.                 + Realtime Signals
  46.                 + Asynchronous I/O
  47.                 + Memory Management
  48.                       # Memory Locking
  49.                       # Memory Mapped Files
  50.                       # Memory Protection
  51.                       # Typed Memory Objects
  52.                 + Process Scheduling
  53.                       # Scheduling Policies
  54.                       # SCHED_FIFO
  55.                       # SCHED_RR
  56.                       # SCHED_SPORADIC
  57.                       # SCHED_OTHER
  58.                 + Clocks and Timers
  59.                       # Time Value Specification Structures
  60.                       # Timer Event Notification Control Block
  61.                       # Manifest Constants
  62.                       # Execution Time Monitoring
  63.           o Threads
  64.                 + Thread-Safety
  65.                 + Thread IDs
  66.                 + Thread Mutexes
  67.                 + Thread Scheduling
  68.                       # Thread Scheduling Attributes
  69.                       # Thread Scheduling Contention Scope
  70.                       # Scheduling Allocation Domain
  71.                       # Scheduling Documentation
  72.                 + Thread Cancellation
  73.                       # Cancelability States
  74.                       # Cancellation Points
  75.                       # Thread Cancellation Cleanup Handlers
  76.                       # Async-Cancel Safety
  77.                 + Thread Read-Write Locks
  78.                 + Thread Interactions with Regular File Operations
  79.                 + Use of Application-Managed Thread Stacks
  80.                 + Footnotes
  81.           o Sockets
  82.                 + Address Families
  83.                 + Addressing
  84.                 + Protocols
  85.                 + Routing
  86.                 + Interfaces
  87.                 + Socket Types
  88.                 + Socket I/O Mode
  89.                 + Socket Owner
  90.                 + Socket Queue Limits
  91.                 + Pending Error
  92.                 + Socket Receive Queue
  93.                 + Socket Out-of-Band Data State
  94.                 + Connection Indication Queue
  95.                 + Signals
  96.                 + Asynchronous Errors
  97.                 + Use of Options
  98.                 + Use of Sockets for Local UNIX Connections
  99.                       # Headers
  100.                 + Use of Sockets over Internet Protocols
  101.                 + Use of Sockets over Internet Protocols Based on IPv4
  102.                       # Headers
  103.                 + Use of Sockets over Internet Protocols Based on IPv6
  104.                       # Addressing
  105.                       # Compatibility with IPv4
  106.                       # Interface Identification
  107.                       # Options
  108.                       # Headers
  109.           o Tracing
  110.                 + Tracing Data Definitions
  111.                       # Structures
  112.                       # posix_trace_status_info Structure
  113.                       # posix_trace_event_info Structure
  114.                       # Trace Stream Attributes
  115.                 + Trace Event Type Definitions
  116.                       # System Trace Event Type Definitions
  117.                       # User Trace Event Type Definitions
  118.                 + Trace Functions
  119.           o Data Types
  120.     * System Interfaces
  121.                       ...
  122.    
复制代码

[ 本帖最后由 westgarden 于 2007-12-6 16:20 编辑 ]

论坛徽章:
0
9 [报告]
发表于 2007-12-06 16:45 |只看该作者
楼上的是强人啊!

论坛徽章:
0
10 [报告]
发表于 2007-12-07 09:53 |只看该作者
原帖由 albcamus 于 2006-3-23 12:10 发表
没有吗?
posix IPC需要内核的支持, 有些发行版编译的内核没打开这个选项也是可能的。

这才知道,谢了,呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP