Os.java revision 6fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4
1ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes/*
2ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes * Copyright (C) 2011 The Android Open Source Project
3ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes *
4ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes * Licensed under the Apache License, Version 2.0 (the "License");
5ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes * you may not use this file except in compliance with the License.
6ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes * You may obtain a copy of the License at
7ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes *
8ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes *      http://www.apache.org/licenses/LICENSE-2.0
9ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes *
10ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes * Unless required by applicable law or agreed to in writing, software
11ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes * distributed under the License is distributed on an "AS IS" BASIS,
12ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes * See the License for the specific language governing permissions and
14ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes * limitations under the License.
15ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes */
16ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes
17ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughespackage libcore.io;
18ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes
1952724d3ebd4ccaaa4b9f5576e329d4272cde8ea9Elliott Hughesimport java.io.FileDescriptor;
2052724d3ebd4ccaaa4b9f5576e329d4272cde8ea9Elliott Hughes
21ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughespublic interface Os {
22ddfdbb9d172fe9b72e08e8d7deab0aa3b8acf044Elliott Hughes    public boolean access(String path, int mode) throws ErrnoException;
23ddfdbb9d172fe9b72e08e8d7deab0aa3b8acf044Elliott Hughes    public String[] environ();
2452724d3ebd4ccaaa4b9f5576e329d4272cde8ea9Elliott Hughes    public void fdatasync(FileDescriptor fd) throws ErrnoException;
2547cb338d43f75dd998b29caaaa9446c5705217d1Elliott Hughes    public StructStat fstat(FileDescriptor fd) throws ErrnoException;
2652724d3ebd4ccaaa4b9f5576e329d4272cde8ea9Elliott Hughes    public void fsync(FileDescriptor fd) throws ErrnoException;
27ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes    public String getenv(String name);
2847cb338d43f75dd998b29caaaa9446c5705217d1Elliott Hughes    public StructStat lstat(String path) throws ErrnoException;
2947cb338d43f75dd998b29caaaa9446c5705217d1Elliott Hughes    public StructStat stat(String path) throws ErrnoException;
30ddfdbb9d172fe9b72e08e8d7deab0aa3b8acf044Elliott Hughes    public String strerror(int errno);
316fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4Elliott Hughes    public long sysconf(int name);
32ec617e2cb4a374f0fd8fbda4a633214cf23a59a9Elliott Hughes}
33