Package lljvm.io

Examples of lljvm.io.FileHandle


     *                  for the newly created file (if applicable)
     * @return          the new file descriptor on success, -1 on error
     */
    public static int open(int pathname, int flags, int args) {
        String name = Memory.load_string(pathname);
        FileHandle fileHandle = ((flags & O_CREAT) != 0)
            ? fileSystem.open(name, flags, Memory.load_i32(args))
            : fileSystem.open(name, flags);
        if(fileHandle == null)
            return -1;
        return putFileHandle(fileHandle);
View Full Code Here

TOP

Related Classes of lljvm.io.FileHandle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.