LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

ASM: 64 bit intel asm in linux

Posted 02-03-2012 at 04:01 PM by rainbowsally

If you're used to 32 bit asm in gcc, the 64 bit asm might throw you for a loop initially. That's because part of the stack is passed around in registers.

Let's compile a bit of test code and see what's going on.

If you're using our makefile-creator put this in a subdirectory named "src" or use whatever method you prefer if not.

file: src/main.c
Code:
// main.c
#include <stdio.h>

void  dbg(){}
...
Member
Posted in Uncategorized
Views 949 Comments 0 rainbowsally is offline
Old

To boot a broken openSUSE 11.4 (also dual-linux bootloader issues)

Posted 01-28-2012 at 03:31 AM by rainbowsally
Updated 09-04-2013 at 10:24 PM by rainbowsally

To boot a broken openSUSE system:

Use the DVD. (I am not online when I do this but it should work either way.)

1. Select "install" at the main menu, then when you get to the menu,

2. Select "update" <- IMPORTANT! If you don't click on 'update' it will destroy your home folders at the last step. Reboot (reset is fine here) if there's any question and run the installer again.

Evaluating the root partition is ok....
Member
Posted in Uncategorized
Views 1081 Comments 0 rainbowsally is offline
Old

KDE Utils: new.exec, shell-exec (for ENTER &amp; click on executables)

Posted 01-28-2012 at 03:08 AM by rainbowsally

[This post includes some test data showing what's wrong in KDE and a peek into the configuration files for various file types.]

Let's start with a program that writes programs. This is 'new.exec'.

file: new.exec (executable)
purpose: create a skeleton of a clickable shell program with an 'exec' extension.
Code:
#!/bin/sh
# creates a new exec file named $1.exec that does $2

name_exec="$1.exec"
cd_here='cd `dirname
...
Member
Posted in Uncategorized
Views 1039 Comments 0 rainbowsally is offline
Old

Simple C: Beyond Bash Part 2 - Dependency lister for dir branch (recursive)

Posted 01-27-2012 at 06:09 AM by rainbowsally
Updated 09-04-2013 at 10:23 PM by rainbowsally

[Note to myself: Needs rewrite using libLQ.]

Simple C: Beyond Bash Part 2 - Dependency lister for dir branch (recursive)

CHANGELOG

* Sat Feb 18, 2012 -rs

find-deps version 1.2

In 'find_elf()' changed pipecmd to "find * -executable -o name *.so*" because some libs
may not have have their executable flag set, such as an unpacked from an rpm package that
doesn't have the perms set until install time....
Member
Posted in Uncategorized
Views 550 Comments 0 rainbowsally is offline
Old

Simple C: Beyond Bash Part 1 - String lists and pipes

Posted 01-26-2012 at 08:03 AM by rainbowsally
Updated 04-05-2012 at 07:54 PM by rainbowsally

[Note, this is marked for POSSIBLE deletion in the future by the author. This version is not exactly the same as the one in libLQ. In fact it may be removed a bit later, though it has some advantages over the the libLQ version in that it uses REAL char** types which behave exactly like any other char** type. The libLQ version monkeys with the base address in order to tuck an 'argc' below the first arg and thus avoid repeatedly literally 'count'-ing the string size. It is is a subclass of an...
Member
Posted in Uncategorized
Views 6183 Comments 2 rainbowsally is offline

  



All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration