Searched refs:file (Results 301 - 325 of 1222) sorted by relevance

<<11121314151617181920>>

/openjdk7/hotspot/src/share/vm/utilities/
H A DelfSymbolTable.cpp12 * version 2 for more details (a copy is included in the LICENSE file that
32 ElfSymbolTable::ElfSymbolTable(FILE* file, Elf_Shdr shdr) { argument
33 assert(file, "null file handle");
36 m_file = file;
40 long cur_offset = ftell(file);
45 if (fseek(file, shdr.sh_offset, SEEK_SET) ||
46 fread((void*)m_symbols, shdr.sh_size, 1, file) != 1 ||
47 fseek(file, cur_offset, SEEK_SET)) {
/openjdk7/jdk/src/solaris/native/com/sun/media/sound/
H A DPLATFORM_API_BsdOS_ALSA_CommonUtils.c8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
31 static void alsaDebugOutput(const char *file, int line, const char *function, int err, const char *fmt, ...) { argument
35 printf("%s:%d function %s: error %d: %s\n", file, line, function, err, snd_strerror(err));
135 FILE* file; local
137 file = fopen(ALSA_VERSION_PROC_FILE, "r");
139 if (file) {
140 if (NULL != fgets(ALSAVersionString, ALSAVersionString_LENGTH, file)) {
174 fclose(file);
[all...]
H A DPLATFORM_API_LinuxOS_ALSA_CommonUtils.c8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
31 static void alsaDebugOutput(const char *file, int line, const char *function, int err, const char *fmt, ...) { argument
35 printf("%s:%d function %s: error %d: %s\n", file, line, function, err, snd_strerror(err));
135 FILE* file; local
137 file = fopen(ALSA_VERSION_PROC_FILE, "r");
139 if (file) {
140 if (NULL != fgets(ALSAVersionString, ALSAVersionString_LENGTH, file)) {
174 fclose(file);
[all...]
/openjdk7/jdk/test/java/nio/file/PathMatcher/
H A DBasic.java12 * version 2 for more details (a copy is included in the LICENSE file that
26 * @summary Unit test for java.nio.file.PathMatcher
29 import java.nio.file.*;
37 Path file = Paths.get(name);
38 boolean matched = file.getFileSystem()
39 .getPathMatcher("glob:" + pattern).matches(file);
73 Path file = Paths.get(path);
74 boolean matched = file.getFileSystem()
75 .getPathMatcher("regex:" + pattern).matches(file);
127 // assume special characters are allowed in file name
[all...]
/openjdk7/jdk/test/java/nio/file/WatchService/
H A DSensitivityModifier.java12 * version 2 for more details (a copy is included in the LICENSE file that
31 import java.nio.file.*;
32 import static java.nio.file.StandardWatchEventKinds.*;
37 import com.sun.nio.file.SensitivityWatchEventModifier;
69 files[i] = Files.createFile(dir.resolve("file" + i));
75 // sleep a bit here to ensure that modification to the first file
82 Path file = files[rand.nextInt(nFiles)];
83 System.out.println("Modify: " + file);
84 try (OutputStream out = Files.newOutputStream(file)) {
93 if (!name.equals(file
[all...]
/openjdk7/jdk/test/java/nio/file/attribute/DosFileAttributeView/
H A DBasic.java12 * version 2 for more details (a copy is included in the LICENSE file that
26 * @summary Unit test for java.nio.file.attribute.DosFileAttributeView
30 import java.nio.file.*;
31 import static java.nio.file.LinkOption.*;
32 import java.nio.file.attribute.*;
77 Path file = Files.createFile(dir.resolve("foo"));
79 testAttributes(Files.getFileAttributeView(file, DosFileAttributeView.class));
86 Files.createSymbolicLink(link, file);
134 TestUtil.deleteUnchecked(file);
143 // skip test if DOS file attribute
[all...]
/openjdk7/jdk/test/sun/net/www/protocol/jar/jarbug/src/test/
H A DJarTest.java12 * version 2 for more details (a copy is included in the LICENSE file that
56 File file = null;
60 file = new File(dir, resName);
62 fileOut = new FileOutputStream(file);
86 return file;
103 protected boolean deleteRecursively(File file) { argument
107 children = file.listFiles();
113 result = result && file.delete();
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/
H A DLinuxFileStore.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
28 import java.nio.file.attribute.*;
43 LinuxFileStore(UnixPath file) throws IOException { argument
44 super(file);
52 * Finds, and returns, the mount entry for the file system where the file
57 LinuxFileSystem fs = (LinuxFileSystem)file().getFileSystem();
62 byte[] rp = UnixNativeDispatcher.realpath(file());
[all...]
/openjdk7/langtools/test/tools/javap/
H A DT6879371.java12 * version 2 for more details (a copy is included in the LICENSE file that
27 * @summary javap does not close internal default file manager
40 // a test zip file and know that it will be used by
79 void compileTestFile(File classDir, File file) { argument
81 new String[] { "-d", classDir.getPath(), file.getPath() });
88 for (File file: dir.listFiles()) {
89 if (file.isFile()) {
90 byte[] data = new byte[(int) file.length()];
91 DataInputStream in = new DataInputStream(new FileInputStream(file));
94 zipOut.putNextEntry(new ZipEntry(file
[all...]
/openjdk7/jdk/src/share/back/
H A Dlog_messages.c8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
74 file_basename(const char *file) argument
79 if ( file==NULL )
81 p1 = strrchr(file, '\\');
82 p2 = strrchr(file, '/');
85 file = p1 + 1;
87 return file;
92 fill_location_stamp(const char *flavor, const char *file, in argument
102 log_message_begin(const char *flavor, const char *file, int line) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/jxc/apt/
H A DSchemaGenerator.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
112 File file;
115 file = schemaLocations.get(namespaceUri);
116 if(file==null) return null; // don't generate
117 out = new FileOutputStream(file);
120 file = new File(suggestedFileName);
121 out = env.getFiler().createBinaryFile(Filer.Location.CLASS_TREE,"",file);
122 file
[all...]
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/
H A DLotsOfWrites.java12 * version 2 for more details (a copy is included in the LICENSE file that
31 import static java.nio.file.StandardOpenOption.*;
40 * Asynchronously writes a known pattern to a file up to a given size,
44 private final File file; field in class:LotsOfWrites.Writer
75 Writer(File file, long size, CountDownLatch latch) throws IOException { argument
76 this.file = file;
79 this.channel = AsynchronousFileChannel.open(file.toPath(), WRITE);
82 File file() { method in class:LotsOfWrites.Writer
83 return file;
[all...]
/openjdk7/jdk/make/javax/swing/plaf/
H A DMakefile8 # particular file as subject to the "Classpath" exception as provided
9 # by Oracle in the LICENSE file that accompanied this code.
14 # version 2 for more details (a copy is included in the LICENSE file that
103 $(install-file)
106 $(install-file)
109 $(install-file)
115 $(install-file)
118 $(install-file)
121 $(install-file)
124 $(install-file)
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/classfile/
H A DConstantValue.java85 * Construct object from file stream.
88 * @param file Input stream
92 ConstantValue(int name_index, int length, DataInputStream file, argument
95 this(name_index, length, (int)file.readUnsignedShort(), constant_pool);
123 * Dump constant value attribute to file stream on binary format.
125 * @param file Output file stream
128 public final void dump(DataOutputStream file) throws IOException argument
130 super.dump(file);
131 file
[all...]
/openjdk7/jdk/test/java/io/FileOutputStream/
H A DAtomicAppend.java12 * version 2 for more details (a copy is included in the LICENSE file that
43 final File file = new File("foo");
44 file.delete();
50 try (FileOutputStream s = new FileOutputStream(file, true)) {
59 equal(file.length(), (long) (nThreads * writes));
61 file.delete();
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DInterruptDeadlock.java12 * version 2 for more details (a copy is included in the LICENSE file that
32 import java.nio.file.*;
33 import static java.nio.file.StandardOpenOption.*;
86 Path file = Paths.get("data.txt");
87 try (FileChannel fc = FileChannel.open(file, CREATE, TRUNCATE_EXISTING, WRITE)) {
97 try (FileChannel fc = FileChannel.open(file)) {
/openjdk7/langtools/test/com/sun/javadoc/AccessAsciiArt/
H A DAccessAsciiArt.java12 * version 2 for more details (a copy is included in the LICENSE file that
40 * It reads each file, complete with newlines, into a string to easily
47 private static final String FS = System.getProperty("file.separator");
108 // Read contents of file into a string
114 // Find string in file's contents
136 // Read the file into a String
139 File file = new File(filename);
140 if ( !file.exists() ) {
143 BufferedReader in = new BufferedReader(new FileReader(file));
145 // Create an array of characters the size of the file
[all...]
/openjdk7/langtools/test/com/sun/javadoc/AccessFrameTitle/
H A DAccessFrameTitle.java12 * version 2 for more details (a copy is included in the LICENSE file that
40 * It reads each file, complete with newlines, into a string to easily
47 private static final String FS = System.getProperty("file.separator");
107 // Read contents of file into a string
113 // Find string in file's contents
135 // Read the file into a String
138 File file = new File(filename);
139 if ( !file.exists() ) {
142 BufferedReader in = new BufferedReader(new FileReader(file));
144 // Create an array of characters the size of the file
[all...]
/openjdk7/langtools/test/com/sun/javadoc/AccessH1/
H A DAccessH1.java12 * version 2 for more details (a copy is included in the LICENSE file that
40 * It reads each file, complete with newlines, into a string to easily
47 private static final String FS = System.getProperty("file.separator");
105 // Read contents of file into a string
111 // Find string in file's contents
133 // Read the file into a String
136 File file = new File(filename);
137 if ( !file.exists() ) {
140 BufferedReader in = new BufferedReader(new FileReader(file));
142 // Create an array of characters the size of the file
[all...]
/openjdk7/langtools/test/com/sun/javadoc/AuthorDD/
H A DAuthorDD.java12 * version 2 for more details (a copy is included in the LICENSE file that
40 * It reads each file, complete with newlines, into a string to easily
47 private static final String FS = System.getProperty("file.separator");
105 // Read contents of file into a string
111 // Find string in file's contents
133 // Read the file into a String
136 File file = new File(filename);
137 if ( !file.exists() ) {
140 BufferedReader in = new BufferedReader(new FileReader(file));
142 // Create an array of characters the size of the file
[all...]
/openjdk7/langtools/test/com/sun/javadoc/VersionNumber/
H A DVersionNumber.java12 * version 2 for more details (a copy is included in the LICENSE file that
40 * It reads each file, complete with newlines, into a string to easily
47 private static final String FS = System.getProperty("file.separator");
98 // Read contents of file into a string
104 // Find string in file's contents
126 // Read the file into a String
129 File file = new File(filename);
130 if ( !file.exists() ) {
133 BufferedReader in = new BufferedReader(new FileReader(file));
135 // Create an array of characters the size of the file
[all...]
/openjdk7/jdk/src/share/sample/nio/file/
H A DXdd.java43 import java.nio.file.*;
44 import java.nio.file.attribute.*;
48 * Example code to list/set/get/delete the user-defined attributes of a file.
54 System.out.println("Usage: java Xdd <file>");
55 System.out.println(" java Xdd -set <name>=<value> <file>");
56 System.out.println(" java Xdd -get <name> <file>");
57 System.out.println(" java Xdd -del <name> <file>");
66 Path file = (args.length == 1) ?
69 // check that user defined attributes are supported by the file store
70 FileStore store = Files.getFileStore(file);
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/util/
H A DConstantHTML.java66 * Convert constant pool into HTML file.
75 private PrintWriter file; // file to write to field in class:ConstantHTML
88 file = new PrintWriter(new FileOutputStream(dir + class_name + "_cp.html"));
92 file.println("<HTML><BODY BGCOLOR=\"#C0C0C0\"><TABLE BORDER=0>");
97 file.print("<TR BGCOLOR=\"#C0C0C0\"><TD>");
99 file.print("<TR BGCOLOR=\"#A0A0A0\"><TD>");
104 file.print("</TD></TR>\n");
107 file.println("</TABLE></BODY></HTML>");
108 file
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/file/
H A DRegularFileObject.java8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
26 package com.sun.tools.javac.file;
58 final File file; field in class:RegularFileObject
71 this.file = f;
76 return file.toURI().normalize();
81 return file.getPath();
96 return new FileInputStream(file);
103 return new FileOutputStream(file);
[all...]
/openjdk7/jdk/test/java/nio/file/DirectoryStream/
H A DSecureDS.java12 * version 2 for more details (a copy is included in the LICENSE file that
26 * @summary Unit test for java.nio.file.SecureDirectoryStream
30 import java.nio.file.*;
31 import static java.nio.file.Files.*;
32 import static java.nio.file.StandardOpenOption.*;
33 import static java.nio.file.LinkOption.*;
34 import java.nio.file.attribute.*;
69 // create a file, directory, and two sym links in the directory
241 Path file = Paths.get("file");
[all...]

Completed in 99 milliseconds

<<11121314151617181920>>