return AUL_R_OK;
}
-extern "C" API int aul_proc_get_attr(pid_t pid, char* buf, size_t buf_size) {
- if (pid < 1 || buf == nullptr || buf_size <= 0) {
- _E("Invalid parameter");
- return AUL_R_EINVAL;
- }
-
- std::string path = "/proc/" + std::to_string(pid) + "/attr/current";
- return ReadFromPath(path, buf, buf_size);
-}
-
extern "C" API int aul_proc_get_cmdline(pid_t pid, char* buf, size_t buf_size) {
if (pid < 1 || buf == nullptr || buf_size <= 0) {
_E("Invalid parameter");
*/
int aul_proc_get_uid(pid_t pid, uid_t *uid);
-/**
- * @brief Gets the SMACK label of the process from the proc filesystem.
- * @since_tizen 6.5
- * @param[in] pid The process ID
- * @param[in] buf The buffer
- * @param[in] buf_size The size of the buffer
- * @return @c 0 on success,
- * otherwise a negative error value
- * @remarks This function is only for App Framework internally.
- */
-int aul_proc_get_attr(pid_t pid, char *buf, size_t buf_size);
-
/**
* @brief Gets the cmdline of the process from the proc filesystem.
* @since_tizen 6.5