Use POSIX functions instead of legacy ones:

getwd() -> getcwd()
	wait3() -> waitpid()
This commit is contained in:
Yaroslav Tykhiy 2004-11-17 22:43:46 +00:00
parent 973b9e347b
commit de9b6c0343

View File

@ -2553,7 +2553,7 @@ pwd(void)
{
char *s, path[MAXPATHLEN + 1];
if (getwd(path) == NULL)
if (getcwd(path, sizeof(path)) == NULL)
reply(550, "%s.", path);
else {
if ((s = doublequote(path)) == NULL)
@ -3130,7 +3130,7 @@ send_file_list(char *whichf)
void
reapchild(int signo)
{
while (wait3(NULL, WNOHANG, NULL) > 0);
while (waitpid(-1, NULL, WNOHANG) > 0);
}
#ifdef OLD_SETPROCTITLE