由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - SYSV shared memory question
相关主题
What's wrong with "CXTERM"CXTERM INSTALL : HELP ![转载] windows C++ -> Unix C++
关于CPU时间急问!how to track page faults when allocation
what's wrong with gcc?how to use function calloc of c in fortran?
Does perl support record/struct?tool to trace function flow?
[转载] 活见鬼了---搞不定的程序Key in Shared Memory
Which library include gethostbyname?[转载] shared library一问
what wrong with these thread program. Thanks for helping[转载] 再问一个shared library的问题
Socket programming helphelp on building shared object
相关话题的讨论汇总
话题: shared话题: shmid话题: char话题: sysv话题: memory
进入Unix版参与讨论
1 (共1页)
r*****o
发帖数: 28
1
I have a shared data structure like this:
struct s {
int ...
...
char *text;
}
While creating the shmid, is it possible to dynamically
allocate the shared memory according to the size of the char*?
Or I should change the structure to:
struct s{
int ...
...
char text[MAXLENTH];
}
and shmid = shmget(..., sizeof(s), ...) ???
1 (共1页)
进入Unix版参与讨论
相关主题
help on building shared object[转载] 活见鬼了---搞不定的程序
什么叫做shared library?Which library include gethostbyname?
how to setup lib path?what wrong with these thread program. Thanks for helping
pathmap command in dbxSocket programming help
What's wrong with "CXTERM"CXTERM INSTALL : HELP ![转载] windows C++ -> Unix C++
关于CPU时间急问!how to track page faults when allocation
what's wrong with gcc?how to use function calloc of c in fortran?
Does perl support record/struct?tool to trace function flow?
相关话题的讨论汇总
话题: shared话题: shmid话题: char话题: sysv话题: memory