X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=io%2Fgetdirname.c;h=cc6dd9545cd0589a07dbc3889bd4b20d6a6491d1;hp=707380e43df8f4519ea1490299bd23f42287e5d0;hb=ed1a17b5f8d05b087e3e3b8185fde90514ecb30c;hpb=0b2ef19b3bac29c5baceb82955421a6ff4f9b609 diff --git a/io/getdirname.c b/io/getdirname.c index 707380e43d..cc6dd9545c 100644 --- a/io/getdirname.c +++ b/io/getdirname.c @@ -1,24 +1,23 @@ -/* Copyright (C) 1992 Free Software Foundation, Inc. -This file is part of the GNU C Library. +/* Copyright (C) 1992, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C Library 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 -Library General Public License for more details. + The GNU C Library 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 + Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ -#include #include -#include +#include #include #include @@ -27,7 +26,7 @@ Cambridge, MA 02139, USA. */ that value is used. */ char * -DEFUN_VOID(get_current_dir_name) +get_current_dir_name (void) { char *pwd; struct stat dotstat, pwdstat; @@ -41,5 +40,5 @@ DEFUN_VOID(get_current_dir_name) /* The PWD value is correct. Use it. */ return strdup (pwd); - return getcwd ((char *) NULL); + return getcwd ((char *) NULL, 0); }