This provides missing POSIX _r fuctions, the thread-safe versions of

ttyname, getenv and strerror. A library, librfuncs.so* is build containing
only the functions not found. A headerfile, rfuncs.h, will contain headers
for only the missing functions.
This commit is contained in:
John R. Shannon 2004-10-14 22:45:20 +00:00 committed by Thomas Klausner
parent 36af7d2588
commit 18295e45dd
5 changed files with 56 additions and 0 deletions

4
librfuncs/DESCR Normal file
View file

@ -0,0 +1,4 @@
Provides missing POSIX *_r functions:
ttyname_r(), getenv_r() and strerror_r(). These
are thread safe versions of the corresponding
functions without the "_r".

22
librfuncs/Makefile Normal file
View file

@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.1.1.1 2004/10/14 22:45:20 johnrshannon Exp $
#
DISTNAME= librfuncs-1.0
CATEGORIES= devel
MASTER_SITES= http://www.johnrshannon.com/NetBSD/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= shannonjr@NetBSD.org
HOMEPAGE= http://www.johnrshannon.com/NetBSD/
COMMENT= Provides missing POSIX *_r functions
USE_BUILDLINK3= yes
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
PTHREAD_OPTS+= require
TEST_TARGET= check
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
librfuncs/PLIST Normal file
View file

@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/14 22:45:20 johnrshannon Exp $
include/rfuncs.h
lib/librfuncs.la

23
librfuncs/buildlink3.mk Normal file
View file

@ -0,0 +1,23 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/10/14 22:45:20 johnrshannon Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
LIBRFUNCS_BUILDLINK3_MK:= ${LIBRFUNCS_BUILDLINK3_MK}+
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= librfuncs
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibrfuncs}
BUILDLINK_PACKAGES+= librfuncs
.if !empty(LIBRFUNCS_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.librfuncs+= librfuncs>=1.0
BUILDLINK_PKGSRCDIR.librfuncs?= ../../wip/librfuncs
.endif # LIBRFUNCS_BUILDLINK3_MK
.include "../../mk/pthread.buildlink3.mk"
LIBS+= ${BUILDLINK_LDADD.pthread}
LDFLAGS+= -lrfuncs
LDFLAGS+= ${BUILDLINK_LDADD.pthread}
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}

4
librfuncs/distinfo Normal file
View file

@ -0,0 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2004/10/14 22:45:20 johnrshannon Exp $
SHA1 (librfuncs-1.0.tar.bz2) = ad1f3a52a4dde3075f09e1593e1f7b673ee2c96f
Size (librfuncs-1.0.tar.bz2) = 545446 bytes