insqueのヘルプ・マニュアル
日本語 英語
insque --help
man insque
INSQUE(3) Linux Programmer’s Manual INSQUE(3)
名前
insque, remque - キューにアイテムを挿入/削除する
書式
#include
void insque(void *elem, void *prev);
void remque(void *elem);
glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):
insque(), remque(): _SVID_SOURCE || _XOPEN_SOURCE >= 500
説明
insque() と remque() は双方向連結リスト (doubly-linked list) を操作する
関数である。リスト中のそれぞれの要素は、最初の二つの構造体要素が次と 前
へのポインタであるような構造体である。
insque() は elem で示される要素を prev で示される要素の直後に挿入する。
prev は NULL であってはならない。
remque() は elem で示される要素を双方向連結リストから取り除く。
準拠
POSIX.1-2001.
注意
伝統的に (SunOS, Linux libc 4,5 では) これらの関数の引数は struct qelem
*型であり、これは以下のように定義されている。
struct qelem {
struct qelem *q_forw;
struct qelem *q_back;
char q_data[1];
};
この定義は をインクルードする前に _GNU_SOURCE を定義すること
で得られる。
これらの関数のプロトタイプの置かれる場所は、Unix の種類により異なる。上
記 は POSIX 版である。 にあるシステムもある。 Linux libc4 と
libc5 は にプロトタイプを置いている。
2008-07-11 INSQUE(3)
INSQUE(3) Linux Programmer’s Manual INSQUE(3)
NAME
insque, remque - insert/remove an item from a queue
SYNOPSIS
#include
void insque(void *elem, void *prev);
void remque(void *elem);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
insque(), remque(): _SVID_SOURCE || _XOPEN_SOURCE >= 500
DESCRIPTION
insque() and remque() are functions for manipulating doubly-linked
lists. Each element in the list is a structure of which the first two
structure elements are a forward and a backward pointer.
insque() inserts the element pointed to by elem immediately after the
element pointed to by prev, which must not be NULL.
remque() removes the element pointed to by elem from the doubly-linked
list.
CONFORMING TO
POSIX.1-2001.
NOTES
Traditionally (e.g., SunOS, Linux libc 4 and libc 5), the arguments of
these functions were of type struct qelem *, defined as:
struct qelem {
struct qelem *q_forw;
struct qelem *q_back;
char q_data[1];
};
This is still what you will get if _GNU_SOURCE is defined before
including .
The location of the prototypes for these functions differs among sev-
eral versions of Unix. The above is the POSIX version. Some systems
place them in . Linux libc4 and libc 5 placed them in
.
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2008-07-11 INSQUE(3)