tpe-lkm icon indicating copy to clipboard operation
tpe-lkm copied to clipboard

user-space programs can not get the correct errno

Open stevezhougs opened this issue 2 years ago • 0 comments

Below return -1 to user-space program: fopskit_return(fopskit_eperm); //int fopskit_eperm(void) { return -EPERM; } In user-space run with strace,I saw this: creat("/tmp/test/create.txt", 0644) = 4294967295 Normally,display should be: creat("/tmp/test/create.txt", 0644) = -1 EACCES (Permission denied)

So,how should I do?

stevezhougs avatar Jan 13 '23 03:01 stevezhougs