diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-01-04 15:27:05 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-01-04 15:27:05 +0200 |
commit | 33404070cd4d150874881d7bb3dbbe56d8153f90 (patch) | |
tree | 88233c901d0224018c99d65e2f649d315c999900 /misc/getwd.c | |
parent | bb803d630c585f5be8ed446da76dadcf717af1d7 (diff) | |
download | librpm-tizen-33404070cd4d150874881d7bb3dbbe56d8153f90.tar.gz librpm-tizen-33404070cd4d150874881d7bb3dbbe56d8153f90.tar.bz2 librpm-tizen-33404070cd4d150874881d7bb3dbbe56d8153f90.zip |
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
Diffstat (limited to 'misc/getwd.c')
-rw-r--r-- | misc/getwd.c | 29 |
1 files changed, 0 insertions, 29 deletions
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)); -} |