X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Fdropin.c;fp=lib%2Fdaemon.c;h=faa2314bd90749ce7f948c0265dc2922122fc319;hp=f12599f4b6ed03f42b04c922a8307a8b814f29c6;hb=c94f7637427f4c89d56c41fe4c75f2970b664a63;hpb=3ff76eb10acc55b6f269c1075de6bbaa5bc83516;ds=sidebyside diff --git a/lib/daemon.c b/lib/dropin.c similarity index 89% rename from lib/daemon.c rename to lib/dropin.c index f12599f4..faa2314b 100644 --- a/lib/daemon.c +++ b/lib/dropin.c @@ -1,5 +1,5 @@ /* - daemon.c -- replacement daemon() for platforms that do not have it + dropin.c -- a set of drop-in replacements for libc functions Copyright (C) 2000 Ivo Timmermans , 2000 Guus Sliepen @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: daemon.c,v 1.1.2.1 2000/11/24 23:30:50 guus Exp $ + $Id: dropin.c,v 1.1.2.1 2000/11/28 23:23:41 zarq Exp $ */ #include "config.h" @@ -86,3 +86,16 @@ int daemon(int nochdir, int noclose) } } #endif + + + + + +#ifndef HAVE_GET_CURRENT_DIR_NAME + +char *get_current_dir_name(void) +{ + return "."; +} + +#endif