Query: getlcid
OS: osx
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETLCID(2) BSD System Calls Manual GETLCID(2)NAMEgetlcid -- get login contextSYNOPSIS#include <sys/lctx.h> pid_t getlcid(pid_t pid);DESCRIPTIONThe login context of the process identified by pid is returned by getlcid(). If pid is zero, getlcid() returns the login context of the cur- rent process. Login contexts are used for tracking processes that originated from a users login session. A login context is inherited via fork() or by explicit creation using the setlcid() call.RETURN VALUESIf successful, getlcid() returns a non-negative integer, the Login Context ID; otherwise the value -1 is returned and the global variable errno is set to indicate the error.ERRORSThe getlcid() function will fail if: [EPERM] Operation not permitted. [ESRCH] No such process. [ENOATTR] Attribute not found.SEE ALSOsetlcid(2)HISTORYThe getlcid manual page first appeared in FreeBSD 6.0.AUTHORSThis manual page was written by Matthew N. Dodd <mdodd@FreeBSD.org>.BSDMay 5, 2005 BSD