Package org.robolectric.shadows
Class ShadowLinux
java.lang.Object
org.robolectric.shadows.ShadowLinux
@Implements(value=libcore.io.Linux.class,
            minSdk=26,
            isInAndroidSdk=false)
public class ShadowLinux
extends Object
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StructStatfstat(FileDescriptor fd) protected StructStatprotected StructStatprotected FileDescriptormemfd_create(String name, int flags) voidprotected FileDescriptorprotected intpread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) 
- 
Constructor Details- 
ShadowLinuxpublic ShadowLinux()
 
- 
- 
Method Details- 
mkdir- Throws:
- ErrnoException
 
- 
stat- Throws:
- ErrnoException
 
- 
lstat- Throws:
- ErrnoException
 
- 
fstat- Throws:
- ErrnoException
 
- 
fstat- Throws:
- ErrnoException
 
- 
open@Implementation protected FileDescriptor open(String path, int flags, int mode) throws ErrnoException - Throws:
- ErrnoException
 
- 
memfd_create@Implementation(minSdk=30) protected FileDescriptor memfd_create(String name, int flags) throws ErrnoException - Throws:
- ErrnoException
 
- 
pread@Implementation protected int pread(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, long offset) throws ErrnoException, InterruptedIOException - Throws:
- ErrnoException
- InterruptedIOException
 
 
-