Date: Mon, 29 Jun 1998 23:02:38 -0400 (EDT) From: Yee Man Chan <ymc@eecs.umich.edu> To: freebsd-hackers@FreeBSD.ORG Subject: Sorry Message-ID: <Pine.GSO.3.96.980629230057.1555A-200000@shivam.eecs.umich.edu>
next in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---559023410-851401618-899175758=:1555 Content-Type: TEXT/PLAIN; charset=US-ASCII I am sorry. The server.c I sent before had an extra 'v' at line 71. It won't compile. Attached is a compilable version. Sorry for the inconvenience. Yee Man ---559023410-851401618-899175758=:1555 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="server.c" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.GSO.3.96.980629230238.1555B@shivam.eecs.umich.edu> Content-Description: I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8ZXJybm8uaD4NCiNpbmNs dWRlIDxzdHJpbmcuaD4NCiNpbmNsdWRlIDxzaWduYWwuaD4NCiNpbmNsdWRl IDxmY250bC5oPg0KI2luY2x1ZGUgPGN0eXBlLmg+DQojaW5jbHVkZSA8dW5p c3RkLmg+DQojaW5jbHVkZSA8bGltaXRzLmg+DQojaW5jbHVkZSA8c3lzL3R5 cGVzLmg+DQojaW5jbHVkZSA8c3lzL3N0YXQuaD4NCiNpbmNsdWRlIDxzeXMv c29ja2V0Lmg+DQojaW5jbHVkZSA8bmV0aW5ldC9pbi5oPg0KI2luY2x1ZGUg PGFycGEvaW5ldC5oPg0KI2luY2x1ZGUgPG5ldGRiLmg+DQoNCiNkZWZpbmUg VElOX1BPUlQgNDg5OA0KDQppbnQgdGluZF9hcmdzKGludCBhcmdjLCBjaGFy ICphcmd2W10sIGludCAqcG9ydCwgaW50ICogYnl0ZXMpOw0KY2hhciAqIHNl bGVjdEFORHJlYWQoaW50IHRkLCBjaGFyICpidWYsIGludCBibGVuKTsNCnZv aWQgdGluZF91c2F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oY29ubiwgU09MX1NPQ0tFVCwgU09fUkVVU0VBRERSLCAoY2hh ciAqKSAmcmV1c2UsIHNpemVvZihpbnQpKSA8IDApIHsNCiAgICAgIHBlcnJv cigic2V0c29ja29wdCBlcnJvciEhISIpOw0KICAgICAgZXhpdCgxKTsNCiAg ICB9DQoNCiAgICBpZiAoYmluZChjb25uLCAoc3RydWN0IHNvY2thZGRyICop ICZzZWxmLCBzaXplb2Yoc3RydWN0IHNvY2thZGRyX2luKSkgPCAwKSB7DQog ICAgICBwZXJyb3IoImJpbmQgZXJyb3IhISEiKTsNCiAgICAgIGV4aXQoMSk7 DQogICAgfQ0KDQogICAgaWYgKGxpc3Rlbihjb25uLCA1KSA8IDApIHsNCiAg ICAgIHBlcnJvcigibGlzdGVuIGVycm9yISEhIik7DQogICAgICBleGl0KDEp Ow0KICAgIH0NCg0KDQogICAgbGVuID0gc2l6ZW9mKHN0cnVjdCBzb2NrYWRk cl9pbik7DQoNCiAgICByZCA9IGFjY2VwdChjb25uLCAoc3RydWN0IHNvY2th ZGRyICopICZjbGllbnQsICZsZW4pOw0KDQogICAgaWYgKHJkIDwgMCkgew0K ICAgICAgcGVycm9yKCJhY2NlcHQgZXJyb3IhISEiKTsNCiAgICAgIGV4aXQo MSk7DQogICAgfQ0KDQogICAgbWVtc2V0KGJ1ZiwgMCwgMjA0OCk7IA0KICAg IHNlbGVjdEFORHJlYWQocmQsIGJ1ZiwgYnl0ZXNUb1JlY2VpdmUpOw0KICAg IHByaW50ZigiJXMgZnJvbSBjbGllbnRcbiIsIGJ1Zik7DQogICAgc2VuZChy ZCwgYnVmLCBieXRlc1RvUmVjZWl2ZSwgMCk7DQogICAgY2xvc2UoY29ubik7 DQogICAgY2xvc2UocmQpOw0KICB9DQp9ICANCg0KY2hhciAqDQpzZWxlY3RB TkRyZWFkKGludCB0ZCwgY2hhciAqYnVmLCBpbnQgYmxlbikNCnsNCiAgaW50 IGk7DQogIGludCBlcnI7DQogIGNoYXIgKmJwOw0KIC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OVkFMOw0KICAgICAgYnJlYWs7DQogICAgfQ0KICB9DQoN CiAgcmV0dXJuKGVycm5vKTsNCn0NCg0K ---559023410-851401618-899175758=:1555-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.980629230057.1555A-200000>