All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.system.linux.UIO Maven / Gradle / Ivy

There is a newer version: 3.3.5
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.system.linux;

import org.lwjgl.system.*;

/** Native bindings to <sys/uio.h>. */
public class UIO {

    static { Library.initialize(); }

    public static final int UIO_FASTIOV = 8;

    public static final int UIO_MAXIOV = 1024;

    /**
     * Flags for {@code preadv2}/{@code pwritev2}.
     * 
     * 
Enum values:
* *
    *
  • {@link #RWF_HIPRI RWF_HIPRI} - High priority request.
  • *
  • {@link #RWF_DSYNC RWF_DSYNC} - per-IO {@link FCNTL#O_DSYNC}
  • *
  • {@link #RWF_SYNC RWF_SYNC} - per-IO {@link FCNTL#O_SYNC}
  • *
  • {@link #RWF_NOWAIT RWF_NOWAIT} - per-IO nonblocking mode
  • *
  • {@link #RWF_APPEND RWF_APPEND} - per-IO {@link FCNTL#O_APPEND}
  • *
*/ public static final int RWF_HIPRI = 0x1, RWF_DSYNC = 0x2, RWF_SYNC = 0x4, RWF_NOWAIT = 0x8, RWF_APPEND = 0x10; protected UIO() { throw new UnsupportedOperationException(); } // --- [ readv ] --- public static native long nreadv(int __fd, long __iovec, int __count); @NativeType("ssize_t") public static long readv(int __fd, @NativeType("struct iovec const *") IOVec __iovec, int __count) { return nreadv(__fd, __iovec.address(), __count); } // --- [ writev ] --- public static native long nwritev(int __fd, long __iovec, int __count); @NativeType("ssize_t") public static long writev(int __fd, @NativeType("struct iovec const *") IOVec __iovec, int __count) { return nwritev(__fd, __iovec.address(), __count); } // --- [ preadv ] --- public static native long npreadv(int __fd, long __iovec, int __count, long __offset); @NativeType("ssize_t") public static long preadv(int __fd, @NativeType("struct iovec const *") IOVec __iovec, int __count, @NativeType("off_t") long __offset) { return npreadv(__fd, __iovec.address(), __count, __offset); } // --- [ pwritev ] --- public static native long npwritev(int __fd, long __iovec, int __count, long __offset); @NativeType("ssize_t") public static long pwritev(int __fd, @NativeType("struct iovec const *") IOVec __iovec, int __count, @NativeType("off_t") long __offset) { return npwritev(__fd, __iovec.address(), __count, __offset); } // --- [ process_vm_readv ] --- /** Unsafe version of: {@link #process_vm_readv} */ public static native long nprocess_vm_readv(int __pid, long __lvec, long __liovcnt, long __rvec, long __riovcnt, long __flags); /** Read from another process' address space. */ @NativeType("ssize_t") public static long process_vm_readv(@NativeType("pid_t") int __pid, @NativeType("struct iovec const *") IOVec __lvec, @NativeType("unsigned long int") long __liovcnt, @NativeType("struct iovec const *") IOVec __rvec, @NativeType("unsigned long int") long __riovcnt, @NativeType("unsigned long int") long __flags) { return nprocess_vm_readv(__pid, __lvec.address(), __liovcnt, __rvec.address(), __riovcnt, __flags); } // --- [ process_vm_writev ] --- /** Unsafe version of: {@link #process_vm_writev} */ public static native long nprocess_vm_writev(int __pid, long __lvec, long __liovcnt, long __rvec, long __riovcnt, long __flags); /** Write to another process' address space. */ @NativeType("ssize_t") public static long process_vm_writev(@NativeType("pid_t") int __pid, @NativeType("struct iovec const *") IOVec __lvec, @NativeType("unsigned long int") long __liovcnt, @NativeType("struct iovec const *") IOVec __rvec, @NativeType("unsigned long int") long __riovcnt, @NativeType("unsigned long int") long __flags) { return nprocess_vm_writev(__pid, __lvec.address(), __liovcnt, __rvec.address(), __riovcnt, __flags); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy