]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Rename transparent support to overlay
authorGuillem Jover <guillem@hadrons.org>
Wed, 25 May 2011 05:36:19 +0000 (07:36 +0200)
committerGuillem Jover <guillem@hadrons.org>
Fri, 27 May 2011 20:45:26 +0000 (22:45 +0200)
This affects the pkg-config file now named libbsd-overlay.pc, and the
macro to use the overlay LIBBSD_OVERLAY.

Makefile
include/bsd/err.h
include/bsd/getopt.h
include/bsd/stdio.h
include/bsd/stdlib.h
include/bsd/string.h
include/bsd/sys/cdefs.h
include/bsd/unistd.h
libbsd-overlay.pc.in [moved from libbsd-transparent.pc.in with 59% similarity]

index 5a04ae302825289341bf20bd237a78aee79f9d17..23648e1576b9048c2c9e4713c2663485f64bc24a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ LIB_VERSION_MICRO := 0
 LIB_VERSION := $(LIB_VERSION_MAJOR).$(LIB_VERSION_MINOR).$(LIB_VERSION_MICRO)
 
 LIB_PKGCONFIG := $(LIB_NAME).pc
-LIB_PKGCONFIG_TRANS := $(LIB_NAME)-transparent.pc
+LIB_PKGCONFIG_OVERLAY := $(LIB_NAME)-overlay.pc
 LIB_STATIC := $(LIB_NAME).a
 LIB_SHARED_SO := $(LIB_NAME).so
 LIB_SONAME := $(LIB_SHARED_SO).$(LIB_VERSION_MAJOR)
@@ -127,7 +127,7 @@ LDFLAGS ?=
 
 # Internal makefile variables
 MK_CPPFLAGS := -Iinclude/bsd/ -Iinclude/ \
-       -DLIBBSD_TRANSPARENT -DLIBBSD_CLEAN_INCLUDES \
+       -DLIBBSD_OVERLAY -DLIBBSD_CLEAN_INCLUDES \
        -D_GNU_SOURCE -D__REENTRANT
 MK_CFLAGS :=
 MK_LDFLAGS :=
@@ -144,7 +144,7 @@ pkgconfigdir        = ${usrlibdir}/pkgconfig
 mandir         = ${prefix}/share/man
 
 .PHONY: libs
-libs: $(LIB_STATIC) $(LIB_SHARED_SO) $(LIB_PKGCONFIG) $(LIB_PKGCONFIG_TRANS)
+libs: $(LIB_STATIC) $(LIB_SHARED_SO) $(LIB_PKGCONFIG) $(LIB_PKGCONFIG_OVERLAY)
 
 .PHONY: man
 man: $(LIB_MANS)
@@ -214,7 +214,7 @@ install: libs man
        done
        install -m644 $(LIB_MANS) $(DESTDIR)$(mandir)/man3
        install -m644 $(LIB_PKGCONFIG) $(DESTDIR)$(pkgconfigdir)
-       install -m644 $(LIB_PKGCONFIG_TRANS) $(DESTDIR)$(pkgconfigdir)
+       install -m644 $(LIB_PKGCONFIG_OVERLAY) $(DESTDIR)$(pkgconfigdir)
 ifeq ($(libdir),$(usrlibdir))
        # If both dirs are the same, do a relative symlink.
        ln -sf $(LIB_SHARED) $(DESTDIR)$(usrlibdir)/$(LIB_SHARED_SO)
@@ -227,7 +227,7 @@ endif
 .PHONY: clean
 clean:
        rm -f $(LIB_PKGCONFIG)
-       rm -f $(LIB_PKGCONFIG_TRANS)
+       rm -f $(LIB_PKGCONFIG_OVERLAY)
        rm -f $(LIB_SRCS_GEN) $(LIB_MANS_GEN)
        rm -f $(LIB_STATIC_OBJS)
        rm -f $(LIB_STATIC)
index b6226555d7908df3d28db076ac6455ac401db899..def4ac3295c5f3513846b1ab939fd253a57a604f 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright © 2006 Robert Millan
- * Copyright © 2009 Guillem Jover
+ * Copyright © 2009, 2011 Guillem Jover
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -32,7 +32,7 @@
 
 #include <stdarg.h>
 
-#ifdef LIBBSD_TRANSPARENT
+#ifdef LIBBSD_OVERLAY
 #include_next <err.h>
 #else
 #include <err.h>
index b0057cf8ae21f6b63ad247f499ebc4ea9b92a034..d2963cb85b44b228d16a58b62461dd56258456c3 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright © 2006 Robert Millan
- * Copyright © 2009 Guillem Jover
+ * Copyright © 2009, 2011 Guillem Jover
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 
-#ifdef LIBBSD_TRANSPARENT
+#ifdef LIBBSD_OVERLAY
 #include_next <getopt.h>
 #else
 #include <getopt.h>
index cdf4e50eb3611dbcb8bdc52122201caf56c3446c..db2823e6d831c8b6854e1ddfca98fae62aa94eba 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/cdefs.h>
 #include <sys/types.h>
 
-#ifdef LIBBSD_TRANSPARENT
+#ifdef LIBBSD_OVERLAY
 #include_next <stdio.h>
 #else
 #include <stdio.h>
index 4a185fcc1f8deefae61fac883bd3969238c7cd9d..a22cbe5909c890c2a2f4c382cf8f6483f8115cb9 100644 (file)
 #include <sys/stat.h>
 #include <stdint.h>
 
-#ifdef LIBBSD_TRANSPARENT
+#ifdef LIBBSD_OVERLAY
 #include_next <stdlib.h>
 #else
 #include <stdlib.h>
 #endif
 
 /* For compatibility with NetBSD, which defines humanize_number here. */
-#ifdef LIBBSD_TRANSPARENT
+#ifdef LIBBSD_OVERLAY
 #include <libutil.h>
 #else
 #include <bsd/libutil.h>
index f9e733f7cd127126150526043b6b2fdc1d30808c..7d23f7d1a9997f68d3eccc80b17cb470a375944f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2004, 2005, 2009 Guillem Jover
+ * Copyright © 2004, 2005, 2009, 2011 Guillem Jover
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -30,7 +30,7 @@
 #include <sys/cdefs.h>
 #include <sys/types.h>
 
-#ifdef LIBBSD_TRANSPARENT
+#ifdef LIBBSD_OVERLAY
 #include_next <string.h>
 #else
 #include <string.h>
index 87d8a4815828c065fdd33b95d65ffcf6014c4733..b1a0f8aebdeaa045374fa74b24ae6a1e55300df3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2004, 2005, 2006, 2009 Guillem Jover
+ * Copyright © 2004-2006, 2009-2011 Guillem Jover
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -27,7 +27,7 @@
 #ifndef LIBBSD_CDEFS_H
 #define LIBBSD_CDEFS_H
 
-#ifdef LIBBSD_TRANSPARENT
+#ifdef LIBBSD_OVERLAY
 #include_next <sys/cdefs.h>
 #else
 #include <sys/cdefs.h>
index ac56787e8b3827428b21c4da4b3308b30d573e1f..61aaff47d82038fe506cc9221921ec8cbe7dfece 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2008, 2009 Guillem Jover
+ * Copyright © 2008-2011 Guillem Jover
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -30,7 +30,7 @@
 #include <sys/cdefs.h>
 #include <sys/stat.h>
 
-#ifdef LIBBSD_TRANSPARENT
+#ifdef LIBBSD_OVERLAY
 #include_next <unistd.h>
 #else
 #include <unistd.h>
similarity index 59%
rename from libbsd-transparent.pc.in
rename to libbsd-overlay.pc.in
index 2549e1c6d6ccf809d86bd1a268468acac030df69..2bbb1e2ece01ba89062934b2815d373d772da7cb 100644 (file)
@@ -4,8 +4,8 @@ libdir=@libdir@
 includedir=@includedir@
 
 Name: libbsd
-Description: Utility functions from BSD systems (transparent)
+Description: Utility functions from BSD systems (overlay)
 Version: @VERSION@
 URL: http://libbsd.freedesktop.org/
 Libs: -L${libdir} -lbsd
-Cflags: -isystem ${includedir}/bsd -DLIBBSD_TRANSPARENT
+Cflags: -isystem ${includedir}/bsd -DLIBBSD_OVERLAY