Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 9 results for
systemcall
- Page 1
SystemCall - Copying File
Programming
Software Development
15 Years Ago
by Lilal
… and not sure quite whats wrong. Need to do a
systemcall
from C program to copy a file, using stat, open…
c++/unix fork(), fifo's, desperate need of help
Programming
Software Development
18 Years Ago
by Funktar
…; char* msgbuf; msgbuf = (char*)malloc(MSGSIZE+1); sprintf(msgbuf, "
systemcall
"); strcat(msgbuf, (char*)pid); int fdw = Open("syscallfifo…
Re: c++/unix fork(), fifo's, desperate need of help
Programming
Software Development
18 Years Ago
by Dogtree
… same goes with your alternate solution: [code] sprintf(msgbuf, "
systemcall
%lu", (unsigned long)pid); /* strcat(msgbuf, (char*)pid); */ [/code…
AS3 to PHP and back to AS3
Programming
Web Development
12 Years Ago
by patishere
…; trace("Processing . . ."); vars.sysCall = "checkLogin"; vars.
systemCall
= "checkLogin"; vars.username = username.text; phploader.dataFormat = URLLoaderDataFormat…
Re: SystemCall - Copying File
Programming
Software Development
15 Years Ago
by Lilal
Nevermind I fixed it woot :P <3 Just used a struct of file info to find the file size and looped through that. Steph
Re: c++/unix fork(), fifo's, desperate need of help
Programming
Software Development
18 Years Ago
by Dogtree
>>strcat(msgbuf, (char*)pid); If you have to cast to char * then chances are good you're doing something wrong. ;) What type is pid? I'm guessing it's an int, and that would be a problem because typecasting doesn't make an integer into a string.
Re: c++/unix fork(), fifo's, desperate need of help
Programming
Software Development
18 Years Ago
by Funktar
pid is a pid_t, pretty much like an int, just holds the process id, is there any other way to add this onto the end of my message? by the way, thanks for the fast reply, i will be checking for response about every 10 minutes or so.
Re: c++/unix fork(), fifo's, desperate need of help
Programming
Software Development
18 Years Ago
by winbatch
if msg is a struct, why not just have an an int inside the struct to hold the pid and set it equal?
Re: c++/unix fork(), fifo's, desperate need of help
Programming
Software Development
18 Years Ago
by Funktar
ya i guess i could add another int field, but wouldn't make a difference right now I can't get the message struct to send anyway. my main problem is with read/write.
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC