6,958 reputation
1641
bio website michael.kjorling.se
location
age
visits member for 3 years, 9 months
seen Jul 19 at 17:19

Jul
19
revised Files are missing and I want to know what happened to them
Incorporate from comments
Jul
19
revised How to boot Linux
Removed request to send answers elsewhere
Jul
18
revised System calls in linux
added 122 characters in body
Jul
18
revised System calls in linux
added 45 characters in body
Jul
18
comment System calls in linux
@saurav1405 Did you read the answer in full? I feel it is explained fairly well in the paragraphs following that, and certainly better than can be done in the space of a comment. If you aren't familiar with these concepts, I suggest you just do yourself a favor and simply use the facilities offered by your language and runtime of choice, as suggested in the top paragraph. If there is something in particular you want to know, please be a lot more specific.
Jul
16
comment FILE size limitation according to Robert Love's textbook
@goldilocks That's what comments are for :)
Jul
16
comment In what sense does SATA “talk” SCSI? How much is shared between SCSI and ATA?
Oh, I'm not arguing in favor of either, just thought a little perspective might be enlightening and distinctly recalled BSDs doing it that way. But of course, I'm pretty sure they deal with ports more than devices. Which also has both pros and cons.
Jul
16
comment In what sense does SATA “talk” SCSI? How much is shared between SCSI and ATA?
Wow, great answer. Just one thing; /dev/atapi0, /dev/sas0 etc.; isn't that pretty much what the BSDs (at least FreeBSD) do? As well as Solaris IIRC. And on Linux there's usually /dev/disk/by-path which is somewhat similar.
Jul
16
comment Remove All NVIDIA Files
I agree with @drs. It's quite possible that your shell is expanding the * before it even gets to apt-get. Escape it or quote it, and try again.
Jul
16
comment FILE size limitation according to Robert Love's textbook
As for fseek() in particular, note that it can seek from the current position or file end, hence the requirement to be able to take a negative offset.
Jul
16
comment FILE size limitation according to Robert Love's textbook
The range of a N-bit integer type without special tricks is 0 .. (2^N - 1) for unsigned, and -(2^(N-1)) .. +(2^(N-1) - 1) for signed, all inclusive, given a two-complement architecture (not guaranteed with C). Both allow 2^N discrete values, but the range is shifted. Hence, unsigned 16 bits integer is 0..65535 inclusive (2^16 = 65536), and signed 16 bits integer is -32768..32767 inclusive (2^15 = 32768). For longer integers, just use larger two-exponents.
Jul
16
answered System calls in linux
Jul
15
comment Linux 2.6.36.4, GCC 4.7.2, getting lots of “variable set but not used” warnings
There's always the matter of memory pointers declared volatile. Without having looked, I can easily imagine there are a number of those in certain parts of the kernel source code, as it would probably be one reasonably natural way to speak to the hardware on some architectures. Writing to such a variable to control the behavior of a hardware device might not require a value to be read back, which just might trigger these sorts of warnings, and they cannot (easily or at all) be removed by the programmer or optimized away by the compiler.
Jul
15
accepted How to tell whether RAM ECC is working?
Jul
15
comment conio.h file missing error
@LightnessRacesinOrbit Actually, I remember those days fairly well. But thanks for the link anyway.
Jul
14
comment conio.h file missing error
@LightnessRacesinOrbit conio.h is Microsoft? Odd, I distinctly remember Borland Turbo C 2.0 (at least) having it, and that was decidedly not Microsoft.
Jul
14
comment Linux 2.6.36.4, GCC 4.7.2, getting lots of “variable set but not used” warnings
2.6.36.4 is dated 2011-02-17; the odds are good that if it had a crippling bug related to assigned-but-unread variables, even if only in some oddball configuration, someone would have spotted (and fixed) it by now. Such bugs aren't like e.g. timing issues, which can lay dormant for years or decades.
Jul
14
comment Linux 2.6.36.4, GCC 4.7.2, getting lots of “variable set but not used” warnings
There is a million ways how a Linux kernel can build successfully but fail to boot. If your real problem isn't the warning, but rather the failure to boot, you should post a question focusing on that, and include pertient information for addressing that problem, rather than focusing on something that may or may not have anything at all to do with your actual problem.
Jul
14
revised Linux 2.6.36.4, GCC 4.7.2, getting lots of “variable set but not used” warnings
edited title
Jul
14
answered Linux 2.6.36.4, GCC 4.7.2, getting lots of “variable set but not used” warnings