=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/compress/Attic/zopen.3,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/compress/Attic/zopen.3 1996/06/26 05:32:21 1.2 +++ src/usr.bin/compress/Attic/zopen.3 1996/09/22 20:05:18 1.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: zopen.3,v 1.2 1996/06/26 05:32:21 deraadt Exp $ +.\" $OpenBSD: zopen.3,v 1.3 1996/09/22 20:05:18 tholo Exp $ .\" $NetBSD: zopen.3,v 1.3 1995/03/26 09:44:49 glass Exp $ .\" .\" Copyright (c) 1992, 1993 @@ -44,6 +44,8 @@ .Fd #include .Ft FILE * .Fn zopen "const char *path" "const char *mode" "int bits" +.Ft FILE * +.Fn zdopen "int fd" "const char *mode" "int bits" .Sh DESCRIPTION The .Fn zopen @@ -52,6 +54,13 @@ .Fa path and associates a stream with it. .Pp +The +.Fn zdopen +function +opens the compressed file whose file descriptor is given in +.Fa fd +and associates a stream with it. +.Pp The argument .Fa mode points to one of the following one-character strings: @@ -137,6 +146,8 @@ .Sh BUGS The .Fn zopen -function +and +.Fn zdopen +functions may not be portable to systems other than .Bx .