タグ

ブックマーク / www.linux.or.jp (10)

  • C editing with VIM HOWTO

    この文書は、C 言語やC++, Javaといった構文が似た他の言語で 書いたファイルを編集する際の入門編となるものです。 Table of Contents1. はじめに2. 動きまわる2.1. w, e, および b のキーストローク2.2. {, }, [[ と ]] のキーストローク2.3. % キーストローク3. C のファイルの中の勝手な位置にジャンプ3.1. ctags3.2. マーク3.3. gd キーストローク4. 単語の自動補完5. 自動的な整形5.1. 桁数の制限5.2. コードを自動的にインデントする5.3. 注釈6. 複数のファイルを編集する7. Quickfix8. 著作権9. 参考文献10. 日語版謝辞

    punitan
    punitan 2010/08/16
  • Manpage of POLL

    Section: Linux Programmer's Manual (2) Updated: 2008-04-23 Index JM Home Page roff page 名前 poll, ppoll - ファイルディスクリプタにおけるイベントを待つ 書式 #include <poll.h> int poll(struct pollfd *fds, nfds_t nfds, int timeout); #define _GNU_SOURCE #include <poll.h> int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask); 説明 poll() は select(2) と同様の仕事を行う、つまり、ファイルディスクリプタ集合のいずれか一

  • Manpage of SELECT

    Section: Linux Programmer's Manual (2) Updated: 2008-07-14 Index JM Home Page roff page 名前 select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO - 多重化された I/O の同期をとる 書式 /* POSIX.1-2001 に従う場合 */ #include <sys/select.h> /* 以前の規格に従う場合 */ #include <sys/time.h> #include <sys/types.h> #include <unistd.h> int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); voi

  • Manpage of ACCEPT

    Section: Linux Programmer's Manual (2) Updated: 2004-06-17 Index JM Home Page roff page 名前 accept - ソケットへの接続を受ける 書式 #include <sys/types.h> /* 「注意」参照 */ #include <sys/socket.h> int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); 説明 accept() システムコールは、接続指向のソケット型 (SOCK_STREAM, SOCK_SEQPACKET) で用いられる。 この関数は、接続待ちソケット socket 宛ての保留状態の接続要求が入っているキューから 先頭の接続要求を取り出し、接続済みソケットを新規に生成し、 そのソケットを参照する

  • Manpage of GETSOCKOPT

  • Manpage of GETADDRINFO

    Section: Linux Programmer's Manual (3) Updated: 2008-08-29 Index JM Home Page roff page 名前 getaddrinfo, freeaddrinfo, gai_strerror - ネットワークのアドレスとサービスを変換する 書式 #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> int getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res); void freeaddrinfo(struct addrinfo *res); const char *gai_strerror(i

  • Manpage of MEMMOVE

  • Manpage of SOCKET

    ソケットは type で指定される型を持ち、それは通信方式(semantics)を指定する。 定義されている型は現在以下の通り。 SOCK_STREAM 順序性と信頼性があり、双方向の、接続された バイト・ストリーム(byte stream)を提供する。 帯域外(out-of-band)データ転送メカニズムもサポートされる。 SOCK_DGRAM データグラム(接続、信頼性無し、固定最大長メッセージ) をサポートする。 SOCK_SEQPACKET 固定最大長のデータグラム転送パスに基づいた順序性、信頼性のある 双方向の接続に基づいた通信を提供する。受け取り側ではそれぞれの入力 システム・コールでパケット全体を読み取ることが要求される。 SOCK_RAW 生のネットワーク・プロトコルへのアクセスを提供する。 SOCK_RDM 信頼性はあるが、順序は保証しないデータグラム層を提供する。 SO

  • Manpage of MEMSET

  • Manpage of EPOLL

    EPOLL Section: Linux Programmer's Manual (7) Updated: 2008-02-28 Index JM Home Page roff page 名前 epoll - I/O イベント通知機能 書式 #include <sys/epoll.h> 説明 epoll は poll(2) の一種であり、エッジトリガインタフェースと レベルトリガインタフェースのどちらとしても使用することができ、 監視するファイルディスクリプタの数が多い場合にも使用できる。 epoll 集合を設定したり制御したりするために、 次の 3 つのシステムコールが提供されている: epoll_create(2), epoll_ctl(2), epoll_wait(2). epoll 集合は epoll_create(2) で作成されるファイルディスクリプタに接続される。 ファイルデ

  • 1