Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jul 2011 13:47:38 +0200
From:      Robert Millan <rmh@debian.org>
To:        freebsd-hackers@freebsd.org, Ed Maste <emaste@freebsd.org>
Subject:   [PATCH] PAGE_SIZE in libsbuf
Message-ID:  <CAOfDtXMVWT0jGw_o5ugBNW7Fiq1O2avDnprXAZ3s8aP-hsMTLA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--bcaec520ef1948d2f204a728d111
Content-Type: text/plain; charset=UTF-8

On arm, ia64, powerpc and sparc, Linux doesn't define a static
PAGE_SIZE.  It can only be obtained via sysconf().  In addition,
GNU/Hurd doesn't define PAGE_SIZE at all.

This patch improves portability of libsbuf to be built on those platforms.

In case you'd like to know, Debian is using libsbuf not just for its
GNU/kFreeBSD port, but also provides it to developers in Debian
GNU/Linux:

http://packages.debian.org/search?keywords=libsbuf-dev
https://buildd.debian.org/status/package.php?p=freebsd-libs&suite=sid

-- 
Robert Millan

--bcaec520ef1948d2f204a728d111
Content-Type: text/plain; charset=US-ASCII; name="sbuf_page_size.diff"
Content-Disposition: attachment; filename="sbuf_page_size.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gpnxrdgb0

SW5kZXg6IHN5cy9rZXJuL3N1YnJfc2J1Zi5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9rZXJuL3N1YnJf
c2J1Zi5jCShyZXZpc2lvbiAyMjM3MjEpCisrKyBzeXMva2Vybi9zdWJyX3NidWYuYwkod29ya2lu
ZyBjb3B5KQpAQCAtNzYsNiArNzYsMTEgQEAKICNkZWZpbmUJU0JVRl9TRVRGTEFHKHMsIGYpCWRv
IHsgKHMpLT5zX2ZsYWdzIHw9IChmKTsgfSB3aGlsZSAoMCkKICNkZWZpbmUJU0JVRl9DTEVBUkZM
QUcocywgZikJZG8geyAocyktPnNfZmxhZ3MgJj0gfihmKTsgfSB3aGlsZSAoMCkKIAorI2lmICFk
ZWZpbmVkKFBBR0VfU0laRSkgJiYgIWRlZmluZWQoX0tFUk5FTCkKKyNpbmNsdWRlIDx1bmlzdGQu
aD4KKyNkZWZpbmUgUEFHRV9TSVpFCQlzeXNjb25mKF9TQ19QQUdFU0laRSkKKyNlbmRpZgorCiAj
ZGVmaW5lCVNCVUZfTUlORVhURU5EU0laRQkxNgkJLyogU2hvdWxkIGJlIHBvd2VyIG9mIDIuICov
CiAKICNpZmRlZiBQQUdFX1NJWkUK
--bcaec520ef1948d2f204a728d111--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfDtXMVWT0jGw_o5ugBNW7Fiq1O2avDnprXAZ3s8aP-hsMTLA>