PERFORCE change 117220 for review
Roman Divacky
rdivacky at FreeBSD.org
Mon Apr 2 20:55:33 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=117220
Change 117220 by rdivacky at rdivacky_witten on 2007/04/02 20:55:01
Use kern_close instead of close().
Pointed out by: jhb
Affected files ...
.. //depot/projects/linuxolator/src/sys/compat/linux/linux_stats.c#9 edit
Differences ...
==== //depot/projects/linuxolator/src/sys/compat/linux/linux_stats.c#9 (text+ko) ====
@@ -601,7 +601,6 @@
int error;
char *newpath, *oldpath, *freebuf = NULL, *path;
int fd;
- struct close_args cargs;
struct stat buf;
/* open the file */
@@ -637,8 +636,7 @@
error = stat64_copyout(&buf, args->statbuf);
/* close the opened file */
- cargs.fd = fd;
- close(td, &cargs);
+ kern_close(td, fd);
return (0);
}
More information about the p4-projects
mailing list