generalize dupfdopen() to allow dups and moves. from jsp

This commit is contained in:
cgd 1994-01-04 12:26:21 +00:00
parent 914aac9116
commit ba67215d35
3 changed files with 3 additions and 7 deletions

View File

@ -1 +1 @@
revision 1.11 intentionally removed
revision 1.12 intentionally removed

View File

@ -1 +1 @@
revision 1.10 intentionally removed
revision 1.11 intentionally removed

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)filedesc.h 7.4 (Berkeley) 5/4/91
* $Id: filedesc.h,v 1.5 1993/12/23 17:40:13 cgd Exp $
* $Id: filedesc.h,v 1.6 1994/01/04 12:26:46 cgd Exp $
*/
#ifndef _SYS_FILEDESC_H_
@ -100,12 +100,8 @@ int fdavail __P((struct proc *p, int n));
int falloc __P((struct proc *p, struct file **resultfp, int *resultfd));
struct filedesc *fdcopy __P((struct proc *p));
void fdfree __P((struct proc *p));
#ifdef notdef
int dupfdopen __P((struct filedesc *fdp, int indx, int dfd, int mode,
int error));
#else
int dupfdopen __P((struct filedesc *fdp, int indx, int dfd, int mode));
#endif
#endif
#endif /* !_SYS_FILEDESC_H_ */