Source code that read grub.conf while booting kernel [closed] - grub

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I want to see the code which reads grub.conf, googled but not found.
From below link what I understand that /boot/grub/stage2 reads grub.conf, which is a binary file.
http://docs.oracle.com/cd/E37670_01/E41138/html/ch04s02.html
Stage 2 Stage 2 code reads /boot/grub/grub.conf to determine how to
load the kernel. The stage 2 code is stored in the file
/boot/grub/stage2:
ls -al /boot/grub/stage2
-rw-r--r--. 1 root root 125976 Jun 28 2012 /boot/grub/stage2
Any Idea where I can find it.
Thanks

So, one bit which could make finding the source code slightly confusing is that your grub is of the original instance, now known as "GRUB legacy".
Current development, and easily accessible source code, is all for what used to be known as GRUB2, and is now simply GRUB (with a version number >= 2). Development versions of GRUB2 were known as GRUB 1.9*.
So, I don't know if this is helpful at all, but to access old versions of GRUB sources, you can either look within your distribution packaging system, or in ftp://alpha.gnu.org/gnu/grub/.

Related

How to generate documentation for Clojure code on Windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I can't seem to find a way to generate documentation for Clojure code on Windows.
Marginalia seems to be broken on all platforms since 1.7 (see here:
https://github.com/gdeer81/marginalia/issues/158).
Codox has an issue
open on this topic (https://github.com/weavejester/codox/issues/110).
The Autodoc plugin for Lein 2 seems to be broken as well (not
enough reputation to post more than two links, but there's an issue
open on this over at GitHub).
Has anyone succeeded in running any of these three on Windows? Should I try something else?
Note:
I do not have a choice here, it must run on Windows.
As I'm building a case for clojure in the company, it must play well with leiningen, which is used to build and test our code.
Another option is autodoc - seems to still be active, but from the README it seems there are no promises it works on windows - still you could give it a try.
I think codox might still be your best bet. It's pretty popular and well maintained (there's only 4 open bugs right now and they're pretty newish - one of which is the one you referenced in your question). So maybe give it some time.
Finally, I know this is probably obvious and not ideal, but you could at least do one-off generations of documentation on a *nix system for the time being.

What is your favorite disassembler tool in Mac OS X? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am using the otool, nm and Fraise text editor to disassemble the Mach-o binaries. My workflow at this point is pretty straightforward:
1. List the existed symbols.
nm -g
2. Get the disasm code.
otool -vt
3. Copy and paste this output to a text file.
4. Read and comment the code in the text editor :)
I am looking for the tools that simplify the working with disasm code on Mac OS X.
You might want to try
Hopper Disassembler,
osxdbg,
Machoview,
otx (otool GUI)
and Affinic Debugger GUI.
I als know of http://www.hopperapp.com/, but never used it.
(cannot be compared to Ida(Pro))

Print entire Project source code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need to print the source code of a VS2010 project (all files, around 400). Is there any way to automate this task?
Any option is good: whether it is directly to a "physical" printer or to a virtual printer (PDF printer).
It's not built into VS. But you can find a macro that does the job at http://msdn.microsoft.com/en-us/library/ms973240.aspx.
Also, a modified version is loacted at https://stackoverflow.com/a/683835/337294
A Project file is an XML file. You can extract the filenames and then pipe them to any tool you like. If you have any unix-like tools on your Windows system you can do the following to print all .cpp files:
grep -o "\".*\.cpp\"" MyProject.vcxproj | xargs cat

fpcmake and Makefile.fpc, where can I get some training? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I've never used any of these, but they are listed on the main Free Pascal site and I would really like to get my hands on:
Beginners guide, to get me started
Advanced guide, to help me grow
All this in case it's still used/standard.
Thanks
IMHO makefile.fpc is mostly FPC internal. I wouldn't use it for own projects.
The idea is that Makefile.fpc is combined with a template fpcmake.ini by running "fpcmake -Tall -w" to generate a GNU Makefile. The fpcmake.ini template is built in into the fpcmake binary.
Makefile.fpc is a file that has parameters for customizing the (fpcmake.ini) template, but can also add additional targets (in makefile format).
To my knowledge there is a paragraph about fpcmake somewhere in the documentation, nad the rest is usually learned by example, simple usage in packages/ and the more complicated examples are the toplevel makefile.fpc and the ones in compiler and rtl/

Where is the code for "tee" in Mac OS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Where is the code for the terminal command 'tee' located in Mac OS?
[Added] Is it possible to read the exact code, that my mac is using (not the online codes)?
By "code", I guess you mean source code, right? See there
EDIT: I see the question has been made more precise.
See exactly in the "plain" BSD code here as a Apple Developer login (free) is required to browse their code.
It's BSD, not Linux, code.
http://www.pell.portland.or.us/~orc/Code/bsd/bsd-current/tee/tee.c
http://www.ss64.com/osx/
Do you mean, where is the executable? If that's what you're asking, it's at /usr/bin/tee. You can locate any command in your path by using the which utility. It will print out the full path to the command. For example:
$ which tee
/usr/bin/tee
$
If you're asking about the actual source code, a number of answers are already here that provide you with links to Apple's source code. The utilities themselves are split amongst a number of packages and there's no real index, so you'll have to browse the names and check packages that sound like they might contain the source for any given utility.
Here is the source code of Apple's unix:
http://developer.apple.com/Darwin/
If it is up-to-date this is the exact code that your mac uses.

Resources