bsd

How to turn a regular file into a symlink on Linux

I'm writing an (un)archiving tool and the way it is designed it first creates a regular file from the archive before it examines the special attributes and may decide that this item is a symlink, in fact. Note: Before more people misunderstand me for wanting to make a symlink of a file. No, I write the symlink data, i.e. its path, into ...

iPhone - How do I find the MAC address of the connected WiFi access point?

Without using the private APIs, is it possible to programatically determine the MAC address of the access point that the iPhone is connected to? I understand that this should be doable using the core BSD libraries, but we are new to this, so it would be great if someone can point us to some starter code. Note: we're trying to determine...

Get BSD file descriptor from OSX CoreServices objects.

Hello, I am new to OSX user space development. I've read documentation and googled before asking, but still have no clue about the following. If i am to use CoreServices framework to work with files (FSRef, Forks, URLs, etc.) will i be able to get a raw BSD file descriptor (plain int)? If yes, then how can i do that? The thing is, i wa...

FreeBSD handbook in PDF

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

Propietary modules within GPL and BSD kernels

Since the Linux kernel is GPL and not LGPL I suppose that it is illegal to link proprietary code to it. How does the industry circumvents this? I would expect that the GPL license will force any developer to release under GPL driver and/or kernel module. Maybe I am confused and implementing a new module is not really linking against the...

Are certain open-source licenses more suitable than others for career growth?

As a software engineer/programmer myself, I love the possibility to download the code and learn from it. However building software is what brings food to my table. I have doubts regarding the type of license I should use for my own personal projects or when picking up one project to learn from. There are already many questions about lic...

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...

Is it possible to use distcc in osx for openbsd box?

I found the only one simillar question but that's for linux and xcode only... http://stackoverflow.com/questions/854675/is-it-possible-to-set-up-a-linux-box-with-distcc-to-build-my-xcode-projects im really interested to use OSX GCC for OPENBSD BOX. because my server is really slow, and all I need is file sharing and printing at home. I...

Use OpenBSD's malloc, realloc and free in my program

I would like to use OpenBSD's implementation of malloc, realloc and free on my Debian lenny desktop rather than glibc's. Are they simply drop in replacements: will they work on my Linux desktop ? Which are the file(s) that I need and which OpenBSD package contains them ? ...

IEEE 1003.1 licenses compared

Software or real people can technically copy a BSD software, install it and sell it. What are technical and licence advantages and disadvantages compared to taking Linux or other 1003.1 and delivering or selling it? Which license is most flexible for instance when selling or delivering a computer BSD licence seems more flexible than Lin...

Mac os x systems programmng and bsd

Hi all I'd like to get into some mac os x systems programming and wondered, although mac os x is a Mach and bsd hybrid, would a bsd programming book suffice since I can't seem to find any books on mac os x systems level coding (or mac os x architecture)? Any pointers would be much appreciated. Thanks ste ...

Is there a need for file descriptor control program/syscall ?

I am currently thinking of implementing a syscall in some BSD flavours in order to close a given file descriptor. The file descriptor would be defined as a pair of PID and file descriptor number. It will be useful in order to test/debug a program or others strange purposes. I think that I will do it anyway, you know, for learning purpo...

Source code of the "halt" tool?

Can anyone link up the source of the halt tool? It is a binary usually located in /sbin which shuts down the system. I did some search and I couldn't find it anywhere. ...

Question about the New BSD license

The Zend Framework uses the new BSD license, right? http://framework.zend.com/license I'm developing a CMS that uses ZF. Look at the third condition of the license. Does that mean that I cannot write, in any place of my CMS's website, that it uses ZF? Is it illegal ff I write: "... is a Content Management System based on Zend Framewor...

Use kqueue to determine hangup on the other side of the socket or exceptional state of the socket.

I've read man 2 kqueue but have not found out how I can get notified about a socket hangup or exceptional condition of the socket without registering it with EVFILT_READ or EVFILT_WRITE. Apart from this it is not fully clear how kqueue signals exceptional states of sockets altogether. Thanks for your answer in advance. ...

C++ - stl_alloc.h missing on GCC4.4.4 on Fedora 12?

I am in the process of porting an application from a BSD platform onto a Linux box. When compiling, I have found that some of the header files call for <bits/stl_alloc.h>, which is missing from my computer. Does anyone have any idea as to where I can find this and/or why it is missing? I am running a Fedora 12 machine with GCC4.4.4. ...

Using a BSD lisence library, which uses a GPL library, for the iPhone

I'm getting rather confused when looking over the details of the various licenses and was wondering if someone could give me a hand. Basically, I'm looking at making a simple SSH client to release on the app store. All other SSH clients on the app store charge and, although I'm sure they'd be better than what I'd make, I'd like to add a ...

Is there a good reason to write my own daemonize function instead of using daemon(3)?

There are a lot of example implementations of daemons on the net. Most that I saw do not use the daemon(3) function to run the program in the background. Is that just a matter of taste, ignorance, or is there a good reason to write my own daemonize function? Is there a specific disadvantage in using daemon(3)? Is it insecure? ...

How long does GPL Copyright last?

How long from when the code is 1st written or distributed, until GPL Copyrighted material falls into public domain, in the United States? I'm guessing 120 years, but I'm not a lawyer. Also how has this(GPL'ed software copyright duration) changed if any over the years? Please Elaborate and Clarify my understanding. ...

Mac: How to get a BSD block device name for a mount path.

Hello, I have a mount point path like "/Volumes/Something" which i already known is a root directory for a mounted local volume. I need to figure out the BSD block device node name for volume mounted at that directory for example "disk1s1". Any advice on how can i dig this up? I also wouldn't mind some additional information like device...