[Mplayer-cvslog] CVS: main/loader ext.c,1.7,1.8 ldt_keeper.c,1.5,1.6
Arpi of Ize
arpi at mplayer.dev.hu
Wed Dec 26 23:33:20 CET 2001
- Previous message: [Mplayer-cvslog] CVS: main/DOCS documentation.html,1.147,1.148 encoding.html,1.17,1.18 faq.html,1.54,1.55 mencoder.1,1.20,1.21 mplayer.1,1.117,1.118
- Next message: [Mplayer-cvslog] CVS: main/libmpdemux demux_real.c,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/loader
In directory mplayer:/var/tmp.root/cvs-serv20918
Modified Files:
ext.c ldt_keeper.c
Log Message:
/dev/zero bad permissions error message
Index: ext.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/ext.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ext.c 11 Dec 2001 22:58:13 -0000 1.7
+++ ext.c 26 Dec 2001 22:33:15 -0000 1.8
@@ -250,7 +250,7 @@
{
if ((fdzero = open( "/dev/zero", O_RDONLY )) == -1)
{
- perror( "/dev/zero: open" );
+ perror( "Cannot open /dev/zero for READ. Check permissions! error: " );
exit(1);
}
}
@@ -366,8 +366,10 @@
{
anon=1;
hFile=open("/dev/zero", O_RDWR);
- if(hFile<0)
+ if(hFile<0){
+ perror( "Cannot open /dev/zero for READ+WRITE. Check permissions! error: " );
return 0;
+ }
}
if(!anon)
{
@@ -455,6 +457,10 @@
{
void* answer;
int fd=open("/dev/zero", O_RDWR);
+ if(fd<0){
+ perror( "Cannot open /dev/zero for READ+WRITE. Check permissions! error: " );
+ return NULL;
+ }
size=(size+0xffff)&(~0xffff);
//printf("VirtualAlloc(0x%08X, %d)\n", address, size);
if(address!=0)
Index: ldt_keeper.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/ldt_keeper.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ldt_keeper.c 9 Nov 2001 03:27:29 -0000 1.5
+++ ldt_keeper.c 26 Dec 2001 22:33:15 -0000 1.6
@@ -157,6 +157,10 @@
prev_struct = 0;
fd = open("/dev/zero", O_RDWR);
+ if(fd<0){
+ perror( "Cannot open /dev/zero for READ+WRITE. Check permissions! error: " );
+ return;
+ }
fs_seg = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_PRIVATE,
fd, 0);
if(fs_seg==(void*)-1)
- Previous message: [Mplayer-cvslog] CVS: main/DOCS documentation.html,1.147,1.148 encoding.html,1.17,1.18 faq.html,1.54,1.55 mencoder.1,1.20,1.21 mplayer.1,1.117,1.118
- Next message: [Mplayer-cvslog] CVS: main/libmpdemux demux_real.c,NONE,1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list