From: Victor Forsyuk <force@altlinux.org> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] bonnie-1.4-alt3 (PAGE_MASK) Date: Wed, 20 Feb 2008 15:14:30 +0200 Message-ID: <20080220131430.GA7413@mail.gu.net> (raw) In-Reply-To: <20080219235603.GA28046@wo.int.altlinux.org> On Wed, Feb 20, 2008 at 02:56:03AM +0300, Dmitry V. Levin wrote: > Hi, > > On Wed, Feb 20, 2008 at 02:41:37AM +0300, QA Team Robot wrote: > > bonnie - Unix filesystem performance benchmark > > * Mon Feb 18 2008 Victor Forsyuk <force@altlinux> 1.4-alt3 > > - Include sys/user.h for PAGE_MASK definition due to unexported > > asm/page.h in glibc-kernheaders-2.6.18-alt4. > > Не надо использовать sys/user.h, если вы не gdb. Rationale? > $ info libc 'Query Memory Parameters' Это всё понятно. Проблема в том, что PAGE_MASK определяется по разному в BSD и Linux. В BSD это "(PAGE_SIZE-1)", в Линуксе - "~(PAGE_SIZE-1)". Определять PAGE_MASK в исходнике - это убить переносимость. Следовательно, нужно брать из хедеров системы. Где я неправ?
next prev parent reply other threads:[~2008-02-20 13:14 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-02-19 23:56 ` Dmitry V. Levin 2008-02-20 4:19 ` Хихин Руслан 2008-02-20 13:14 ` Victor Forsyuk [this message] 2008-02-20 13:24 ` Dmitry V. Levin 2008-02-20 14:02 ` Victor Forsyuk
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=20080220131430.GA7413@mail.gu.net \ --to=force@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