Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 01 Sep 2014, 10:37
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
kernel syscalls - How does it work?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Thu 17 Mar 2011, 11:16    Post subject:  kernel syscalls - How does it work?  

Lets say I have a 2.6.38 kernel that is compiled with xz support. Is there a way to use syscalls to the kernel (in a C program) to decompress an xz file without having to use the userland tools?
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2238

PostPosted: Thu 17 Mar 2011, 15:23    Post subject:  

That's the transparent decompression mechanism as used by squashfs, cramfs, cloop, zisofs and now also ext4. They all depend on the kernel being able to do on-the-fly decompression of streams. And they each depend on a different program to create those filesystesms/images. From a regular C program, you'd want to use glibc calls along with small stream decompressor code. The in-kernel stuff is only useful at the filesystem level.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0357s ][ Queries: 11 (0.0029s) ][ GZIP on ]