I have FreeBSD 7.2 on my server. Trying to install some archiver, I upgraded all ports with commands portsnap fetch, portsnap extract.
And now when I try to compile any program with make, I get a lot ...

Where is the definition of function copyout() in FreeBSD for AMD64?
(http://www.unix.com/man-page/FreeBSD/9/copyout/)
The only place I can find is in sys/sys/systm.h.
The definition/declaration is:
...

I have a script that we use on Ubuntu (Linux) and I'd like to convert it to be used on both Ubuntu (Linux) and MacOS X. grep on Linux is different than grep on FreeBSD (i.e. MacOS X); grep on MacOS X ...

In my continuing crusade not to use MS Excel, I'd like to process some data, send it to a file, and then insert some records from a separate file into a third file using field $1 as the index. Is this ...

I'm trying to watch for size change on directory using kqueue, is this possible? The reason for this because I am watching directories and whenever an event triggers, I stat the directory and compare ...

I want to add custom syscall to freebsd(school work). I google hundreds of time. there is no right solution for it.
my homework is: "Add custom syscall to freebsd kernel and recompile the kernel and ...

I just got a new job and one of my reponsibilities is to manage a couple of FreeBSD boxes running PF as a packet filtering solution. The firewalls used to be managed by a single person, but now we are ...

I'm trying to port OpenBSD make to Linux but I'm confused by the use of the __only_inline macro. This macro comes from /usr/include/sys/cdefs.h which defines it as follows:
/*
* __only_inline makes ...

I'm looking for a way to refresh/re-enumerate the pci device list.
In Linux, you can remove a particular pci device, and then after preforming a "rescan" the device will appear again.
In Linux it is ...

Previously I was receiving warnings from gcc -std=c99 that usleep() was implicitly declared. Then I stumbled across this stackoverflow post, which led me to use -D_BSD_SOURCE. However, now gcc tells ...

I am writing a Makefile which is supposed to work on Linux and on MacOS systems. I make use of the sed program.
It turns out that BSD sed and gnu sed differ in a small but crucial detail. I cite from ...

Hello I have a problem when I am writing the server using the socket api. I always get this error: "Socket operation on non-socket"
struct sockaddr_in addr;
int port = 10000;
int sd;
memset((char *) ...

Windows (NtQueryObject), Linux (/proc/self/fd/x) and OS X (F_GETPATH) all have methods for retrieving the path of a currently open file descriptor. Supposedly so does FreeBSD via something like the ...

I am making a cocoa application, which creates some folders at my specified location in the user's environment. Now i want to protect these folders from any type of read, write, copy, drag access from ...

I am making a python module to help manage some tasks in Linux (and BSD) - namely managing Linux Containers. I'm aware of a couple of the ways to run terminal commands from python, such as Popen(), ...

I want to ask you about what I must do if I use a library under GPL, LGPL , zlib or BSD Licence in a project which will not be open source, I understood that I have to copy the licence but that's all? ...

I am writing a script, while alloting a kernel memory thro' kmem_zalloc() the return address is a pointer and I can't able to capture in any mode. Redirecting to standard output didn't work. how to ...

I thought this would be more of a one liner to be honest.
Pretty simple in notion:
using find on Mac OS X, locate files that meet a criteria, in my case:
all file and directories in a directory:
find ...

I'm a newbie into the unix and linux world. I'd like to know very clear about the things I'm learning and their background. But I find there's complex relationship between the followings: unix, BSD, ...