aboutsummaryrefslogtreecommitdiffstats
path: root/main/man
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-06 13:05:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-06 13:05:31 +0000
commit979d3c10b6dc623a4c17ba4592c7ff0ff01c5ec8 (patch)
treeb7cdcc6dce951ce95ea33b97e84850098eb867c8 /main/man
parent16164ba035609a2a8f7f98de7fa1052ad201a915 (diff)
downloadaports-979d3c10b6dc623a4c17ba4592c7ff0ff01c5ec8.tar.bz2
aports-979d3c10b6dc623a4c17ba4592c7ff0ff01c5ec8.tar.xz
main/man: use package() function
Diffstat (limited to 'main/man')
-rw-r--r--main/man/APKBUILD13
-rw-r--r--main/man/test.out289
2 files changed, 299 insertions, 3 deletions
diff --git a/main/man/APKBUILD b/main/man/APKBUILD
index 3be9fdbd1e..f5ada93f55 100644
--- a/main/man/APKBUILD
+++ b/main/man/APKBUILD
@@ -11,17 +11,24 @@ source="http://primates.ximian.com/~flucifredi/$pkgname/$pkgname-$pkgver.tar.gz
whatis.periodic.daily
$pkgname-troff.patch"
-build () {
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ cd "$_builddir"
local i
- cd "$srcdir/$pkgname-$pkgver"
for i in ../*.patch; do
msg "Applying $i"
patch -p1 -i $i || return 1
done
+}
+build () {
+ cd "$_builddir"
./configure -confdir=/etc +sgid +fhs +lang none
-
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make PREFIX="$pkgdir" install || return 1
sed -i -e "s|-Tlatin1||g" \
diff --git a/main/man/test.out b/main/man/test.out
new file mode 100644
index 0000000000..b2ea959ca3
--- /dev/null
+++ b/main/man/test.out
@@ -0,0 +1,289 @@
+execve("/usr/bin/man", ["man", "fopen"], [/* 14 vars */]) = 0
+mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0xb781c000
+stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=7627, ...}) = 0
+open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
+mmap2(NULL, 7627, PROT_READ, MAP_SHARED, 3, 0) = 0xb781a000
+close(3) = 0
+open("/lib/libc.so.0.9.32", O_RDONLY) = 3
+fstat(3, {st_mode=S_IFREG|0755, st_size=306224, ...}) = 0
+mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0xb7819000
+read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\260\0\0004\0\0\0"..., 4096) = 4096
+mmap2(NULL, 327680, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77c9000
+mmap2(0xb77c9000, 298552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xb77c9000
+mmap2(0xb7812000, 4862, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x49) = 0xb7812000
+mmap2(0xb7814000, 16644, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7814000
+close(3) = 0
+munmap(0xb7819000, 4096) = 0
+munmap(0xb781a000, 7627) = 0
+stat("/lib/ld-uClibc.so.0.9.32", {st_mode=S_IFREG|0755, st_size=25248, ...}) = 0
+mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|0x4000000, -1, 0) = 0xb781b000
+set_thread_area({entry_number:-1 -> 6, base_addr:0xb781b6a0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
+open("/dev/urandom", O_RDONLY) = 3
+read(3, "\252\2559i", 4) = 4
+close(3) = 0
+mprotect(0xb7812000, 4096, PROT_READ) = 0
+mprotect(0xb7824000, 4096, PROT_READ) = 0
+ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
+ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
+brk(0) = 0xb7971000
+brk(0xb7972000) = 0xb7972000
+getuid32() = 1000
+geteuid32() = 1000
+getgid32() = 1000
+getegid32() = 1000
+ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
+ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
+ioctl(0, TIOCGWINSZ, {ws_row=59, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
+open("/etc/man.conf", O_RDONLY) = 3
+ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8abc08) = -1 ENOTTY (Inappropriate ioctl for device)
+brk(0xb7973000) = 0xb7973000
+read(3, "#\n# Generated automatically from"..., 4096) = 4096
+brk(0xb7976000) = 0xb7976000
+brk(0xb7979000) = 0xb7979000
+brk(0xb797c000) = 0xb797c000
+brk(0xb797f000) = 0xb797f000
+brk(0xb7982000) = 0xb7982000
+brk(0xb7985000) = 0xb7985000
+brk(0xb7988000) = 0xb7988000
+brk(0xb798b000) = 0xb798b000
+brk(0xb798e000) = 0xb798e000
+brk(0xb7991000) = 0xb7991000
+brk(0xb7994000) = 0xb7994000
+brk(0xb7997000) = 0xb7997000
+brk(0xb799a000) = 0xb799a000
+brk(0xb799d000) = 0xb799d000
+read(3, " when man is invoked without opt"..., 4096) = 439
+read(3, "", 4096) = 0
+stat("/usr/local/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+stat("/usr/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+stat("/usr/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+stat("/usr/local/man", 0xbf8a7ac8) = -1 ENOENT (No such file or directory)
+stat("/usr/X11R6/man", 0xbf8a7ac8) = -1 ENOENT (No such file or directory)
+ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
+ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
+open("/usr/local/share/man/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/local/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=24576, ...}) = 0
+brk(0xb799e000) = 0xb799e000
+getdents(4, /* 195 entries */, 4096) = 4092
+getdents(4, /* 105 entries */, 4096) = 2228
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/share/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=24576, ...}) = 0
+getdents(4, /* 195 entries */, 4096) = 4092
+getdents(4, /* 105 entries */, 4096) = 2228
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/var/cache/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+getdents(4, /* 2 entries */, 4096) = 32
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/share/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+getdents(4, /* 2 entries */, 4096) = 32
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/man/html1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/man1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/cat1/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/html1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/man1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/local/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/html1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/man1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/html1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/man1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/cat1p/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/html8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/local/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/html8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+brk(0xb799f000) = 0xb799f000
+getdents(4, /* 20 entries */, 4096) = 460
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/share/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+getdents(4, /* 20 entries */, 4096) = 460
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/var/cache/man/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+getdents(4, /* 2 entries */, 4096) = 32
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/share/man/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+getdents(4, /* 2 entries */, 4096) = 32
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/man/html8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/man8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/cat8/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/html2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/man2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/local/cat2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/cat2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/html2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/man2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
+getdents(4, /* 172 entries */, 4096) = 4084
+getdents(4, /* 173 entries */, 4096) = 4096
+getdents(4, /* 77 entries */, 4096) = 1772
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/share/man/man2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
+getdents(4, /* 172 entries */, 4096) = 4084
+getdents(4, /* 173 entries */, 4096) = 4096
+getdents(4, /* 77 entries */, 4096) = 1772
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/var/cache/man/cat2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/cat2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/html2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/man2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/cat2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/cat2/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/html3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/man3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=90112, ...}) = 0
+getdents(4, /* 2 entries */, 4096) = 32
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/local/share/man/man3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=90112, ...}) = 0
+getdents(4, /* 2 entries */, 4096) = 32
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/var/cache/man/local/cat3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/local/share/man/cat3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/html3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/share/man/man3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=299008, ...}) = 0
+getdents(4, /* 153 entries */, 4096) = 4080
+getdents(4, /* 150 entries */, 4096) = 4084
+getdents(4, /* 148 entries */, 4096) = 4088
+getdents(4, /* 150 entries */, 4096) = 4076
+getdents(4, /* 151 entries */, 4096) = 4088
+getdents(4, /* 153 entries */, 4096) = 4092
+getdents(4, /* 149 entries */, 4096) = 4096
+getdents(4, /* 154 entries */, 4096) = 4076
+getdents(4, /* 147 entries */, 4096) = 4080
+getdents(4, /* 155 entries */, 4096) = 4084
+getdents(4, /* 143 entries */, 4096) = 4088
+getdents(4, /* 152 entries */, 4096) = 4092
+getdents(4, /* 153 entries */, 4096) = 4084
+getdents(4, /* 150 entries */, 4096) = 4080
+getdents(4, /* 152 entries */, 4096) = 4076
+getdents(4, /* 152 entries */, 4096) = 4080
+getdents(4, /* 145 entries */, 4096) = 4080
+getdents(4, /* 156 entries */, 4096) = 4072
+getdents(4, /* 148 entries */, 4096) = 4072
+getdents(4, /* 155 entries */, 4096) = 4088
+getdents(4, /* 150 entries */, 4096) = 4080
+getdents(4, /* 147 entries */, 4096) = 4068
+getdents(4, /* 153 entries */, 4096) = 4088
+getdents(4, /* 149 entries */, 4096) = 4092
+getdents(4, /* 143 entries */, 4096) = 4084
+getdents(4, /* 151 entries */, 4096) = 4084
+getdents(4, /* 152 entries */, 4096) = 4096
+getdents(4, /* 153 entries */, 4096) = 4076
+getdents(4, /* 152 entries */, 4096) = 4080
+getdents(4, /* 86 entries */, 4096) = 2340
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/share/man/man3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=299008, ...}) = 0
+getdents(4, /* 153 entries */, 4096) = 4080
+getdents(4, /* 150 entries */, 4096) = 4084
+getdents(4, /* 148 entries */, 4096) = 4088
+getdents(4, /* 150 entries */, 4096) = 4076
+getdents(4, /* 151 entries */, 4096) = 4088
+getdents(4, /* 153 entries */, 4096) = 4092
+getdents(4, /* 149 entries */, 4096) = 4096
+getdents(4, /* 154 entries */, 4096) = 4076
+getdents(4, /* 147 entries */, 4096) = 4080
+getdents(4, /* 155 entries */, 4096) = 4084
+getdents(4, /* 143 entries */, 4096) = 4088
+getdents(4, /* 152 entries */, 4096) = 4092
+getdents(4, /* 153 entries */, 4096) = 4084
+getdents(4, /* 150 entries */, 4096) = 4080
+getdents(4, /* 152 entries */, 4096) = 4076
+getdents(4, /* 152 entries */, 4096) = 4080
+getdents(4, /* 145 entries */, 4096) = 4080
+getdents(4, /* 156 entries */, 4096) = 4072
+getdents(4, /* 148 entries */, 4096) = 4072
+getdents(4, /* 155 entries */, 4096) = 4088
+getdents(4, /* 150 entries */, 4096) = 4080
+getdents(4, /* 147 entries */, 4096) = 4068
+getdents(4, /* 153 entries */, 4096) = 4088
+getdents(4, /* 149 entries */, 4096) = 4092
+getdents(4, /* 143 entries */, 4096) = 4084
+getdents(4, /* 151 entries */, 4096) = 4084
+getdents(4, /* 152 entries */, 4096) = 4096
+getdents(4, /* 153 entries */, 4096) = 4076
+getdents(4, /* 152 entries */, 4096) = 4080
+getdents(4, /* 86 entries */, 4096) = 2340
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+access("/usr/share/man/man3/fopen.3", R_OK) = 0
+open("/usr/man/html3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/man3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+getdents(4, /* 2 entries */, 4096) = 32
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/usr/man/man3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
+fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
+getdents(4, /* 2 entries */, 4096) = 32
+getdents(4, /* 0 entries */, 4096) = 0
+close(4) = 0
+open("/var/cache/man/cat3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+open("/usr/man/cat3/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
+access("/usr/share/man/man3/fopen.3", R_OK) = 0
+open("/usr/share/man/man3/fopen.3", O_RDONLY) = 4
+ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8a6b78) = -1 ENOTTY (Inappropriate ioctl for device)
+read(4, ".\\\" Copyright (c) 1990, 1991 The"..., 4096) = 4096
+close(4) = 0
+stat("/usr/share/man/man3/fopen.3", {st_mode=S_IFREG|0644, st_size=8720, ...}) = 0
+stat("/var/cache/man/cat3/fopen.3.bz2", 0xbf8a8b48) = -1 ENOENT (No such file or directory)
+stat("/var/cache/man/cat3/fopen.3.bz2", 0xbf8a8c28) = -1 ENOENT (No such file or directory)
+open("/var/cache/man/cat3/fopen.3.bz2", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)
+ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
+ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
+open("/usr/share/man/man3/fopen.3", O_RDONLY) = 4
+ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8a2b38) = -1 ENOTTY (Inappropriate ioctl for device)
+read(4, ".\\\" Copyright (c) 1990, 1991 The"..., 4096) = 4096
+close(4) = 0
+rt_sigaction(SIGINT, {0xb782cd1c, [INT], SA_RESTORER|SA_RESTART, 0xb77d43b7}, {SIG_DFL, [], 0}, 8) = 0
+rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0xb77d43b7}, {0xb782cd1c, [INT], SA_RESTORER|SA_RESTART, 0xb77d43b7}, 8) = 0
+rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0xb77d43b7}, {SIG_DFL, [], 0}, 8) = 0
+rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
+clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD, parent_tidptr=0xbf8a8bb4) = 31161
+waitpid(31161, <stdin>:1:1: bad syntax
+<stdin>: Not a manual
+[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 31161
+rt_sigaction(SIGINT, {0xb782cd1c, [INT], SA_RESTORER|SA_RESTART, 0xb77d43b7}, NULL, 8) = 0
+rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0xb77d43b7}, NULL, 8) = 0
+rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
+--- SIGCHLD (Child exited) @ 0 (0) ---
+rt_sigaction(SIGINT, {SIG_DFL, [INT], SA_RESTORER|SA_RESTART, 0xb77d43b7}, {0xb782cd1c, [INT], SA_RESTORER|SA_RESTART, 0xb77d43b7}, 8) = 0
+exit_group(0) = ?