2362N/A * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. 893N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 893N/A * This code is free software; you can redistribute it and/or modify it 893N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 893N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 893N/A * This code is distributed in the hope that it will be useful, but WITHOUT 893N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 893N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 893N/A * version 2 for more details (a copy is included in the LICENSE file that 893N/A * accompanied this code). 893N/A * You should have received a copy of the GNU General Public License version 893N/A * 2 along with this work; if not, write to the Free Software Foundation, 893N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 893N/A * Unix system and library calls. 893N/A // returns a NativeBuffer containing the given path 893N/A // buffer already contains the path 893N/A * char *getcwd(char *buf, size_t size); 893N/A * int open(const char* path, int oflag, mode_t mode) 893N/A * int openat(int dfd, const char* path, int oflag, mode_t mode) 893N/A * FILE* fopen(const char *filename, const char* mode); 893N/A * link(const char* existing, const char* new) 893N/A * unlink(const char* path) 893N/A * unlinkat(int dfd, const char* path, int flag) 893N/A * mknod(const char* path, mode_t mode, dev_t dev) 893N/A * rename(const char* old, const char* new) 893N/A * renameat(int fromfd, const char* old, int tofd, const char* new) 893N/A * mkdir(const char* path, mode_t mode) 893N/A * rmdir(const char* path) 893N/A * readlink(const char* path, char* buf, size_t bufsize) 893N/A * realpath(const char* path, char* resolved_name) 893N/A * @return resolved path 893N/A * symlink(const char* name1, const char* name2) 893N/A * stat(const char* path, struct stat* buf) 893N/A * lstat(const char* path, struct stat* buf) 893N/A * fstat(int filedes, struct stat* buf) 893N/A * fstatat(int filedes,const char* path, struct stat* buf, int flag) 893N/A * chown(const char* path, uid_t owner, gid_t group) 893N/A * lchown(const char* path, uid_t owner, gid_t group) 893N/A * fchown(int filedes, uid_t owner, gid_t group) 893N/A * chmod(const char* path, mode_t mode) 893N/A * fchmod(int fildes, mode_t mode) 893N/A * utimes(conar char* path, const struct timeval times[2]) 893N/A * futimes(int fildes,, const struct timeval times[2]) 893N/A * DIR *opendir(const char* dirname) 893N/A * DIR* fdopendir(int filedes) 893N/A * struct dirent* readdir(DIR *dirp) 893N/A * @return dirent->d_name 893N/A * size_t read(int fildes, void* buf, size_t nbyte) 893N/A * size_t writeint fildes, void* buf, size_t nbyte) 893N/A * access(const char* path, int amode); 893N/A * struct passwd *getpwuid(uid_t uid); 893N/A * @return passwd->pw_name 893N/A * struct group *getgrgid(gid_t gid); 893N/A * @return group->gr_name 893N/A * struct passwd *getpwnam(const char *name); 893N/A * @return passwd->pw_uid 893N/A * struct group *getgrnam(const char *name); 893N/A * @return group->gr_name 893N/A * statvfs(const char* path, struct statvfs *buf) 893N/A * long int pathconf(const char *path, int name); 893N/A * long fpathconf(int fildes, int name); 893N/A * char* strerror(int errnum) 1319N/A // indicates if openat, unlinkat, etc. is supported 1319N/A // initialize syscalls and fieldIDs 1319N/A // flags returned by init to indicate capabilities