2011-08-24 :-)
_ 午前
0930 起床
_ あのアニメ風ロゴを、自分でつくろう!【ジェネレーター集】 - NAVER まとめ
作ってみた。「けあんず」って
創聖のアクエリオン
Angel Beats!
BLEACH
エルシャダイ
涼宮ハルヒの憂鬱
変ゼミ
ひぐらしのなく頃に
ラブプラス
魔法少女まどか☆マギカ
NARUTO
日常
らき☆すた
とあるナントカ
とらドラ!
_ [NetBSD][stream]we don't have steram
環境
% uname -a NetBSD mogu.area51.gr.jp 5.1 NetBSD 5.1 (GENERIC) #0: Sun Nov 7 14:39:56 UTC 2010 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/i386/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386
詳細
via 詳解 UNIX プログラミング pp. 375-376
#include <stropts.h> #include <unistd.h> #include <sys/types.h> #include <sys/fcntl.h> #include "ourhdr.h" int isastream( int fd ) { return( ioctl( fd, I_CANPUT, 0 ) != -1 ); } int main( int argc, char* argv[] ) { int i; int fd; for( i = 1; i < argc; i++ ) { printf( "%s: ", argv[ i ] ); if( ( fd = open( argv[ i ], O_RDONLY ) ) < 0 ) { err_ret( "%s: can't open", argv[ i ] ); continue; } if( isastream( fd ) == 0 ) err_ret( "%s: not a stream", argv[ i ] ); else err_ret( "%s: stream", argv[ i ] ); } exit( 0 ); }
12/isastream0.c:1:21: error: stropts.h: No such file or directory 12/isastream0.c: In function 'isastream': 12/isastream0.c:11: error: 'I_CANPUT' undeclared (first use in this function) 12/isastream0.c:11: error: (Each undeclared identifier is reported only once 12/isastream0.c:11: error: for each function it appears in.)
ggrks
Comment it out. We don't have streams.
(´・ω・`)
% man putmsg man: no entry for putmsg in the manual.
(´・ω・`)
いいね!
いつも遊んでばかりでスンマセン (>'A`)>