search for: ipc_creat

Displaying 16 results from an estimated 16 matches for "ipc_creat".

2001 Mar 17
1
ogg123 doesn't destroy shm segment
...e <sys/stat.h> #include <sys/time.h> #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);...
2015 Sep 03
2
Starting emacs gives "shmget failed: error 28" message
...ror 28 (No space left on device)" The message is also logged to .xsession-errors, and that occurs regardless of how emacs is started. The same thing occurs with SELinux in permissive mode. Emacs version is emacs-23.1-28.el6.x86_64 . Output from strace shows: shmget(IPC_PRIVATE, 393216, IPC_CREAT|0600) = -1 ENOSPC (No space left on device) /proc/mounts contains: tmpfs /dev/shm tmpfs rw,seclabel,relatime 0 0 and "df /dev/shm" shows: Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 8194164 172 8193992 1% /dev/shm I can't identify an...
2015 Sep 03
3
Starting emacs gives "shmget failed: error 28" message
...logged to .xsession-errors, and that occurs >> regardless of how emacs is started. The same thing occurs with >> SELinux in permissive mode. >> >> Emacs version is emacs-23.1-28.el6.x86_64 . >> >> Output from strace shows: >> shmget(IPC_PRIVATE, 393216, IPC_CREAT|0600) = -1 ENOSPC (No space >> left on device) >> >> /proc/mounts contains: >> tmpfs /dev/shm tmpfs rw,seclabel,relatime 0 0 >> >> and "df /dev/shm" shows: >> Filesystem 1K-blocks Used Available Use% Mounted on >> tmpfs...
2004 Apr 13
1
shared mem advice
...ny suggestion is appreciated... I wonder if the right approach would be to modify add a modified version of the allocVector(SEXPTYPE type, int length) function specifically shared_mem_id = shmget(shared_mem_key, SHM_SIZE, IPC_CREAT); shared = (SEXP) shmat(shared_mem_id, (void *)0, 0); my_allocVector(SEXPTYPE type, int length, SEXP shared) { SEXP s=shared; .... And erase this if: ################################################# if(size >= (LONG_MAX / sizeof(VECREC))-sizeof(SEXPREC_ALIGN)...
2005 Jul 12
1
problem mounting ocfs2: heartbeat
When attempting to mount the OCFS2 file system I'm getting the following error message: ocfs2_hb_ctl: Internal logic failure while starting heartbeat mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted" I followed the steps given in the users_guide: modprobe ocfs2_dlmfs mount -t configfs none /config mount -t ocfs2_dlmfs none /dlm o2cb_ctl
2015 Sep 03
0
Starting emacs gives "shmget failed: error 28" message
...t; > The message is also logged to .xsession-errors, and that occurs > regardless of how emacs is started. The same thing occurs with > SELinux in permissive mode. > > Emacs version is emacs-23.1-28.el6.x86_64 . > > Output from strace shows: > shmget(IPC_PRIVATE, 393216, IPC_CREAT|0600) = -1 ENOSPC (No space > left on device) > > /proc/mounts contains: > tmpfs /dev/shm tmpfs rw,seclabel,relatime 0 0 > > and "df /dev/shm" shows: > Filesystem 1K-blocks Used Available Use% Mounted on > tmpfs 8194164 172 8193992...
2015 Sep 03
0
Starting emacs gives "shmget failed: error 28" message
...and that occurs >>> regardless of how emacs is started. The same thing occurs with >>> SELinux in permissive mode. >>> >>> Emacs version is emacs-23.1-28.el6.x86_64 . >>> >>> Output from strace shows: >>> shmget(IPC_PRIVATE, 393216, IPC_CREAT|0600) = -1 ENOSPC (No space >>> left on device) >>> >>> /proc/mounts contains: >>> tmpfs /dev/shm tmpfs rw,seclabel,relatime 0 0 >>> >>> and "df /dev/shm" shows: >>> Filesystem 1K-blocks Used Available Use% Mounte...
1998 Apr 01
0
[Fwd: Semaphore problem on HP-UX ?]
...hash_size = SHMEM_HASH_SIZE; DEBUG(4,("semaphore : initial hash-size = %d \n", hash_size)); while (hash_size > 1) { sem_id = semget(SEMAPHORE_KEY, hash_size+1, IPC_CREAT|IPC_EXCL|SEMAPHORE_PERMS); DEBUG(4,("semaphore : %s - hash-size = %d \n", strerror(errno),hash_size)); DEBUG(4,("semaphore : sem_id = %d \n", sem_id)); if (sem_id != -1 ||...
2000 Aug 07
1
shm_open (667) & locking_init(174), not 2.3.xx kernel
This weekend, we upgraded our server to Linux-Mandrake 7.1, which uses a (slightly customized by Mandrake) 2.2.15 kernel. Since then, users are unable to log in, and log.smb shows locking/shmem_sysv_shm_open(667). Can't create or use use IPC area. Error was File exists locking/locking.c:locking_init(174). ERROR: Failed to initialise share modes There have been several messages posted about
2010 Aug 10
1
semget() failed
...mget() always returns -1 and I don't understand my mistake. int sem_init_SysV(sem_t *semaphore, int shared, unsigned int valeur) { int ios; union semun argument; if (shared != 0) { return(ENOSYS); } (*semaphore) = semget(IPC_PRIVATE, 1, IPC_CREAT | IPC_EXCL | SEM_R | SEM_A); if ((*semaphore) == -1) { // Always true with OS/2 (libc 0.6.3) return(EINVAL); } argument.val = valeur; ios = semctl((*semaphore), 0, SETVAL, argument); return(ios); } Any explanation ? Thanks in advance, JKB
2005 Dec 01
0
[fdo] Programming problems in Dual Head Mode.
...; > } > CompletionType = XShmGetEventBase(display) + ShmCompletion; > ximage = (XvImage *) XvShmCreateImage(display, portNum, > GUID_MBX1_PLANAR,0, yuv_width, yuv_height, (char *) &shminfo1); > shminfo1.shmid = shmget (IPC_PRIVATE, ximage->data_size, > IPC_CREAT|0777); > shminfo1.shmaddr = ximage->data = shmat (shminfo1.shmid, 0, 0); > shminfo1.readOnly = False; > if(!XShmAttach (display, &shminfo1)) { > printf("XShmAttach failed!\n"); > } > shmctl (shminfo1.shmid, IPC_RMID, 0); > XSync(display...
2005 Dec 05
0
[fdo] Programming problems in Dual Head Mode with Tiny-X.
...; > } > CompletionType = XShmGetEventBase(display) + ShmCompletion; > ximage = (XvImage *) XvShmCreateImage(display, portNum, > GUID_MBX1_PLANAR,0, yuv_width, yuv_height, (char *) &shminfo1); > shminfo1.shmid = shmget (IPC_PRIVATE, ximage->data_size, > IPC_CREAT|0777); > shminfo1.shmaddr = ximage->data = shmat (shminfo1.shmid, 0, 0); > shminfo1.readOnly = False; > if(!XShmAttach (display, &shminfo1)) { > printf("XShmAttach failed!\n"); > } > shmctl (shminfo1.shmid, IPC_RMID, 0); > XSync(display...
2004 Aug 06
1
how to start liveice with screen?
Moin, I installed liveice as well as 'screen' at a debian maschine, both applications are running fine. But when I try to start liveice in a 'screen' environment then the liveice process ends without an error message: $ /usr/bin/screen -dmS liveice /usr/bin/liveice A prefixed 'strace -f' shows me: [pid 5614] old_mmap(NULL, 167936, PROT_READ|PROT_WRITE,
2002 Jun 25
2
Help wanted: configure test for busted mmap
Linux 2.2 (and probably others) have a deficient mmap which has caused a number of problems (e.g. bug #285). A workaround is in development, but it would be helpful to have a configure test to detect the bad mmaps(). Any takers? -d
2016 Jul 13
2
[LLVM/Clang v3.8.1] Missing Git branches/tags and source-tarballs?
On Wed, Jul 13, 2016 at 04:48:51PM +0200, Sedat Dilek via llvm-dev wrote: > [ CCed all people who were involved in this thread ] > > Hi Tom, > > personally, I am interested to test the prebuilt-toolchains for > Ubuntu/xenial alias 16.04 LTS and Debian/Jessie v8.5.0 AMD64. > The available toolchains are incomplete and thus useless. > > Just as a fact: There is still no
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