vfs: check userland buffers before reading them.
[haiku.git] / src / servers / package / Constants.h
blobe3057e0711ae5a31d87c0fe9f6471cc7404e7e57
1 /*
2 * Copyright 2014, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef CONSTANTS_H
6 #define CONSTANTS_H
9 #include <SupportDefs.h>
12 extern const char* const kPackageFileNameExtension;
13 extern const char* const kAdminDirectoryName;
14 extern const char* const kActivationFileName;
15 extern const char* const kTemporaryActivationFileName;
16 extern const char* const kWritableFilesDirectoryName;
17 extern const char* const kPackageFileAttribute;
18 extern const char* const kQueuedScriptsDirectoryName;
20 static const bigtime_t kHandleNodeMonitorEvents = 'nmon';
22 static const bigtime_t kNodeMonitorEventHandlingDelay = 500000;
23 static const bigtime_t kCommunicationTimeout = 1000000;
25 // sanity limit for activation file size
26 static const size_t kMaxActivationFileSize = 10 * 1024 * 1024;
29 #endif // CONSTANTS_H