Date: Mon, 1 May 1995 11:11:03 +0800 (HKT) From: John Beukema <jbeukema@HK.Super.Net> To: Hackers <hackers@FreeBSD.org> Subject: ftok.c and man page Message-ID: <Pine.SUN.3.91.950501110844.29294C-200000@is1.hk.super.net>
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. --1915892383-981972302-799297863=:29294 Content-Type: TEXT/PLAIN; charset=US-ASCII Sorry the last message did not have the attachment. enclosed is the ftok function and man page. jbeukema --1915892383-981972302-799297863=:29294 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="ftok.c" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.SUN.3.91.950501111103.29294D@is1.hk.super.net> Content-Description: RnJvbSBtcmxAdGVsZXBvcnQuY29tTW9uIE9jdCAzMSAwOTo0OToxNiAxOTk0 DQpEYXRlOiBTdW4sIDMwIE9jdCAxOTk0IDE3OjEyOjIwIC0wODAwIChQU1Qp DQpGcm9tOiAiTW9zdHluIFIuIExld2lzIiA8bXJsQHRlbGVwb3J0LmNvbT4N ClRvOiBqYmV1a2VtYUBISy5TdXBlci5ORVQNClN1YmplY3Q6IFJlOiBTWVNW IGZ0b2soKQ0KDQpTaXIsDQoNClRoaXMgbWF5IGJlIGEgYml0IG9sZCAtIEkg anVzdCBzYXcgeW91ciBtZXNzYWdlIGJ1dCBOZXRCU0QgaGFzIHRoZXNlIHJv dXRpbmVzDQppbiBsaWJjL2dlbi4gSSBlbmNsb3NlIHRoZSByb3V0aW5lIGFu ZCBtYW4gcGFnZSBmb3IgeW91ciBjb252ZW5pZW5jZS4NCg0KCQlNb3N0eW4N Ci0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1mdG9rLmMNCi8qDQogKiBD b3B5cmlnaHQgKGMpIDE5OTQgU2lnbWFTb2Z0LCBUaC4gTG9ja2VydCA8dGhv bG9Ac2lnbWFzb2Z0LmNvbT4NCiAqIE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m9yIHRoZSByb3V0aW5lIHRvIHJldHVy biBkdXBsaWNhdGUga2V5cw0KZ2l2ZW4gdGhhdCB0aG9zZSBmaWVsZHMgYXJl IG5vdCA4LSBhbmQgMTYtYml0IHF1YW50aXRpZXMgbGlrZSB0aGV5DQp3ZXJl IG9uIFN5c3RlbSBWIGJhc2VkIHN5c3RlbXMgd2hlcmUgdGhpcyBsaWJyYXJ5 IHJvdXRpbmUncyBhbmNlc3Rvcg0Kd2VyZSBvcmlnaW5hbGx5IGNyZWF0ZWQu DQo= --1915892383-981972302-799297863=:29294--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.950501110844.29294C-200000>