object stat
- Annotations
- @extern() @define("__SCALANATIVE_POSIX_SYS_STAT")
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- stat
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type blkcnt_t = Long
- type blksize_t = Size
- type dev_t = USize
- type gid_t = UInt
- type ino_t = ULong
- type mode_t = UInt
- type nlink_t = USize
- type off_t = Long
- type stat = CStruct13[dev_t, dev_t, ino_t, uid_t, gid_t, off_t, time.timespec, time.timespec, time.timespec, blkcnt_t, blksize_t, nlink_t, mode_t]
- type uid_t = UInt
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def S_IRGRP: mode_t
- Annotations
- @name("scalanative_s_irgrp")
- def S_IROTH: mode_t
- Annotations
- @name("scalanative_s_iroth")
- def S_IRUSR: mode_t
- Annotations
- @name("scalanative_s_irusr")
- def S_ISBLK(mode: mode_t): CInt
- Annotations
- @name("scalanative_s_isblk")
- def S_ISCHR(mode: mode_t): CInt
- Annotations
- @name("scalanative_s_ischr")
- def S_ISDIR(mode: mode_t): CInt
- Annotations
- @name("scalanative_s_isdir")
- def S_ISFIFO(mode: mode_t): CInt
- Annotations
- @name("scalanative_s_isfifo")
- def S_ISGID: mode_t
- Annotations
- @name("scalanative_s_isgid")
- def S_ISLNK(mode: mode_t): CInt
- Annotations
- @name("scalanative_s_islnk")
- def S_ISREG(mode: mode_t): CInt
- Annotations
- @name("scalanative_s_isreg")
- def S_ISSOCK(mode: mode_t): CInt
- Annotations
- @name("scalanative_s_issock")
- def S_ISUID: mode_t
- Annotations
- @name("scalanative_s_isuid")
- def S_ISVTX: mode_t
- Annotations
- @name("scalanative_s_isvtx")
- def S_IWGRP: mode_t
- Annotations
- @name("scalanative_s_iwgrp")
- def S_IWOTH: mode_t
- Annotations
- @name("scalanative_s_iwoth")
- def S_IWUSR: mode_t
- Annotations
- @name("scalanative_s_iwusr")
- def S_IXGRP: mode_t
- Annotations
- @name("scalanative_s_ixgrp")
- def S_IXOTH: mode_t
- Annotations
- @name("scalanative_s_ixoth")
- def S_IXUSR: mode_t
- Annotations
- @name("scalanative_s_ixusr")
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def chmod(pathname: CString, mode: mode_t): CInt
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fchmod(fd: CInt, mode: mode_t): CInt
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fstat(fildes: CInt, buf: Ptr[stat]): CInt
similar to stat, but different in that
fstatuses fd instead of path string.similar to stat, but different in that
fstatuses fd instead of path string.- Annotations
- @name("scalanative_fstat")
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lstat(path: CString, buf: Ptr[stat]): CInt
similar to stat, but different in that
lstatgets stat of the link itself instead of that of file the link refers to when path points to link.similar to stat, but different in that
lstatgets stat of the link itself instead of that of file the link refers to when path points to link.- Annotations
- @name("scalanative_lstat")
- def mkdir(path: CString, mode: mode_t): CInt
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def stat(path: CString, buf: Ptr[stat]): CInt
stat gets file metadata from path
stat gets file metadata from path
- path
path to file/directory
- buf
pointer to buffer into which stat struct is written.
- returns
Return
0on success. Otherwise return-1witherrnobeing set.errnocan be the followings:- EACCES(permission denied)
- EBADF(invalid filedes)
- EFAULT(wrong address)
- ELOOP(too many symbolic links)
- ENAMETOOLONG(too long name)
- ENOENT(path component not found or path is empty string)
- ENOMEM(kernel out of memory)
- ENOTDIR(path component is not a directory)
- Annotations
- @name("scalanative_stat")
import scala.scalanative.unsafe._ import scala.scalanative.posix.sys.stat Zone.acquire { implicit z => val s = alloc[stat.stat]() val code = stat.stat(filename,s) if (code == 0) { ??? } }
Example: - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()