Forum: Shell Scripting Jun 25th, 2007 |
| Replies: 4 Views: 1,750 http://www.freebsd.org/cgi/man.cgi?query=sysexits&apropos=0&sektion=0&manpath=FreeBSD+4.3-RELEASE&format=html |
Forum: C Jun 2nd, 2007 |
| Replies: 7 Views: 1,592 What code have you written so far? |
Forum: C May 22nd, 2007 |
| Replies: 2 Views: 2,240 Do you mean 'will the compiler complain' - no.
'Is it a good idea' - Again, probably not.
Reentrant functions should have all of their data passed to them as arguments, and not use global data... |
Forum: C May 16th, 2007 |
| Replies: 23 Views: 13,548 Consider calling stat() to get the filesize first. Open the file, then move the file pointer forward to some arbitrary place.
If you assume no last line is ever longer than say, 200 characters, ... |
Forum: C Mar 13th, 2007 |
| Replies: 6 Views: 1,321 Code caving creates a supplanting vector to user-controlled data sets, and is usually a game hacking technique, it's also used in exploits.
Therefore, it's usually an asm code block.
More than... |
Forum: Shell Scripting Aug 15th, 2006 |
| Replies: 4 Views: 1,740 try an alias:
alias home="cd /home/budroeducom"
alias cd1="cd /some/longpath/to/somewhere"
typing
home
will execute |
Forum: Shell Scripting Jul 14th, 2006 |
| Replies: 4 Views: 3,822 Choices
1. install GNU date (the linux version) so you can use the --date option.
Also check the man page for your current version of date - it may be a GNU variant.
2. use C's strptime()... |
Forum: C Jan 6th, 2006 |
| Replies: 2 Views: 1,142 \\ in literal strings = \ because a single \ "escapes" the next character
"C:\\myfile\\hi.txt" |
Forum: C++ Dec 1st, 2005 |
| Replies: 15 Views: 2,416 So, how did you compile and link the .so file? |
Forum: C++ Dec 1st, 2005 |
| Replies: 15 Views: 2,416 My bad.
Just to clarify:
1. You can link an entire module statically.
2. You can link just one or two libraries statically, and link the rest of the image dynamically:
cc myfile.c... |
Forum: C++ Nov 30th, 2005 |
| Replies: 15 Views: 2,416 No, no, not flags...
I'm assuming you're using C++ code - look for something like "libc++.a" and link against that. I don't know the name for the library file in Solaris. |
Forum: C++ Nov 30th, 2005 |
| Replies: 15 Views: 2,416 The "moving over" part is the reason for which static linking exists.
Your problem could be looked at another way: as an implementation/deployment issue.
Matching up correct code with correct... |
Forum: C++ Nov 30th, 2005 |
| Replies: 15 Views: 2,416 You're on the right track. I don't use Solaris, but I do know it has some (what I think are) funny conventions.
Now that I know it's Solaris, you can use versioning of your .so files, as long as... |
Forum: C++ Nov 30th, 2005 |
| Replies: 15 Views: 2,416 Yes. - it's called a static link. It means that all of the runtime you need is part of the image file - obviously a much bigger image file.
I can't tell which version of unix you have, but your... |
Forum: C++ Nov 16th, 2005 |
| Replies: 19 Views: 2,439 Whenever you compile C code you should enable warnings. Some compilers will not complain unless you tell them to complain.
What compiler are you using? Is it an ancient version
of BORLAND C++... |