ensis2k
September 19th, 2008, 02:21 AM
Is there a way to tell from within C if the user who executed the app is a super user? Or to be more specific: Does my application has access to system functions like "mlockall".
I do not want to realize in the middle of my app that necessary functions do not work properly because of that. So at startup I want to specifically check if the app is allowed to do so and return a proper error message if not.
Thanks in advance.
I do not want to realize in the middle of my app that necessary functions do not work properly because of that. So at startup I want to specifically check if the app is allowed to do so and return a proper error message if not.
Thanks in advance.