JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... d.h > int pthread_attr_setscope(pthread_attr_t * attr , int scope ); int pthread_attr_getscope(const pthread_attr_t * attr , int * scope ); -pthread でコン ... パイルしてリンクする。 説明 pthread_attr_setscope () 関数は、 attr が参照するスレッド属性オブジェクトの contention scope 属性を scope で指定された値に設定する。 contention ... scope 属性により、スレッドが CPU などのリソースを取り合うスレッド集合が規定される。 POSIX.1 では scope に指定する値として 2 つの値が規定されている。 PTHREAD_SCOPE_SYSTEM スレッドは、同じスケジューリング割り当てドメイン (一つ以 ... ... d.h > int pthread_attr_setscope(pthread_attr_t * attr , int scope ); int pthread_attr_getscope(const pthread_attr_t * attr , int * scope ); -pthread でコン ... パイルしてリンクする。 説明 pthread_attr_setscope () 関数は、 attr が参照するスレッド属性オブジェクトの contention scope 属性を scope で指定された値に設定する。 contention ... scope 属性により、スレッドが CPU などのリソースを取り合うスレッド集合が規定される。 POSIX.1 では scope に指定する値として 2 つの値が規定されている。 PTHREAD_SCOPE_SYSTEM スレッドは、同じスケジューリング割り当てドメイン (一つ以 ... ... unsigned char ifa_prefixlen; /* Prefixlength of address */ unsigned char ifa_flags; /* Address flags */ unsigned char ifa_scope; /* Address scope */ unsigned int ifa_index; /* Interface index */ }; ifa_family はアドレスファミリーのタイプである (現在は ... _INET6 )。 ifa_prefixlen はアドレスのアドレスマスクの長さである (IPv4 のように、 そのファミリーで定義されている場合)。 ifa_scope はアドレスのスコープである。 ifa_index はアドレスが関連づけられているインターフェースの index である。 ifa_flags はフラグワ ... * Routing table ID; see RTA_TABLE below */ unsigned char rtm_protocol; /* Routing protocol; see below */ unsigned char rtm_scope; /* See below */ unsigned char rtm_type; /* See below */ unsigned int rtm_flags; }; rtm_type 経路のタイプ RTN_UNSPEC 未知の ... ... o stack limit ==> default stack size is 2 MB unlimited $ ./a.out Thread attributes: Detach state = PTHREAD_CREATE_JOINABLE Scope = PTHREAD_SCOPE_SYSTEM Inherit scheduler = PTHREAD_INHERIT_SCHED Scheduling policy = SCHED_OTHER Scheduling priority = 0 G ... る。 $ ./a.out 0x3000000 posix_memalign() allocated at 0x40197000 Thread attributes: Detach state = PTHREAD_CREATE_DETACHED Scope = PTHREAD_SCOPE_SYSTEM Inherit scheduler = PTHREAD_EXPLICIT_SCHED Scheduling policy = SCHED_OTHER Scheduling priority = 0 ... ED) ? "PTHREAD_CREATE_DETACHED" : (i == PTHREAD_CREATE_JOINABLE) ? "PTHREAD_CREATE_JOINABLE" : "???"); s = pthread_attr_getscope(attr, &i); if (s != 0) handle_error_en(s, "pthread_attr_getscope"); printf("%sScope = %s\n", prefix, (i == PTHREAD_SCOPE_S ... ... o stack limit ==> default stack size is 2 MB unlimited $ ./a.out Thread attributes: Detach state = PTHREAD_CREATE_JOINABLE Scope = PTHREAD_SCOPE_SYSTEM Inherit scheduler = PTHREAD_INHERIT_SCHED Scheduling policy = SCHED_OTHER Scheduling priority = 0 G ... る。 $ ./a.out 0x3000000 posix_memalign() allocated at 0x40197000 Thread attributes: Detach state = PTHREAD_CREATE_DETACHED Scope = PTHREAD_SCOPE_SYSTEM Inherit scheduler = PTHREAD_EXPLICIT_SCHED Scheduling policy = SCHED_OTHER Scheduling priority = 0 ... ED) ? "PTHREAD_CREATE_DETACHED" : (i == PTHREAD_CREATE_JOINABLE) ? "PTHREAD_CREATE_JOINABLE" : "???"); s = pthread_attr_getscope(attr, &i); if (s != 0) handle_error_en(s, "pthread_attr_getscope"); printf("%sScope = %s\n", prefix, (i == PTHREAD_SCOPE_S ... ... number */ uint32_t sin6_flowinfo; /* IPv6 flow information */ struct in6_addr sin6_addr; /* IPv6 address */ uint32_t sin6_scope_id; /* Scope ID (new in 2.4) */ }; struct in6_addr { unsigned char s6_addr[16]; /* IPv6 address */ }; sin6_family は常に A ... 参照)。 sin6_flowinfo は IPv6 のフロー指定子 (flow identifier) である。 sin6_addr は 128 ビットの IPv6 アドレスである。 sin6_scope_id は アドレスのスコープに依存した ID である (これは Linux 2.4 で導入された)。 Linux の場合は、これはリンクローカルアドレス ... でのみサポートされている。 この場合 sin6_scope_id にはインターフェースのインデックスが含まれる ことになる ( netdevice (7) を参照)。 IPv6 は何種類かのアドレスタイプをサポ ... ... hostport ldap:// hostport / ldap:// hostport / dn ldap:// hostport / dn ? attributes ldap:// hostport / dn ? attributes ? scope ldap:// hostport / dn ? attributes ? scope ? filter ldap:// hostport / dn ? attributes ? scope ? filter ? extensions このス ... s コンマ区切りの、返される属性 (attribute) のリスト。 RFC 2251 の section 4.1.5 を見よ。省略されると全ての属性が返される。 scope 検索のスコープを指定する。 "base" (base オブジェクト検索), "one" (1 レベル検索), "sub" (サブツリー検索) のいずれかを指定す ... ... hostport ldap:// hostport / ldap:// hostport / dn ldap:// hostport / dn ? attributes ldap:// hostport / dn ? attributes ? scope ldap:// hostport / dn ? attributes ? scope ? filter ldap:// hostport / dn ? attributes ? scope ? filter ? extensions このス ... s コンマ区切りの、返される属性 (attribute) のリスト。 RFC 2251 の section 4.1.5 を見よ。省略されると全ての属性が返される。 scope 検索のスコープを指定する。 "base" (base オブジェクト検索), "one" (1 レベル検索), "sub" (サブツリー検索) のいずれかを指定す ... ... hostport ldap:// hostport / ldap:// hostport / dn ldap:// hostport / dn ? attributes ldap:// hostport / dn ? attributes ? scope ldap:// hostport / dn ? attributes ? scope ? filter ldap:// hostport / dn ? attributes ? scope ? filter ? extensions このス ... s コンマ区切りの、返される属性 (attribute) のリスト。 RFC 2251 の section 4.1.5 を見よ。省略されると全ての属性が返される。 scope 検索のスコープを指定する。 "base" (base オブジェクト検索), "one" (1 レベル検索), "sub" (サブツリー検索) のいずれかを指定す ... ... 標準の atexit (3) を使うこと。 注意 By the time function is executed, stack ( auto ) variables may already have gone out of scope. Therefore, arg should not be a pointer to a stack variable; it may however be a pointer to a heap variable or a global va ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。