Search Results

Search: Posts Made By: dragonpoint
Forum: Programming 02-16-2014
914
Posted By JohnGraham
The problem is that: *i--; decrements...
The problem is that:

*i--;

decrements the pointer, not the pointed-to value. I.e. it's equivalent to:


*(i--);


What you really want is:


(*i)--;


(On my machine at least, your...
1,245
Posted By in2nix4life
#!/usr/bin/perl # # use strict; my...
#!/usr/bin/perl
#
#
use strict;

my $str = "a_b c[10_9]";
for($str) {
s/ /_/;
s/(.+)_/$1:/;
}
print "$str\n";
exit(0);

./testme.pl
a_b_c[10:9]

...
1,245
Posted By Corona688
$var ~= s/ /_/;
$var ~= s/ /_/;
Forum: Programming 03-22-2011
1,483
Posted By jim mcnamara
static means it has all of the external libraries...
static means it has all of the external libraries "internal" - so it never has to worry about library versions being correct. These image files are huge and use a lot of memory. Image activation...
4,129
Posted By Corona688
The traditional virtual mapping for the kernel in...
The traditional virtual mapping for the kernel in linux x86 is 1 gig of address space for the kernel, 3 gigs of address space for one process. There's also a 128-meg hole punched into the kernel...
Forum: Programming 11-22-2010
6,402
Posted By JohnGraham
You'd define the type of the struct in the header...
You'd define the type of the struct in the header file, and declare (but not define) MEM_IO_PTRS in the header using extern:


/* in header file */

struct mem_ptrs
{
... /* members */
};...
Forum: Programming 11-09-2010
14,795
Posted By Corona688
I see! In which case you might find man 2...
I see! In which case you might find man 2 syscall a better way to do arbitrary syscalls. I've certainly never managed to get _syscall3 and the like to work...
Forum: Programming 10-19-2010
2,485
Posted By jim mcnamara
1. yes, the kernel can issue asyncronous...
1. yes, the kernel can issue asyncronous interrupts. In UNIX they amount to signals. The kernel also preempts processes in what is known as a process context switch. i.e., another process gets the...
Forum: Programming 10-14-2010
5,458
Posted By Corona688
Yes... and why do you need 0xcf8? Can you not...
Yes... and why do you need 0xcf8? Can you not obtain the information you need through the kernel itself?
7,472
Posted By Corona688
First, you get a useless use of cat award...
First, you get a useless use of cat award (http://partmaps.org/era/unix/award.html).

Secondly, because find doesn't work that way. By default it expects paths to look inside, not file names; ...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 01:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy