タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

errorとunixに関するmakotot-riceballのブックマーク (1)

  • Linuxシステムコールの一覧と使い方

    accept #include <sys/types.h> #include <sys/socket.h> int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); bind #include <sys/types.h> #include <sys/socket.h> int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); close closeはファイルディスクリプタを閉じるシステムコールである。 #include <unistd.h> int close(int fd); 引数 fd クローズするファイルディスクリプタ 戻り値 ファイルディスクリプタのクローズに成功すると、openは0を返す。クローズに失敗すると-1を返し、er

  • 1