Main > Free Download Search >

Free int software for linux

int

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 204
Instant 0.9

Instant 0.9


Instant is a Python module that allows for instant inlining of C and C++ code in Python. more>>
Instant is a Python module that allows for instant inlining of C and C++ code in Python. Instant is a small Python module built on top of SWIG.

Example of use:

>>> c_code = """
double sum(double a, double b){
return a+b;
}
"""
>>> import Instant
>>> ext = Instant.Instant()
>>>
>>> # create the wrapper code, compile and link it to a shared library
>>> ext.create_extension(code=c_code, module=test1_ext)
>>>
>>> # use the C code
>>> from test1_ext import sum
>>> print sum(3.7, 4.8)
8.5

Example with NumPy arrays converted to C double arrays:

>>> import Instant
>>> import Numeric
>>> import sys
>>> import time
>>>
>>> ext = Instant.Instant()
>>>
>>> c_code = """
/* add function for vectors with all safety checks removed ..*/
void add(int n1, double* array1, int n2, double* array2, int n3, double* array3){
for (int i=0; i >>"""
>>>
>>> ext.create_extension(code=c_code, headers=["arrayobject.h"],
>>> include_dirs=[sys.prefix + "/include/python" + sys.version[:3] + "/Numeric"],
>>> init_code=import_array();, module=test3_ext,
>>> arrays = [[n1, array1],[n2, array2],[n3, array3]])
>>>
>>> from test3_ext import add
>>> a = Numeric.arange(10000); a = Numeric.sin(a)
>>> b = Numeric.arange(10000); b = Numeric.cos(b)
>>> c = Numeric.arange(10000); c = Numeric.cos(c)
>>>
>>>add(a,b,c)
<<less
Download (0.034MB)
Added: 2007-01-03 License: GPL (GNU General Public License) Price:
1270 downloads
GINS 0.9.0

GINS 0.9.0


GINS is a way to add GTK interfaces to script languages that dont have any GTK bindings, like BASH scripts. more>>
GINS a.k.a. Gtk INterface for Script is a way to add GTK interfaces to scrpit languages that doesnt have any GTK bindigs, like BASH scripts. GINS load a GLADE xml file, using libglade. Then run the script, linking to his stdin & stdout.
Now script can communicate to GINS simply writting to stdin and reading from stdinput.
GINS pass to script every events that occours to gtk widgets, and script can react.
Enhancements:
- BradC: This version of GINS adds the ability to get boolean and double and the ability to set ints. So we can both get and set; int, str, double and boolean.
<<less
Download (0.014MB)
Added: 2007-03-09 License: GPL (GNU General Public License) Price:
964 downloads
Coronet 0.23

Coronet 0.23


Coronet project is a library which implements an epoll and coroutine based library that allows for async operations. more>>
Coronet project is a library which implements an epoll and coroutine based library that allows for async operations over certain kinds of files. Any file that supports poll(2) and the O_NONBLOCK fcntl(2) flag can be hosted; this includes like sockets and pipes.

The coronet library uses the epoll support available in the 2.6 series of Linux kernels, and the libpcl library for coroutine support.

SYNOPSIS

#include < coronet.h >

int conet_init(void);
void conet_cleanup(void);
int conet_readsome(struct sk_conn *conn, void *buf, int n);
int conet_read(struct sk_conn *conn, void *buf, int n);
char *conet_readln(struct sk_conn *conn, int *lnsize);
int conet_write(struct sk_conn *conn, void const *buf, int n);
int conet_printf(struct sk_conn *conn, char const *fmt, ...);
struct sk_conn *conet_new_conn(int sfd, coroutine_t co);
void conet_close_conn(struct sk_conn *conn);
int conet_set_timeo(struct sk_conn *conn, int timeo);
int conet_mod_conn(struct sk_conn *conn, unsigned int events);
int conet_socket(int domain, int type, int protocol);
int conet_connect(struct sk_conn *conn, const struct sockaddr *serv_addr, socklen_t addrlen);
int conet_accept(struct sk_conn *conn, struct sockaddr *addr, int *addrlen);
struct sk_conn *conet_create_conn(int domain, int type, int protocol, coroutine_t co);
int conet_events_wait(int timeo);
int conet_events_dispatch(int evdmax);
<<less
Download (0.34MB)
Added: 2007-03-02 License: LGPL (GNU Lesser General Public License) Price:
966 downloads
genproto 0.4.1

genproto 0.4.1


genproto a tool that generates prototypes from C/C++ code. more>>
genproto generates prototypes from C/C++ code. It does not touch the original files, and the output format can be changed via printf-style format strings.

Unlike cproto it does not rely on external programms, such as gcc or cpp.

Example

me@home:~/src/genproto-0.2> ./genproto main.c
/* generated by genproto */

void Usage(char *name);
char * CharCopy(char *buf, int len);
char * AddTokens(char **TokenList, int FirstToken, int LastToken);
void AddPrototype(char **TokenList, int ClassNamePos, int FunctionNamePos, int ParamPos);
void ScanOneFile(void);
void SortPrototypes(struct function **T, int Gauche, int Droite);
void Swap(struct function **T, int i, int j);
int CompareFunctions(struct function *pF1, struct function *pF2);
void CopyListToTable(void);
void PrintOnePrototype(struct function *pF);
void PrintPrototypes(void);
void DeletePrototypes(void);
void MyExit(void);
void * MyAlloc(size_t size);
int main(int argc, char **argv);
<<less
Download (0.027MB)
Added: 2005-04-22 License: Freely Distributable Price:
1645 downloads
froofyJIT 0.25

froofyJIT 0.25


froofyJIT is a C++ syntactic sugar front-end for Paolo Bonzinis GNU lightning library for dynamic native code generation. more>>
froofyJIT is a C++ syntactic sugar front-end for Paolo Bonzinis GNU lightning library for dynamic native code generation. froofyJIT program uses C++s powerful language facilities to allow GNU lightning instructions to be expressed in a more concise way that approximates a real assembly language.
Below is a program which uses froofyJIT to compute a Fibonacci number (directly translated from tests/fib.c in GNU lightning):
#include < cstdlib >
#include < iostream >
#include "froofy/jit.h"
static jit_insn codeBuffer[1024];
typedef int (*pifi)(int);
int main()
{
pifi nfibs;
int in;
{
using namespace froofy::jit;
label< > basis;
nfibs/ !org, codeBuffer;
prolog, 1;
!arg< ui > in;
getarg< ui > v0, in;
blti< ui > basis, v0, 2;
subi< ui > v1, v0, 1;
subi< ui > v2, v0, 2;
prepare< i > 1;
pusharg< ui > v1;
finish, nfibs;
retval< i > v1;
prepare< i > 1;
pusharg< ui > v2;
finish, nfibs;
retval< i > v2;
addi< ui > v1, v1, 1;
addr< ui > rr, v1, v2;
ret --;
basis/ movi< i > rr, 1;
ret --;
!end, codeBuffer;
}
std::cout<<less
Download (0.015MB)
Added: 2007-08-01 License: LGPL (GNU Lesser General Public License) Price:
814 downloads
Inline::C 0.44

Inline::C 0.44


Inline::C is a Perl module that can Write Perl Subroutines in C. more>>
Inline::C is a Perl module that can Write Perl Subroutines in C.

Inline::C is a module that allows you to write Perl subroutines in C. Since version 0.30 the Inline module supports multiple programming languages and each language has its own support module. This document describes how to use Inline with the C programming language. It also goes a bit into Perl C internals.

If you want to start working with programming examples right away, check out Inline::C-Cookbook. For more information on Inline in general, see Inline.

Usage

You never actually use Inline::C directly. It is just a support module for using Inline.pm with C. So the usage is always:
use Inline C => ...;
or
bind Inline C => ...;

Function Definitions

The Inline grammar for C recognizes certain function definitions (or signatures) in your C code. If a signature is recognized by Inline, then it will be available in Perl-space. That is, Inline will generate the "glue" necessary to call that function as if it were a Perl subroutine. If the signature is not recognized, Inline will simply ignore it, with no complaints. It will not be available from Perl-space, although it will be available from C-space.

Inline looks for ANSI/prototype style function definitions. They must be of the form:

return-type function-name ( type-name-pairs ) { ... }

The most common types are: int, long, double, char*, and SV*. But you can use any type for which Inline can find a typemap. Inline uses the typemap file distributed with Perl as the default. You can specify more typemaps with the TYPEMAPS configuration option.

A return type of void may also be used. The following are examples of valid function definitions.

int Foo(double num, char* str) {
void Foo(double num, char* str) {
SV* Foo() {
void Foo(SV*, ...) {
long Foo(int i, int j, ...) {

The following definitions would not be recognized:

Foo(int i) { # no return type
int Foo(float f) { # no (default) typemap for float
int Foo(num, str) double num; char* str; {
void Foo(void) { # void only valid for return type

Notice that Inline only looks for function definitions, not function prototypes. Definitions are the syntax directly preceeding a function body. Also Inline does not scan external files, like headers. Only the code passed to Inline is used to create bindings; although other libraries can linked in, and called from C-space.

<<less
Download (0.090MB)
Added: 2006-07-05 License: Perl Artistic License Price:
1206 downloads
C::Include 1.40

C::Include 1.40


C::Include is a package to easy operate with binary data via describing they like C/C++ structs. more>>
C::Include is a package to easy operate with binary data via describing they like C/C++ structs.

CLASSES AND PACKAGES

C::Include - Header file base parser class
C::Include::Struct - Struct wraper class

USAGE

use C::Include;

POSSIBILITY

- skip comments;

- valid preprocessor commands: define, ifdef, ifndef, endif, else;

- supported bitset and enclosed structs, enums;

- The compiled data may be cached in the external file and at repeated call not compiled
any more, that will speed up operation.8);

- may be defined and redefined type substitutions via #define
(Ex: #define WORD word );

- predefined standart types:
char
unsigned char
short
unsigned short
int
unsigned int
long
unsigned long
long long
unsigned long long
float
double
pointer
null
neganull
bit
short int
long int
long long int
unsigned
unsigned long int
unsigned short int
unsigned long long int
byte
dword
string (null padded)
sstring (space padded)
zstring (null terminated, null padded)

- predefined standart type aliases:
short int => short
long int => long
long long int => long long
unsigned => unsigned long
unsigned long int => unsigned long
unsigned short int => unsigned short
unsigned long long int => unsigned long long
byte => unsigned char
word => unsigned short
dword => unsigned long

<<less
Download (0.016MB)
Added: 2006-07-06 License: Perl Artistic License Price:
1206 downloads
passwd_info 0.1

passwd_info 0.1


passwd_info is a simple program that can query the /etc/passwd file for current user or specified user. more>>
passwd_info is a simple program that can query the /etc/passwd file for current user or specified user.

USAGE: passwd_info [username]

Sample:

#include < unistd.h >
#include < stdlib.h >
#include < stdio.h >
#include < sys/types.h >
#include < pwd.h >
#include < string.h >

struct passwd *pw;

void print_usage(void);

int main( int argc, char *argv[] )
{
if ( argc > 2 ) {
print_usage();
exit(1);
}

char *name;
uid_t uid;
gid_t gid;
char *gecos;
char *dir;
char *shell;

char *user_arg;

if ( argv[1] != NULL ) {
user_arg=(char *)malloc(strlen(argv[1]));
strcpy( user_arg, argv[1] );
if ( (pw = getpwnam(user_arg) ) == NULL ) {
fprintf( stderr, "Error: user %s does not existn", user_arg );
exit(1);
}
uid = pw->pw_uid;
free(user_arg);
}
else /* get for current user */
{
uid = getuid();
pw = getpwuid(uid);
}

name = pw->pw_name;
gid = pw->pw_gid;
gecos = pw->pw_gecos;
dir = pw->pw_dir;
shell = pw->pw_shell;

printf( "/etc/passwd file information for %sn", name );
printf( "Username = %stUID = %dtGID = %dn", name, (int)uid, (int)gid );
printf( "GECOS = %snHome = %stShell = %sn", gecos, dir, shell );

exit(0);
}

void print_usage( void )
{
fprintf( stderr, "USAGE: passwd_info [username]n" );
}
<<less
Download (MB)
Added: 2007-03-13 License: GPL (GNU General Public License) Price:
956 downloads
Inline::CPP 0.25

Inline::CPP 0.25


Inline::CPP is a Perl module that can write Perl subroutines and classes in C++. more>>
Inline::CPP is a Perl module that can write Perl subroutines and classes in C++.

SYNOPSIS

use Inline CPP;

print "9 + 16 = ", add(9, 16), "n";
print "9 - 16 = ", subtract(9, 16), "n";

__END__
__CPP__

int add(int x, int y) {
return x + y;
}

int subtract(int x, int y) {
return x - y;
}

The Inline::CPP module allows you to put C++ source code directly "inline" in a Perl script or module. You code classes or functions in C++, and you can use them as if they were written in Perl.

<<less
Download (0.024MB)
Added: 2006-07-06 License: Perl Artistic License Price:
1205 downloads
libhcritsec 0.20

libhcritsec 0.20


hcritsec is a C++ class for Critical Sections in programs. more>>
hcritsec is a C++ class for Critical Sections in programs.
hcritsec can be used to define a critical section in a program. It can be used in a recursive way. So functions that are nested can call the enter and leave functions recursively (see section Synopsys).
A critical section class is typically shared between threads, or is part of an object or variable that is shared between threads.
It can be used to gain exclusive access to shared resources or variables.
Synopsys
(...)
void thread_class::calc(int *t)
{
S->enter();
*t+=1;
S->leave();
}
void thread_class::run(void)
{
for(i=0;ienter();
calc(t);
S->leave();
}
}
(...)
int main()
{
hcrisec S;
int t=0;
thread_class t1(&S,&t),t2(&s,&t)
t1.start();
t2.start();
thread_class::join(t1,t2);
return 0;
}
Restrictions
- You may not copy an object of class critsec. Allways use a pointer to share the object between threads.
- If hcritsec throws a fatal error, this will allways be of type std::string.
<<less
Download (0.009MB)
Added: 2006-11-17 License: Artistic License Price:
1071 downloads
RubyInline 3.2.1

RubyInline 3.2.1


RubyInline is an embedded C code in Ruby scripts. more>>
Ruby Inline is an analog to Perls Inline::C. Out of the box, it allows you to embed C/++ external module code in your ruby script directly. By writing simple builder classes, you can teach how to cope with new languages (fortran, perl, whatever).
Main features:
- Quick and easy inlining of your C or C++ code embedded in your ruby script.
- Extendable to work with other languages.
- Automatic conversion between ruby and C basic types
- char, unsigned, unsigned int, char *, int, long, unsigned long
- inline_c_raw exists for when the automatic conversion isnt sufficient.
- Only recompiles if the inlined code has changed.
- Pretends to be secure.
- Only uses standard ruby libraries, nothing extra to download.
<<less
Download (0.015MB)
Added: 2005-04-22 License: MIT/X Consortium License Price:
1645 downloads
Inline::CPR 0.12

Inline::CPR 0.12


Inline::CPR is C Perl Run. more>>
Inline::CPR is C Perl Run. Embed Perl in C, ala Inline

SYNOPSIS

#!/usr/local/bin/cpr

int main(void) {

printf("Hello World, Im running under Perl version %sn",
CPR_eval("use Config; $Config{version}")
);

return 0;
}

Is it C? Is it Perl? Its neither, its both. Its CPR!

CPR (C Perl Run) is a "new language" that looks like C. You dont need to compile it. You just run it, much like Perl. As an added bonus, youll get access to the full internals of Perl via the CPR API.

The idea is that you just put a CPR hashbang at the top of your C program and run it like a script. The CPR interpreter will run your C code under Perl.

If your hash doesnt bang, you can run your program like this:

cpr synopsis.cpr

<<less
Download (0.007MB)
Added: 2006-07-06 License: Perl Artistic License Price:
1206 downloads
NativeCall 0.4.1

NativeCall 0.4.1


NativeCall is a Java toolkit that lets you call operating system methods from whithin Java without JNI code. more>>
NativeCall is a Java toolkit that lets you call operating system methods from whithin Java without JNI code.
The current version 0.4.0 supports structs, Strings, primitive types (ints and booleans), byte and char arrays and output parameters.
NativeCall 0.4.0 implements some minor changes to make the API more consistent and easier. NativeCall project also features more unit tests.
Enhancements:
- The previous release could not create multiple pointers correctly.
- Javadoc for Win32Verifier#verifyModuleName(String) was corrected.
- Using a new Holder(null) now means new Holder(new Integer(0)).
- Constructor method IDs are now cached.
- int hashCode() methods have been optimized.
<<less
Download (0.28MB)
Added: 2006-04-20 License: MIT/X Consortium License Price:
1283 downloads
GBrainFuck 0.3.1

GBrainFuck 0.3.1


GBrainFuck is a BrainFuck language interpreter. more>>
The GBrainFuck interpreter (gbf for short) is an interpreter for this language. It is more memory-effective than processor-effective, and it has room for optimization (especially on the code dealing with "[" and "]").

The interpreter is very like a Turing machine: it has an infinite tape, divided in cells that contain the value 0, which can move forward and backward; also, it has a controller unit, that reads, writes and moves the tape. Data in the cells are the size an int in the host machine (usually 32- or 64-bit)

Along with the interpreter, I put various BrainFuck sample programs, of which one of the most intersting is the BrainFuck interpreter in BrainFuck. I hope you enjoy.
<<less
Download (0.016MB)
Added: 2005-04-14 License: GPL (GNU General Public License) Price:
1653 downloads
libproclist 1.0.2

libproclist 1.0.2


libproclist is a very simple and easy to use C library that returns the process listing using ps. more>>
libproclist is a very simple and easy to use C library that returns the process listing using ps.

It is very portable and is known to work on Linux, Irix, AIX, Solaris and OpenBSD. libproclist doesnt, however, work for FreeBSD.

Usage:

The installation is as simple as `configure, `make and `make install.

The interface of the library is:

struct pl_procinfo
{
pid_t pid;
pid_t ppid;
uid_t euid;
gid_t egid;
char *tty;
char *cmd;
};

struct pl_procinfo **pl_proclist;
int pl_proclist_count;

/*
Get the process list.
Return:
-1: Internal error
0: Error executing ps
>0: Number of processes
*/
int pl_get_proclist();

Just call pl_get_proclist() and it will allocate the pl_proclist table which will contain pl_proclist_count elements. Each element is a process.
<<less
Download (0.13MB)
Added: 2006-11-01 License: GPL (GNU General Public License) Price:
1087 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5