1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Sync with sys/i386/isa/fd.c revision 1.112.

This commit is contained in:
KATO Takenori 1998-05-07 08:36:48 +00:00
parent 7be2d30077
commit 0b9df1bef1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35825
2 changed files with 10 additions and 8 deletions

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.29 1998/04/20 13:50:58 kato Exp $
* $Id: fd.c,v 1.30 1998/04/22 10:25:21 julian Exp $
*
*/
@ -429,7 +429,8 @@ static struct slice_handler slicetype = {
NULL, /* revoke */
NULL, /* claim */
NULL, /* verify */
NULL /* upconfig */
NULL, /* upconfig */
NULL /* dump */
};
#endif /* SLICE */
@ -2629,9 +2630,9 @@ fdsopen(void *private, int flags, int mode, struct proc *p)
sd = private;
if((flags & (FREAD|FWRITE)) != 0) {
return(Fdopen(makedev(0,sd->minor), 0 , 0, p));
return(Fdopen(makedev(0,sd->minor), flags , mode, p));
} else {
return(fdclose(makedev(0,sd->minor), 0 , 0, p));
return(fdclose(makedev(0,sd->minor), 0 , mode, p));
}
}

View File

@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.29 1998/04/20 13:50:58 kato Exp $
* $Id: fd.c,v 1.30 1998/04/22 10:25:21 julian Exp $
*
*/
@ -429,7 +429,8 @@ static struct slice_handler slicetype = {
NULL, /* revoke */
NULL, /* claim */
NULL, /* verify */
NULL /* upconfig */
NULL, /* upconfig */
NULL /* dump */
};
#endif /* SLICE */
@ -2629,9 +2630,9 @@ fdsopen(void *private, int flags, int mode, struct proc *p)
sd = private;
if((flags & (FREAD|FWRITE)) != 0) {
return(Fdopen(makedev(0,sd->minor), 0 , 0, p));
return(Fdopen(makedev(0,sd->minor), flags , mode, p));
} else {
return(fdclose(makedev(0,sd->minor), 0 , 0, p));
return(fdclose(makedev(0,sd->minor), 0 , mode, p));
}
}