(db_open) [_LIBC]: Rename to __nss_db_open and create weak alias.
authordrepper <drepper>
Fri, 21 Aug 1998 17:20:42 +0000 (17:20 +0000)
committerdrepper <drepper>
Fri, 21 Aug 1998 17:20:42 +0000 (17:20 +0000)
db2/db/db.c

index 9951ebd..755b34b 100644 (file)
@@ -87,6 +87,11 @@ static int db_fd __P((DB *, int *));
                }                                                       \
 }
 
+#ifdef _LIBC
+#define db_open(fname, type, flags, mode, dbenv, dbinfo, dbpp) \
+  __nss_db_open(fname, type, flags, mode, dbenv, dbinfo, dbpp)
+#endif
+
 /*
  * db_open --
  *     Main library interface to the DB access methods.
@@ -691,6 +696,11 @@ err:       /* Close the file descriptor. */
        return (ret);
 }
 
+#ifdef _LIBC
+# undef db_open
+weak_alias (__nss_db_open, db_open)
+#endif
+
 /*
  * db_close --
  *     Close a DB tree.