comparison common/portpath.h @ 975:b3695a3399de

(issue86) Install into default directories on Linux If the mozilla process is now started as root it will try to write into the default directories for NSS Shared and mozilla / thunderbird profiles. Cinst will now start the mozilla process once as root.
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 29 Aug 2014 12:59:44 +0200
parents 17e1c8f37d72
children faf58e9f518b
comparison
equal deleted inserted replaced
974:cbd32175c56c 975:b3695a3399de
33 * The buffer for the resolved path is allocated by this function and 33 * The buffer for the resolved path is allocated by this function and
34 * should be freed by the caller. 34 * should be freed by the caller.
35 * @param[in] path the original pathname 35 * @param[in] path the original pathname
36 * @returns a pointer to the resolved path or NULL on error 36 * @returns a pointer to the resolved path or NULL on error
37 */ 37 */
38 char *port_realpath(char *path); 38 char *port_realpath(const char *path);
39 39
40 /** 40 /**
41 * @brief test if a file exists 41 * @brief test if a file exists
42 * @details uses a platform specific stat call to test if the given 42 * @details uses a platform specific stat call to test if the given
43 * file exists. 43 * file exists.
53 * @param[in] path the path to the file 53 * @param[in] path the path to the file
54 * @returns true if the file is an directory and false otherwise 54 * @returns true if the file is an directory and false otherwise
55 */ 55 */
56 bool port_isdir(char *path); 56 bool port_isdir(char *path);
57 57
58 /**
59 * @brief create a directory
60 * @details uses a platform specific mkdir / access rights setup
61 * to create a directory that is world readable and
62 * writable by the current user / group
63 * @param[in] path the path to the directory
64 * @returns true if the directory was created
65 */
66 bool port_mkdir(const char *path);
67
58 #endif 68 #endif

http://wald.intevation.org/projects/trustbridge/