Unix-system-calls-getresuid

提供:Dev Guides
移動先:案内検索

[top]#

|http://www.google.com/[Google] | a|

Web This Site
  • 初心者向けのUnix *
  • 高度なUnix *

選択した読書

Copyright©2014 by finddevguides

[cols=",,,,,,,",]

| |  Home   | |  References   | |  Discussion Forums   | |  About TP  

[width="100%",cols="100%",]

a| == getresuid()-Unix、Linuxシステムコール

[[File:]] image :http://www.finddevguides.com/images/next.gif [next] image:http://www.finddevguides.com/add- this.gif [AddThisソーシャルブックマークボタン]

広告

NAME

getresuid、getresgid-実際の、効果的で保存されたユーザーまたはグループIDを取得します

概要

  • #define _GNU_SOURCE * *#include <unistd.h> *
  • int getresuid(uid_t * ruid 、uid_t *euid 、uid_t *suid ); * * int getresgid(gid_t * rgid 、gid_t * egid 、gid_t * sgid ); *

説明

*getresuid* ()および *getresgid* ()(両方ともLinux 2.1.44で導入)は、実際のUID、有効なUID、および保存されたset-user-ID(それぞれ 現在のプロセスのグループID)。

返り値

成功すると、ゼロが返されます。 エラーの場合、-1が返され、_errno_が適切に設定されます。

エラー

Tag Description
EFAULT One of the arguments specified an address outside the calling program’s address space.

準拠

これらの呼び出しは非標準です。また、HP-UXおよび一部のBSDにも表示されます。

プロトタイプは、_GNU_SOURCEが定義されているバージョン2.3.2以降のglibcによって提供されます。

関連項目

[[File:]] image :http://www.finddevguides.com/images/next.gif [next] [[File:]]

広告

|  

[cols="^",]

|Advertisements