| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // os.umask(alue) calls the umask system call and returns the old umask. | 168 // os.umask(alue) calls the umask system call and returns the old umask. |
| 169 // | 169 // |
| 170 // os.mkdirp(name, mask) creates a directory. The mask (if present) is anded | 170 // os.mkdirp(name, mask) creates a directory. The mask (if present) is anded |
| 171 // with the current umask. Intermediate directories are created if necessary. | 171 // with the current umask. Intermediate directories are created if necessary. |
| 172 // An exception is not thrown if the directory already exists. Analogous to | 172 // An exception is not thrown if the directory already exists. Analogous to |
| 173 // the "mkdir -p" command. | 173 // the "mkdir -p" command. |
| 174 static Handle<Value> OSObject(const Arguments& args); | 174 static Handle<Value> OSObject(const Arguments& args); |
| 175 static Handle<Value> System(const Arguments& args); | 175 static Handle<Value> System(const Arguments& args); |
| 176 static Handle<Value> ChangeDirectory(const Arguments& args); | 176 static Handle<Value> ChangeDirectory(const Arguments& args); |
| 177 static Handle<Value> SetEnvironment(const Arguments& args); | 177 static Handle<Value> SetEnvironment(const Arguments& args); |
| 178 static Handle<Value> UnsetEnvironment(const Arguments& args); |
| 178 static Handle<Value> SetUMask(const Arguments& args); | 179 static Handle<Value> SetUMask(const Arguments& args); |
| 179 static Handle<Value> MakeDirectory(const Arguments& args); | 180 static Handle<Value> MakeDirectory(const Arguments& args); |
| 180 static Handle<Value> RemoveDirectory(const Arguments& args); | 181 static Handle<Value> RemoveDirectory(const Arguments& args); |
| 181 | 182 |
| 182 static void AddOSMethods(Handle<ObjectTemplate> os_template); | 183 static void AddOSMethods(Handle<ObjectTemplate> os_template); |
| 183 | 184 |
| 184 static Handle<Context> utility_context() { return utility_context_; } | 185 static Handle<Context> utility_context() { return utility_context_; } |
| 185 | 186 |
| 186 static const char* kHistoryFileName; | 187 static const char* kHistoryFileName; |
| 187 static const char* kPrompt; | 188 static const char* kPrompt; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 216 const char* name_; | 217 const char* name_; |
| 217 LineEditor* next_; | 218 LineEditor* next_; |
| 218 static LineEditor* first_; | 219 static LineEditor* first_; |
| 219 }; | 220 }; |
| 220 | 221 |
| 221 | 222 |
| 222 } // namespace v8 | 223 } // namespace v8 |
| 223 | 224 |
| 224 | 225 |
| 225 #endif // V8_D8_H_ | 226 #endif // V8_D8_H_ |
| OLD | NEW |