ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Как пройти сборку если требуется /dev/shm ?
Date: Thu, 1 Jan 2015 23:41:50 +0300
Message-ID: <20150101204150.GA31879@altlinux.org> (raw)
In-Reply-To: <54A2AE77.9060205@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 797 bytes --]

Hi,

On Tue, Dec 30, 2014 at 04:53:59PM +0300, Andrew V. Stepanov wrote:
> И рассмотрим семафор Posix.
> 
> $ cat 1.c
> #include <semaphore.h>
> #include <stdio.h>
> #include <errno.h>
> #include <stdlib.h>
> #include <unistd.h>
> #include <sys/types.h>
> 
> #include <sys/stat.h>
> #include <fcntl.h>
> #include <sys/mman.h>
> 
> int main(int argc, char **argv)
> {
>         sem_t *mutex;
> 
>         if ((mutex = sem_open("mysemaphore", O_CREAT, 0644, 1)) == 
> SEM_FAILED) {
>                 perror("semaphore initilization");
>                 exit(1);
>         }
> 
>         exit(0);
> }
> 
> $ gcc 1.c -lpthread
> 
> $ ./a.out
> semaphore initilization: Function not implemented

Используйте hasher >= 1.3.23-alt1 и собирайте на tmpfs.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 181 bytes --]

  parent reply	other threads:[~2015-01-01 20:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-29 14:32 Andrew V. Stepanov
2014-12-30 13:53 ` Andrew V. Stepanov
2014-12-31 13:57   ` Alexander Bokovoy
2015-01-01 20:41   ` Dmitry V. Levin [this message]
2015-01-12 12:30     ` Anton Farygin
2015-01-12 13:55       ` Dmitry V. Levin
2015-01-12 14:15         ` Dmitry V. Levin
2015-01-12 19:12           ` Anton Farygin
2015-01-12 19:36             ` Dmitry V. Levin
2015-01-13 11:55               ` Anton Farygin
2015-01-16 14:54                 ` Dmitry V. Levin
2015-01-16 19:07                   ` Anton Farygin
2015-01-16 19:54                     ` Dmitry V. Levin
2015-01-16 20:06                       ` Anton Farygin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150101204150.GA31879@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git