Displaying 5 results from an estimated 5 matches for "shm_r".
2001 Mar 17
1
ogg123 doesn't destroy shm segment
...>
#include <unistd.h> /* for fork and pipe*/
#include <fcntl.h>
@@ -76,7 +75,7 @@
/* Get the shared memory segment. */
int shmid = shmget (IPC_PRIVATE,
sizeof(buf_t) + sizeof (chunk_t) * (size - 1),
- IPC_CREAT|S_IREAD|S_IWRITE);
+ IPC_CREAT|SHM_R|SHM_W);
if (shmid == -1)
{
@@ -92,7 +91,10 @@
perror ("shmat");
exit (1);
}
-
+
+ /* Remove segment after last process detaches it or terminates. */
+ shmctl(shmid, IPC_RMID, 0);
+
buffer_init (buf, size);
/* Create a pipe for communication betwe...
2011 Jan 10
9
Hugepage Support
hi,
I tried to make huge page request in Fedora x86_64 PV guest using xen 4.1
unstable and it crashed(crash info given below)
I had enabled superpages in config file
I had also set hugepages parameter at boot time for the PV Dom U
By excuting
# cat /proc/mem_info | grep Huge
gave me that there are 10 free huge pages available , still the domain
crashed.
[ 86.403654] BUG: unable to handle
2003 Dec 01
0
No subject
....1a-qnx/source/profile/profile.c
--- samba-2.2.1a/source/profile/profile.c Fri Jul 6 04:01:48 2001
+++ samba-2.2.1a-qnx/source/profile/profile.c Sat Jul 28 21:16:14 2001
@@ -21,7 +21,7 @@
*/
#include "includes.h"
-
+#ifdef HAVE_SYS_SHM_H
extern int DEBUGLEVEL;
#define IPC_PERMS ((SHM_R | SHM_W) | (SHM_R>>3) | (SHM_R>>6))
@@ -157,4 +157,4 @@
message_register(MSG_REQ_PROFILELEVEL, reqprofile_message);
return True;
}
-
+#endif /* HAVE_SYS_SHM_H */
----------------------------------------------------
(6) uint?
It appears that the "uint" macro is used, bu...
2003 Dec 01
0
No subject
...s.samba.org/mailman/listinfo/samba>, <mailto:samba-request@lists.samba.org?subject=unsubscribe>
List-Archive: http://lists.samba.org/pipermail/samba/
Dear Samba Team:
As of version 2.2.x Samba will not compile under NetBSD, although it did up
to and including 2.0.10. The problem is that SHM_R and SHM_W are not
defined in NetBSD's /usr/local/sys/shm.h so make fails with this error:
Compiling profile/profile.c
profile/profile.c: In function `profile_setup':
profile/profile.c:110: `SHM_R' undeclared (first use in this function)
profile/profile.c:110: (Each undeclared i...
2003 Dec 01
0
No subject
...39;t
managed to work out what actions cause the problem to occur. I can provide a
log.smbd if that will help, just let me know what debuglevel would be best.
I should mention that I had to adjust the source slightly to get it to
compile. NetBSD 1.5's /usr/include/sys/shm.h doesn't define SHM_R or SHM_W;
putting the following (definitions nabbed from the Linux shm.h I found)
<<
#define SHM_R 0400
#define SHM_W 0200
>>
into the "profile/profile.c" file in the samba source seemed to fix it. Is
this a "correct solution"?
I also got a few warnings during comp...