.
D 2010-02-23T05:37:20
J icomment If\syou\suse\sstrace\son\sthat\sexample,\syou'll\snotice\sthat\sall\sthe\sOS-level\sI/O\sgoes\sproperly:\sthe\sfull\s48\sbytes\sof\sthe\sstream\sget\swritten\sand\sread\sover\sthe\spipe.\sSeven\sof\sthese\sbytes\sget\sout\sas\shahaha\\n;\sso\sit\sis\sreally\sa\squestion\sof\swhat\shappens\sto\sthose\sbuffered\slast\s41\sbytes\sand\sthe\ssubsequent\sEOF.\n\nwrite(4,\s"hahaha\\n\\37\\213\\10\\0\\0\\0\\0\\0\\0\\3\\355\\3011\\1\\0\\0\\0\\302\\240l\\353_\\312\\24~"...,\s48)\s=\s48\nclose(4)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s=\s0\nread(3,\s"hahaha\\n\\37\\213\\10\\0\\0\\0\\0\\0\\0\\3\\355\\3011\\1\\0\\0\\0\\302\\240l\\353_\\312\\24~"...,\s4096)\s=\s48\nwrite(2,\s"HEADER:hahaha",\s13HEADER:hahaha)\s\s\s\s\s\s\s\s\s\s\s=\s13\nwrite(2,\s"\\r\\n",\s2\n)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s=\s2\nwrite(2,\s"Now\sreading\sthrough\sgunzip",\s26Now\sreading\sthrough\sgunzip)\s=\s26\nwrite(2,\s"\\r\\n",\s2\n)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s=\s2\nread(3,\s"",\s4055)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s=\s0\n\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2762041fffffffffffffffffffffffffffffffff
U ferrieux
Z ea9ea37d68a022ef09a95b587ca1f447