Unix-system-calls-getdomainname
提供:Dev Guides
[top]#
|http://www.google.com/[Google] | a|
Web | This Site |
選択した読書 Copyright©2014 by finddevguides |
[cols=",,,,,,,",] |
| | Home | | References | | Discussion Forums | | About TP
[width="100%",cols="100%",] |
a| == getdomainname()-Unix、Linuxシステムコール
[[File:]] image :http://www.finddevguides.com/images/next.gif [next] image:http://www.finddevguides.com/add- this.gif [AddThisソーシャルブックマークボタン]
広告
NAME
getdomainname、setdomainname-ドメイン名の取得/設定
概要
- #include <unistd.h> *
- int getdomainname(char * name 、size_t len ); * *int setdomainname(const char * name 、size_t len *);
説明
これらの関数は、現在のプロセッサのドメイン名へのアクセスまたは変更に使用されます。 ヌルで終わるドメイン名が_len_バイト以上必要な場合、 getdomainname ()は最初の_len_バイト(glibc)を返すか、エラー(libc)を返します。
返り値
成功すると、ゼロが返されます。 エラーの場合、-1が返され、_errno_が適切に設定されます。
エラー
Tag | Description |
---|---|
*EFAULT * | For* setdomainname*(): name pointed outside of user address space. |
*EINVAL * | For* getdomainname*() under libc: name is NULL or name is longer than len bytes. |
*EINVAL * | For* setdomainname*(): len was negative or too large. |
*EPERM * | For* setdomainname*(): the caller is unprivileged (Linux: does not have the CAP_SYS_ADMIN capability). |
準拠
POSIXはこれらの呼び出しを指定しません。
関連項目
[[File:]] image :http://www.finddevguides.com/images/next.gif [next] [[File:]]
広告
|
[cols="^",] |
|Advertisements