From 33404070cd4d150874881d7bb3dbbe56d8153f90 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 4 Jan 2010 15:27:05 +0200 Subject: Remove further replacement functions for POSIX 2001 required bits - getwd(), getcwd(), basename() and realpath() are all POSIX 2001 defined, we dont care about older stuff --- misc/getwd.c | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 misc/getwd.c (limited to 'misc/getwd.c') diff --git a/misc/getwd.c b/misc/getwd.c deleted file mode 100644 index a7a64b82d..000000000 --- a/misc/getwd.c +++ /dev/null @@ -1,29 +0,0 @@ -/* getwd.c -- get current working directory pathname - Copyright (C) 1992 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) - any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. */ - -/* Some systems which include both getwd() and getcwd() have an implementation - of getwd() which is much faster than getcwd(). As a result, we use the - system's getwd() if it is available */ - -#include "system.h" - -/* Get the current working directory into PATHNAME */ - -char * -getwd (pathname) - char *pathname; -{ - char *getcwd(); - - return (getcwd(pathname, PATH_MAX)); -} -- cgit v1.2.3