Lines Matching refs:buf
243 char buf[PATH_MAX+1];
246 char* cwd = getcwd(buf, sizeof(buf));
250 jsize len = (jsize)strlen(buf);
253 (*env)->SetByteArrayRegion(env, result, 0, len, (jbyte*)buf);
389 static void prepAttributes(JNIEnv* env, struct stat64* buf, jobject attrs) {
390 (*env)->SetIntField(env, attrs, attrs_st_mode, (jint)buf->st_mode);
391 (*env)->SetLongField(env, attrs, attrs_st_ino, (jlong)buf->st_ino);
392 (*env)->SetLongField(env, attrs, attrs_st_dev, (jlong)buf->st_dev);
393 (*env)->SetLongField(env, attrs, attrs_st_rdev, (jlong)buf->st_rdev);
394 (*env)->SetIntField(env, attrs, attrs_st_nlink, (jint)buf->st_nlink);
395 (*env)->SetIntField(env, attrs, attrs_st_uid, (jint)buf->st_uid);
396 (*env)->SetIntField(env, attrs, attrs_st_gid, (jint)buf->st_gid);
397 (*env)->SetLongField(env, attrs, attrs_st_size, (jlong)buf->st_size);
398 (*env)->SetLongField(env, attrs, attrs_st_atime, (jlong)buf->st_atime);
399 (*env)->SetLongField(env, attrs, attrs_st_mtime, (jlong)buf->st_mtime);
400 (*env)->SetLongField(env, attrs, attrs_st_ctime, (jlong)buf->st_ctime);
408 struct stat64 buf;
411 RESTARTABLE(stat64(path, &buf), err);
415 prepAttributes(env, &buf, attrs);
424 struct stat64 buf;
427 RESTARTABLE(lstat64(path, &buf), err);
431 prepAttributes(env, &buf, attrs);
440 struct stat64 buf;
442 RESTARTABLE(fstat64((int)fd, &buf), err);
446 prepAttributes(env, &buf, attrs);
455 struct stat64 buf;
462 RESTARTABLE((*my_fstatat64_func)((int)dfd, path, &buf, (int)flag), err);
466 prepAttributes(env, &buf, attrs);
626 struct dirent64 buf;
629 struct dirent64* ptr = &entry.buf;
831 struct statvfs64 buf;
835 RESTARTABLE(statvfs64(path, &buf), err);
839 (*env)->SetLongField(env, attrs, attrs_f_frsize, long_to_jlong(buf.f_frsize));
840 (*env)->SetLongField(env, attrs, attrs_f_blocks, long_to_jlong(buf.f_blocks));
841 (*env)->SetLongField(env, attrs, attrs_f_bfree, long_to_jlong(buf.f_bfree));
842 (*env)->SetLongField(env, attrs, attrs_f_bavail, long_to_jlong(buf.f_bavail));