Compare commits

...

7 Commits
0.1.1 ... 0.1.2

Author SHA1 Message Date
Guillem Jover
f984a7006b Release libbsd 0.1.2 2009-05-25 06:57:50 +02:00
Guillem Jover
326a3a7619 Install humanize_number(3) man page 2009-05-25 06:57:03 +02:00
Guillem Jover
e4aff3d9fc Use N_SYMSIZE instead of directly accessing ‘struct exec’
On Linux alpha ‘struct exec’ does not have an a_syms member, and the
N_SYMSIZE is mapped to 0.
2009-05-25 06:41:42 +02:00
Gerardo Exequiel Pozzi
c3feeb0092 Add some man page links
Add man page links for strlcat, getmode and arc4random_*.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2009-05-25 06:32:45 +02:00
Guillem Jover
80c3954e3c Use the correct path when including a.out.h
Reported-by: Aurélien Jarno <aurelien@aurel32.net>
2009-05-25 06:23:01 +02:00
Guillem Jover
4c3e03efeb Add man/md5.3bsd to .gitignore 2009-05-25 06:22:22 +02:00
Guillem Jover
9b30dae909 Fix typos (‘ELFDATA2MSG’ → ‘ELFDATA2MSB’) 2009-05-21 05:04:09 +02:00
9 changed files with 16 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
LIB_NAME := libbsd
LIB_VERSION_MAJOR := 0
LIB_VERSION_MINOR := 1
LIB_VERSION_MICRO := 1
LIB_VERSION_MICRO := 2
LIB_VERSION := $(LIB_VERSION_MAJOR).$(LIB_VERSION_MINOR).$(LIB_VERSION_MICRO)
LIB_PKGCONFIG := $(LIB_NAME).pc
@@ -60,11 +60,16 @@ LIB_INCLUDES := \
LIB_MANS := \
arc4random.3 \
arc4random_addrandom.3 \
arc4random_stir.3 \
strlcpy.3 \
strlcat.3 \
fgetln.3 \
humanize_number.3 \
fmtcheck.3 \
nlist.3 \
setmode.3 \
getmode.3 \
strmode.3 \
md5.3bsd
LIB_MANS := $(patsubst %,man/%,$(LIB_MANS))

View File

@@ -28,7 +28,7 @@
#define LIBBSD_NLIST_H
#include <sys/cdefs.h>
#include <sys/a.out.h>
#include <a.out.h>
__BEGIN_DECLS
extern int nlist(const char *filename, struct nlist *list);

1
man/.gitignore vendored
View File

@@ -1 +1,2 @@
md5.3
md5.3bsd

View File

@@ -0,0 +1 @@
.so man3/arc4random.3

1
man/arc4random_stir.3 Normal file
View File

@@ -0,0 +1 @@
.so man3/arc4random.3

1
man/getmode.3 Normal file
View File

@@ -0,0 +1 @@
.so man3/setmode.3

1
man/strlcat.3 Normal file
View File

@@ -0,0 +1 @@
.so man3/strlcpy.3

View File

@@ -124,13 +124,13 @@
#define ELF_TARG_MACH EM_PPC
#define ELF_TARG_CLASS ELFCLASS32
#define ELF_TARG_DATA ELFDATA2MSG
#define ELF_TARG_DATA ELFDATA2MSB
#elif defined(__powerpc64__)
#define ELF_TARG_MACH EM_PPC64
#define ELF_TARG_CLASS ELFCLASS64
#define ELF_TARG_DATA ELFDATA2MSG
#define ELF_TARG_DATA ELFDATA2MSB
#elif defined(__sparc__)
@@ -163,7 +163,7 @@
#else
#define ELF_TARG_CLASS ELFCLASS32
#endif
#define ELF_TARG_DATA ELFDATA2MSG
#define ELF_TARG_DATA ELFDATA2MSB
#else

View File

@@ -155,7 +155,7 @@ __aout_fdnlist(fd, list)
}
symoff = N_SYMOFF(*exec);
symsize = exec->a_syms;
symsize = N_SYMSIZE(*exec);
stroff = symoff + symsize;
/* find the string table in our mmapped area */