web developer & system programmer

coder . cl

ramblings and thoughts on programming...


Re: vmsplice() + SPLICE_F_GIFT flag ??

published: 27-08-2009 / updated: 27-08-2009
posted in: c, programming
by Daniel Molina Wegener

On the post from Eduardo Silva: "vmsplice() + SPLICE_F_GIFT flag ??", he’s asking about the problem of EINVAL errno value on calling vmsplice(2) system call on Linux systems.

does anybody know why the linux syscall vmsplice() doesn’t work with the SPLICE_F_GIFT flag ?, per manual page it should be supported but i get the following error:

pyxser 1.2 release

published: 23-08-2009 / updated: 23-08-2009
posted in: c, programming, projects, python, pyxser
by Daniel Molina Wegener

Today I’ve released pyxser-1.2r my Python Object to XML serializer/deserializer. To get more information about this project, visit the pyxser web page. This release has with byte string encoding for Unicode strings. This means that all Unicode strings are serialized in a human readable form, and also a better form to use pyxser with other platforms, since the encoding regards a better interoperability with byte encoded string handlers.

interpreting valgrind messages

published: 15-08-2009 / updated: 15-08-2009
posted in: c, c++, programming, tips
by Daniel Molina Wegener

In other posts I’ve presented you some ways to detect memory leaks, conceptually rather than practically, but enough to understand them and solve those programming issues. Normally, valgrind messages. There are some posts about valgrind and well documented user guides, such as the guide written by Alex Ott. This article is about on how to interpret valgrind messages while you are using it as memory allocation debugger.

emacs and integrating ecb with cscope

published: 01-08-2009 / updated: 01-08-2009
posted in: c, emacs, programming, tips
by Daniel Molina Wegener

Emacs is a powerful editor, the most powerful and the fastest programmable editor that I know. Emacs uses a Lisp dialect to create configurations, functions and modes. My favorite mode on Emacs is ECB, a powerful code browsing one, like many IDEs that I know. The difference is that ECB, do not does code indexing until you configure it. For large C projects, I like to use external tools, but not ctags or etags, instead I prefer to use cscope. But you may ask "how can I integrate cscope and Emacs running the ECB mode?". Well, in this post I will try to explain how to integrate both, cscope and Emacs.

pyxser-1.1r, bug fixes and feedback request

published: 27-07-2009 / updated: 27-07-2009
posted in: c, programming, projects, python, pyxser
by Daniel Molina Wegener

Today I’ve released pyxser-1.1r my Python Object to XML serializer. To get more information about this project, visit the pyxser web page. On this release I need a little bit of feedback from users. The message sent to the Python Mailing Lists is as follows:

foreign system call emulations on freebsd

published: 19-07-2009 / updated: 19-07-2009
posted in: c, freebsd, programming
by Daniel Molina Wegener

Call simulations are common nowdays techniques to use foreign applications — build for other operating systems, such as M$ Windows — in the FreeBSD platform. The common technique is to create an interface to the real system calls replacing foreign system calls with wrappers on them. To build this task an assembler instruction is used. On call simulations we have the usage of win32 codecs, wine and valgrind — valgrind do not use foreign system calls, but replaces standard library routines. Most of them are using — behind all those system calls and standard library routines — a common assembler instruction: lldt. lldt stands for "Load Local Descriptor Table" and it’s related to Segment Descriptor Tables. This article is a lightweight introduction to the use of lldt assembler instruction.