path & toPath don't seem to be too clear. Fixed order or arguments to the
kernel syscall and renamed them to be less confusing. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10183 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||
** Distributed under the terms of the OpenBeOS License.
|
||||
*/
|
||||
/*
|
||||
* Copyright 2002-2004, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include <unistd.h>
|
||||
@@ -27,9 +27,9 @@ readlink(const char *path, char *buffer, size_t bufferSize)
|
||||
|
||||
|
||||
int
|
||||
symlink(const char *path, const char *toPath)
|
||||
symlink(const char *toPath, const char *symlinkPath)
|
||||
{
|
||||
int status = _kern_create_symlink(-1, path, toPath, 0);
|
||||
int status = _kern_create_symlink(-1, symlinkPath, toPath, 0);
|
||||
|
||||
RETURN_AND_SET_ERRNO(status);
|
||||
}
|
||||
@@ -45,9 +45,9 @@ unlink(const char *path)
|
||||
|
||||
|
||||
int
|
||||
link(const char *path, const char *toPath)
|
||||
link(const char *toPath, const char *linkPath)
|
||||
{
|
||||
int status = _kern_create_link(path, toPath);
|
||||
int status = _kern_create_link(linkPath, toPath);
|
||||
|
||||
RETURN_AND_SET_ERRNO(status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user