01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
* goo ウェブ検索のログより、対象の単語と合わせてよく検索されるキーワードを抽出* 過去2週間分の検索ログから* 一定数のユーザ以上が利用した組み合わせが対象* 利用されなくなり、1週間で対象より削除* 日々更新* 入力された1キーワード目のワードに対しての補完です 2キーワード目以降は補完されません% svn co ...% cd putty% ./mkfiles.pl Recipe% cd unix(ちょっとゴニョゴニョ…)% svn diffIndex: uxnet.c===================================================================--- uxnet.c (revision 5272)+++ uxnet.c (working copy)@@ -17,6 +17,8 @@ #include <netdb.h> #include <sys/un.h> +#include <sys/sockio.h>+ #define DEFINE_PLUG_METHOD_MACROS #include "putty.h" #include "network.h"@@ -26,6 +28,10 @@ # define X11_UNIX_PATH "/tmp/.X11-unix/X" #endif +#ifndef AF_INET6+# define AF_INET6 26+#endif+ struct Socket_tag { struct socket_function_table *fn; /* the above variable absolutely *must* be the first in this structure */@@ -743,9 +749,9 @@ if (a.sin_addr.s_addr != (in_addr_t)(-1)) { /* Override localhost_only with specified listen addr. */ ret->localhost_only = ipv4_is_loopback(a.sin_addr);- got_addr = 1;+ /* got_addr = 1; */ }- addr = (struct sockaddr *)a;+ addr = (struct sockaddr *)&a; addrlen = sizeof(a); retcode = 0; #endifIndex: uxpty.c===================================================================--- uxpty.c (revision 5272)+++ uxpty.c (working copy)@@ -6,6 +6,8 @@ #define _XOPEN_SOURCE_EXTENDED #define _GNU_SOURCE +#include <sys/ttold.h>+ #include <stdio.h> #include <stdlib.h> #include <string.h>@@ -747,7 +749,9 @@ dup2(slavefd, 1); dup2(slavefd, 2); setsid();+#ifdef TIOCSCTTY ioctl(slavefd, TIOCSCTTY, 1);+#endif pgrp = getpid(); tcsetpgrp(slavefd, pgrp); setpgid(pgrp, pgrp);@@ -930,7 +934,9 @@ font_dimension(pty->frontend, 0); size.ws_ypixel = (unsigned short) pty->term_height * font_dimension(pty->frontend, 1);+#ifdef TIOCSWINSZ ioctl(pty->master_fd, TIOCSWINSZ, (void *)&size);+#endif return; } % make -f Makefile.gtk CC=gcc COMPAT="-DNO_IPV6 -DOMIT_UTMP -DHAVE_NO_SETRESUID" ULDFLAGS="-lnsl -lsocket"...gcc `gtk-config --libs` -o putty be_all.o cmdline.o config.o cproxy.o \ dialog.o fromucs.o gtkcols.o gtkdlg.o gtkpanel.o gtkwin.o \ ldisc.o ldiscucs.o localenc.o logging.o macenc.o mimeenc.o \ minibidi.o misc.o pinger.o portfwd.o proxy.o raw.o rlogin.o \ sbcs.o sbcsdat.o settings.o slookup.o ssh.o sshaes.o \ sshblowf.o sshbn.o sshcrc.o sshcrcda.o sshdes.o sshdh.o \ sshdss.o sshmd5.o sshpubk.o sshrand.o sshrsa.o sshsh512.o \ sshsha.o sshzlib.o telnet.o terminal.o time.o timing.o \ toucs.o tree234.o utf8.o ux_x11.o uxagentc.o uxcfg.o \ uxmisc.o uxnet.o uxnoise.o uxprint.o uxproxy.o uxputty.o \ uxsel.o uxsignal.o uxstore.o uxucs.o version.o wcwidth.o \ wildcard.o x11fwd.o xenc.o xkeysym.o未定義の 最初に参照しているシンボル ファイルXutf8TextPropertyToTextList gtkwin.oXutf8TextListToTextProperty gtkwin.old: 重大なエラー: シンボル参照エラー。putty に書き込まれる出力はありません。