logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

geteuid.3p (2594B)


  1. '\" et
  2. .TH GETEUID "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. geteuid
  12. \(em get the effective user ID
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <unistd.h>
  17. .P
  18. uid_t geteuid(void);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIgeteuid\fR()
  23. function shall return the effective user ID of the calling process.
  24. The
  25. \fIgeteuid\fR()
  26. function shall not modify
  27. .IR errno .
  28. .SH "RETURN VALUE"
  29. The
  30. \fIgeteuid\fR()
  31. function shall always be successful and no return value is reserved to
  32. indicate an error.
  33. .SH ERRORS
  34. No errors are defined.
  35. .LP
  36. .IR "The following sections are informative."
  37. .SH EXAMPLES
  38. None.
  39. .SH "APPLICATION USAGE"
  40. None.
  41. .SH RATIONALE
  42. In a conforming environment,
  43. \fIgeteuid\fR()
  44. will always succeed. It is possible for implementations to provide
  45. an extension where a process in a non-conforming environment will
  46. not be associated with a user or group ID. It is recommended that such
  47. implementations return (\c
  48. .BR uid_t )\-1
  49. and set
  50. .IR errno
  51. to indicate such an environment; doing so does not violate
  52. this standard, since such an environment is already an extension.
  53. .SH "FUTURE DIRECTIONS"
  54. None.
  55. .SH "SEE ALSO"
  56. .IR "\fIgetegid\fR\^(\|)",
  57. .IR "\fIgetgid\fR\^(\|)",
  58. .IR "\fIgetuid\fR\^(\|)",
  59. .IR "\fIsetegid\fR\^(\|)",
  60. .IR "\fIseteuid\fR\^(\|)",
  61. .IR "\fIsetgid\fR\^(\|)",
  62. .IR "\fIsetregid\fR\^(\|)",
  63. .IR "\fIsetreuid\fR\^(\|)",
  64. .IR "\fIsetuid\fR\^(\|)"
  65. .P
  66. The Base Definitions volume of POSIX.1\(hy2017,
  67. .IR "\fB<sys_types.h>\fP",
  68. .IR "\fB<unistd.h>\fP"
  69. .\"
  70. .SH COPYRIGHT
  71. Portions of this text are reprinted and reproduced in electronic form
  72. from IEEE Std 1003.1-2017, Standard for Information Technology
  73. -- Portable Operating System Interface (POSIX), The Open Group Base
  74. Specifications Issue 7, 2018 Edition,
  75. Copyright (C) 2018 by the Institute of
  76. Electrical and Electronics Engineers, Inc and The Open Group.
  77. In the event of any discrepancy between this version and the original IEEE and
  78. The Open Group Standard, the original IEEE and The Open Group Standard
  79. is the referee document. The original Standard can be obtained online at
  80. http://www.opengroup.org/unix/online.html .
  81. .PP
  82. Any typographical or formatting errors that appear
  83. in this page are most likely
  84. to have been introduced during the conversion of the source files to
  85. man page format. To report such errors, see
  86. https://www.kernel.org/doc/man-pages/reporting_bugs.html .