LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

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

Posted 01-27-2012 at 06:09 AM by rainbowsally
Updated 08-06-2014 at 10:33 AM 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 600 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 6855 Comments 2 rainbowsally is offline
Old

Assembler Stuff: Asm and Inline Asm

Posted 01-25-2012 at 07:15 PM by rainbowsally

Assembler Stuff: Asm and Inline Asm

Features:
  • Asm and inline asm examples
  • Using C macros to create global function names
  • Intel and ATT syntax
  • Viewing disassembly in a *.s file and using objdump

Let's get right to the point...

Code:
// main.c
// COMPILE: gcc main.c -o main --save-temps
// take a look at the C asm output file, 'main.s' afterwar

// 64 bit asm keeps part of the stack in registers in C, so let's
//
...
Member
Posted in Uncategorized
Views 825 Comments 0 rainbowsally is offline
Old

Quick Note = rpmerizor & retro dev files

Posted 01-25-2012 at 03:31 AM by rainbowsally

I noticed that rpmerizor doesn't include so symlinks in the package. (You have to add them to the spec as "%dir" types if you need them.)

As a result the current rpmerizor is pretty SAFE for retro development packages because it can't overwrite the default libs (*.so with no numeric extension).

However, I've asked eric to consider adding a switch so that we can include the symlinks as per "normal" development packages which usually only contain...
Member
Posted in Uncategorized
Views 349 Comments 0 rainbowsally is offline
Old

Frankenstein (bash) Meets GodziRRa (C/C++).

Posted 01-25-2012 at 02:57 AM by rainbowsally
Updated 08-06-2014 at 10:34 AM by rainbowsally

Frankenstein (bash) Meets GodziRRa (C/C++).

Changelog: Mar 31, 2012.
Added path correction noted by ntubski. Commandline was:
file-sig file-sig
should be:
./file-sig file-sig

[Thanks.]

Features:
  • Simple C program embedded in a bash script.
  • Program that doesn't print a newline at the end of a string.
  • Compiling without superuser privileges.
  • Ethical concerns.

Requires:
  • bash
  • gcc

Bash is so screwy it feels...
Member
Posted in Uncategorized
Views 6758 Comments 2 rainbowsally is offline

  



All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration