freebsd

Linux FreeBSD shared object problem

Hi Guys, I am trying to build an application for freebsd which links to a shared object "share.so" built on linux. I also have freebsd linux compatible libraries under /usr/compat/linux/lib. I am able to compile my application. But while linking to "share.so" I am getting bunch of errors as share.so(built on linux) needs to access librar...

Question about BSD license.

The zend framework is in BSD if i make a leet product on zend can i sell it to ppl ? ...

ant to detect freeBSD

Is there a way to detect freeBSD with ant. I used os.name it shows it as linux. I want to differentiate between freeBSD and linux. ...

implementing ioctl() commands in FreeBSD

I am adding some code to an existing FreeBSD device driver and I am trying to pass a char* from user space to the driver. I've implemented a custom ioctl() command using the _IOW macro like so: #define TIBLOOMFILTER _IOW(0,253,char*) My call looks something like this: int file_desc = open("/dev/ti0", O_RDWR); ioctl(file_desc, TIBLOOMF...

Running script in FreeBSD

First steps in FreeBSD: trying to run my installation script. Fast help needed: # ls configure # file configure configure: Bourne-Again shell script text executable # ./configure ./configure: Command not found # configure configure: Command not found What is wrong, how can I execute this script? ...

Linux program in FreeBSD

...

Unix and FreeBSD

My final goal is to write the program which can run on the Unix OS. I know that there are many Unix versions, and don't know exactly for now which one I need to support. I cannot install any Unix OS right now. The only thing I can do is to use free OS which is close to Unix as much as possible. Is FreeBSD a good choice for this? I know t...

check whether mmap'ed address is correct

I'm writing a high-loaded daemon that should be run on the FreeBSD 8.0 and on Linux as well. The main purpose of daemon is to pass files that are requested by their identifier. Identifier is converted into local filename/file size via request to db. And then I use sequential mmap() calls to pass file blocks with send(). However sometime...

How do I remove HTTP authentication on a website on a FreeBSD Server?

Hi guys, Sorry that I haven't done much of my own research but I do not know how to set up basic authentication, nevermind removing it! Thanks. EDIT: Sorry, what was I thinking, its in httpd.conf or includes! ...

how to use quad core CPU in application

For using all the cores of a quad core processor what do I need to change in my code is it about adding support of multi threading or is it which is taken care by OS itself. I am having FreeBSD and language I am using is C++. I want to give complete CPU cycles to my application at least 90%. ...

How can I create a FreeBSD package using EPM that has the ORIGIN @comment?

I'm building packages of our internal software products using EPM, and over time these packages (of which we have a large number) clutter up the output of pkg_delete and pkg_add with the following general kind of messages: err: pkg_add: package MYPACKAGE has no origin recorded I can see from some old FreeBSD lists that the +CONTENTS f...

how to disable creating java heap dump after VM crashes?

JVM runs on FreeBSD with 18Gb memory. creating core file takes about hour, which is very slow, so i need some way to disable it. ...

in free(): error: junk pointer, too high to make sense Segmentation fault: 11 (core dumped) gprof

I am trying to profile my application. For this I compiled my code with -pg and -lc_p option, it compiled successfully During run time I am getting the following error. in free(): error: junk pointer, too high to make sense Segmentation fault: 11 (core dumped) Doing GDB gives error as. (gdb) b main Breakpoint 1 at 0x5124d4: (gdb) r w...

FreeBSD or NetBSD based commercial TCP/IP stack vendor?

Hi - Receiving recommendations for commercial TCP/IP stack implementation based on FreeBSD or NetBSD. Requirements are similar to a typical desktop PC running a browser, email and streaming voice/video. Which is to say a rich network functionality for a end-host type of device with mature implementation and reasonable performance. BSD ...

C variable declarations after function heading in definition

When reading some FreeBSD source code (See: radix.h lines 158-173), I found variable declarations that followed the "function heading" in the definition. Is this valid in ISO C (C99)? when should this be done in production code instead of just declaring the variables within the "function heading?" Why is it being done here? I refer to...

FreeBSD handbook in PDF

Could I get FreeBSD handbook in PDF without converting? ...

Where can I obtain a list of UNIX system calls?

Where are some lists of system calls on UNIX? This wasn't my original question, but thanks anyway :) ...

PF, load balanced gateways, and Squid

Hi, So I have a FreeBSD router running PF and Squid, and it has three network interfaces: two connected to upstream providers (em0 and em1 respectively), and one for LAN (re0) that we serve. There is some load balancing configured with PF. Basically, it routes all traffic to ports 1-1024 through one interface (em0) and everything else t...

Any book that covers internals of recent versions of Unix OS

This summer I'm getting into UNIX (mostly *BSD) development. I've graduate level knowledge about operating systems. I can also understand the code & read from here and there but the thing is I want to make most of my time. Reading books are best for this. From my search I found that these two books "Unix Internals: The New Frontiers"...

Best way to install multiple versions of Apache, PHP and MySQL on a single FreeBSD host

I want a test- and development-environment for web using Apache, PHP and MySQL. I need to be able to test a single web-application with multiple versions of PHP (5.2, 5.3, etc) and multiple versions of MySQL (5.0, 5.1, 5.5, etc). It shall be hosted on a FreeBSD server. My idea is to compile each version into a directory structure and ru...