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);
141 * unlink(const char* path)
143 static void unlink(UnixPath path) throws UnixException {
144 NativeBuffer buffer = copyToNativeBuffer(path);
154 * unlinkat(int dfd, const char* path, int flag)
156 static void unlinkat(int dfd, byte[] path, int flag) throws UnixException {
157 NativeBuffer buffer = NativeBuffers.asNativeBuffer(path);
168 * mknod(const char* path, mode_t mode, dev_t dev)
170 static void mknod(UnixPath path, int mode, long dev) throws UnixException {
171 NativeBuffer buffer = copyToNativeBuffer(path);
214 * mkdir(const char* path, mode_t mode)
216 static void mkdir(UnixPath path, int mode) throws UnixException {
217 NativeBuffer buffer = copyToNativeBuffer(path);
227 * rmdir(const char* path)
229 static void rmdir(UnixPath path) throws UnixException {
230 NativeBuffer buffer = copyToNativeBuffer(path);
240 * readlink(const char* path, char* buf, size_t bufsize)
244 static byte[] readlink(UnixPath path) throws UnixException {
245 NativeBuffer buffer = copyToNativeBuffer(path);
255 * realpath(const char* path, char* resolved_name)
257 * @return resolved path
259 static byte[] realpath(UnixPath path) throws UnixException {
260 NativeBuffer buffer = copyToNativeBuffer(path);
286 * stat(const char* path, struct stat* buf)
288 static void stat(UnixPath path, UnixFileAttributes attrs) throws UnixException {
289 NativeBuffer buffer = copyToNativeBuffer(path);
301 * stat(const char* path, struct stat* buf)
305 static int stat(UnixPath path) {
306 NativeBuffer buffer = copyToNativeBuffer(path);
317 * lstat(const char* path, struct stat* buf)
319 static void lstat(UnixPath path, UnixFileAttributes attrs) throws UnixException {
320 NativeBuffer buffer = copyToNativeBuffer(path);
336 * fstatat(int filedes,const char* path, struct stat* buf, int flag)
338 static void fstatat(int dfd, byte[] path, int flag, UnixFileAttributes attrs)
341 NativeBuffer buffer = NativeBuffers.asNativeBuffer(path);
352 * chown(const char* path, uid_t owner, gid_t group)
354 static void chown(UnixPath path, int uid, int gid) throws UnixException {
355 NativeBuffer buffer = copyToNativeBuffer(path);
366 * lchown(const char* path, uid_t owner, gid_t group)
368 static void lchown(UnixPath path, int uid, int gid) throws UnixException {
369 NativeBuffer buffer = copyToNativeBuffer(path);
385 * chmod(const char* path, mode_t mode)
387 static void chmod(UnixPath path, int mode) throws UnixException {
388 NativeBuffer buffer = copyToNativeBuffer(path);
404 * utimes(conar char* path, const struct timeval times[2])
406 static void utimes(UnixPath path, long times0, long times1)
409 NativeBuffer buffer = copyToNativeBuffer(path);
427 static long opendir(UnixPath path) throws UnixException {
428 NativeBuffer buffer = copyToNativeBuffer(path);
466 * access(const char* path, int amode);
468 static void access(UnixPath path, int amode) throws UnixException {
469 NativeBuffer buffer = copyToNativeBuffer(path);
479 * access(constant char* path, F_OK)
483 static boolean exists(UnixPath path) {
484 NativeBuffer buffer = copyToNativeBuffer(path);
539 * statvfs(const char* path, struct statvfs *buf)
541 static void statvfs(UnixPath path, UnixFileStoreAttributes attrs)
544 NativeBuffer buffer = copyToNativeBuffer(path);
555 * long int pathconf(const char *path, int name);
557 static long pathconf(UnixPath path, int name) throws UnixException {
558 NativeBuffer buffer = copyToNativeBuffer(path);