Lines Matching refs:path

38     // returns a NativeBuffer containing the given path
39 private static NativeBuffer copyToNativeBuffer(UnixPath path) {
40 byte[] cstr = path.getByteArrayForSysCalls();
46 // buffer already contains the path
47 if (buffer.owner() == path)
51 buffer.setOwner(path);
66 * int open(const char* path, int oflag, mode_t mode)
68 static int open(UnixPath path, int flags, int mode) throws UnixException {
69 NativeBuffer buffer = copyToNativeBuffer(path);
80 * int openat(int dfd, const char* path, int oflag, mode_t mode)
82 static int openat(int dfd, byte[] path, int flags, int mode) throws UnixException {
83 NativeBuffer buffer = NativeBuffers.asNativeBuffer(path);
136 * unlink(const char* path)
138 static void unlink(UnixPath path) throws UnixException {
139 NativeBuffer buffer = copyToNativeBuffer(path);
149 * unlinkat(int dfd, const char* path, int flag)
151 static void unlinkat(int dfd, byte[] path, int flag) throws UnixException {
152 NativeBuffer buffer = NativeBuffers.asNativeBuffer(path);
163 * mknod(const char* path, mode_t mode, dev_t dev)
165 static void mknod(UnixPath path, int mode, long dev) throws UnixException {
166 NativeBuffer buffer = copyToNativeBuffer(path);
209 * mkdir(const char* path, mode_t mode)
211 static void mkdir(UnixPath path, int mode) throws UnixException {
212 NativeBuffer buffer = copyToNativeBuffer(path);
222 * rmdir(const char* path)
224 static void rmdir(UnixPath path) throws UnixException {
225 NativeBuffer buffer = copyToNativeBuffer(path);
235 * readlink(const char* path, char* buf, size_t bufsize)
239 static byte[] readlink(UnixPath path) throws UnixException {
240 NativeBuffer buffer = copyToNativeBuffer(path);
250 * realpath(const char* path, char* resolved_name)
252 * @return resolved path
254 static byte[] realpath(UnixPath path) throws UnixException {
255 NativeBuffer buffer = copyToNativeBuffer(path);
281 * stat(const char* path, struct stat* buf)
283 static void stat(UnixPath path, UnixFileAttributes attrs) throws UnixException {
284 NativeBuffer buffer = copyToNativeBuffer(path);
295 * lstat(const char* path, struct stat* buf)
297 static void lstat(UnixPath path, UnixFileAttributes attrs) throws UnixException {
298 NativeBuffer buffer = copyToNativeBuffer(path);
314 * fstatat(int filedes,const char* path, struct stat* buf, int flag)
316 static void fstatat(int dfd, byte[] path, int flag, UnixFileAttributes attrs)
319 NativeBuffer buffer = NativeBuffers.asNativeBuffer(path);
330 * chown(const char* path, uid_t owner, gid_t group)
332 static void chown(UnixPath path, int uid, int gid) throws UnixException {
333 NativeBuffer buffer = copyToNativeBuffer(path);
344 * lchown(const char* path, uid_t owner, gid_t group)
346 static void lchown(UnixPath path, int uid, int gid) throws UnixException {
347 NativeBuffer buffer = copyToNativeBuffer(path);
363 * chmod(const char* path, mode_t mode)
365 static void chmod(UnixPath path, int mode) throws UnixException {
366 NativeBuffer buffer = copyToNativeBuffer(path);
382 * utimes(conar char* path, const struct timeval times[2])
384 static void utimes(UnixPath path, long times0, long times1)
387 NativeBuffer buffer = copyToNativeBuffer(path);
405 static long opendir(UnixPath path) throws UnixException {
406 NativeBuffer buffer = copyToNativeBuffer(path);
444 * access(const char* path, int amode);
446 static void access(UnixPath path, int amode) throws UnixException {
447 NativeBuffer buffer = copyToNativeBuffer(path);
501 * statvfs(const char* path, struct statvfs *buf)
503 static void statvfs(UnixPath path, UnixFileStoreAttributes attrs)
506 NativeBuffer buffer = copyToNativeBuffer(path);
517 * long int pathconf(const char *path, int name);
519 static long pathconf(UnixPath path, int name) throws UnixException {
520 NativeBuffer buffer = copyToNativeBuffer(path);