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:
Axel Dörfler
2004-11-22 20:29:07 +00:00
parent cd3931efde
commit 8039d342ec
+6 -6
View File
@@ -1,6 +1,6 @@
/* /*
** Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2002-2004, Axel Dörfler, [email protected].
** Distributed under the terms of the OpenBeOS License. * Distributed under the terms of the MIT License.
*/ */
@@ -27,9 +27,9 @@ readlink(const char *path, char *buffer, size_t bufferSize)
int 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); RETURN_AND_SET_ERRNO(status);
} }
@@ -45,9 +45,9 @@ unlink(const char *path)
int 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); RETURN_AND_SET_ERRNO(status);
} }