bsd

Reading Other Process' Memory in Mac OS / BSD

I've been attempting to understand how to read the memory of other processes on Mac OS, but I'm not having much luck. I've seen many examples online using ptrace with PEEKDATA and such, however it doesn't have that option on BSD (man page). Does anyone know how I might do this? Thank you. ...

What's the best way to get to know linux or BSD kernel internals?

I'd like to gain better knowledge of operating system internals. Process management, memory management, and stuff like that. I was thinking of learning by getting to know either linux or BSD kernel. Which one kernel is better for learning purposes? What's the best place to start? Can you recommend any good books? ...

Web server statics repository -or- ZFS vs. NTFS

Hello everyone. My goal is to maintain web file server separately from main ASP.NET application server for better scalability. Web file server will store a lot of files downloaded by users. So the question is: Is it worth to adopt FreeBSD + Apache + ZFS, or good old IIS will be сonvinient enough? ...

How do you choose a Linux/Unix/BSD distribution?

I am attempting to choose a Linux, Unix, and/or BSD distribution for development purposes. I want to be able to do things like write shell scripts, develop C, C++, Java, Ruby, Python, etc. apps in a *nix environment, and see things from a different perspective. I'm planning on using a Virtual Machine to do all of this. My first stop was ...

Developing drivers with no info

How does the open-source/free software community develop drivers for products that offer no documentation? ...

Hooking into the TCP Stack in C

It's not just a capture I'm looking to do here. I want to first capture the packet, then in real time, check the payload for specific data, remove it, inject a signature and reinject the packet into the stack to be sent on as before. I had a read of the ipfw divert sockets using IPFW and it looks very promising. What about examples in m...

Detecting a chroot jail from within

How can one detect being in a chroot jail without root privileges? Assume a standard BSD or Linux system. The best I came up with was to look at the inode value for "/" and to consider whether it is reasonably low, but I would like a more accurate method for detection. [edit 20080916 142430 EST] Simply looking around the filesystem is...

What is the status of POSIX asynchronous I/O (AIO)?

There are pages scattered around the web that describe POSIX AIO facilities in varying amounts of detail. None of them are terribly recent. It's not clear what, exactly, they're describing. For example, the "official" (?) web site for Linux kernel asynchronous I/O support here says that sockets don't work, but the "aio.h" manual pages...

Can I use LGPL library in BSD/X11 licensed project?

I am writing a small general purpose library, which i would like to use in my BSD/X11 licensed project. I want to include globalisation support in it, specifficaly, i would like to use Glib::ustring from glibmm, which is licensed under LGPL. Here comes the question: With regards to BSD/X11 being more permissive than LGPL, can i use this ...

dTrace scripts and tools

I've recently began using dTrace and have noticed just how awesome it is. Its the perfect tool for profiling without placing the burden on programmers to set up hundreds of probes in their applications. I've found some nice one liner and sample scripts here and there, but I was wondering about what scripts, tools and links others might ...

Open Source: Why not release into Public Domain?

I have recently been wondering why so little code is ever released as 'Public Domain'. MIT and BSD licenses are becoming extremely popular and practically only have the restriction of license propagation. The reasons I can think of so far are: Credit - aka Prestige, Street-cred, 'Props', etc. Authors don't want usage of the code rest...

Straw Poll - K&R vs BSD

No holy wars please - (ultimately a standardised and consistently-observed house-style on a project always wins out whatever is chosen), but I am genuinely interested in the preferences of people for K&R style formatting: public bool CompareObjects(object first, object second) { if (first == second) { return true; } else...

System Calls: UNIX, Linux, BSD and Solaris variations

Are there differences between the amount of syscalls in the major *NIX variants ? Which syscalls would be supported universally ? ...

Is Ms-CL BSD-compatible?

Does anyone know if the Microsoft Community License (Ms-CL) is compatible with the BSD license? That is, if I am working on open-source code that is BSD-licensed, can I reference a library that is Ms-CL-licensed? ...

What's the Solaris equivalent to the BSD's 'tail -n100'?

I've looked this up a thousand times, and I always forget it, so, here for eternity: Solaris has a bit of an awkward syntax for tail. How do I do the equivalent of BSD's tail -nN? What I want are the last N lines from tail's input. ...

How can you get script name in BSD process accounting file?

I'm trying to write a program to process the BSD-style process accounting file under Linux (/var/account/pacct). When we start a script with either ./script_name or bash script_name, the process accounting record actually gets written out the the command bash. Presumably because that's the actual program doing the running. What we'd li...

What is the effect of changing system time on sleeping threads?

If you take a look at the clock_gettime() function, which is available in all BSDs and is actually defined as part of the POSIX standard, you see that there is support for at least three types of clocks (many systems support more than these clocks, but actually the POSIX standard only demands one to be present, all others are optional): ...

BSD License, reference to other software

Hi. Where do the reference to other softwares that my software uses(and I shipped with) and their authors? Here is the scenario. I have this software done by the technology department of my college(IGRAFU). The software uses other softwares made by other individuals and institutions(Like Phyml and Hypertree). They are all open source an...

In which situations is it advisable to opt for BSD systems instead of Linux?

For an everyday-user with new hardware Linux seems for me the natural choice if somebody is looking for an alternative to Windows. But when does it make sense to give the BSD variants a try? ...

remove an ACL entry for just ONE user in MacOS? oddly difficult

I'm trying to remove an ACL set for johndoe from all the folders recursively on one of my drives without hosing any other entries! Anyone know how to do this without affecting the ACLs that already exist for other groups/users? I'm looking for the Mac equivalent of "setfacl -d u:johndoe" I know you can use chmod to remove a rule from m...