Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Looking to install Unix on my Mac Post 302149143 by guhan777 on Wednesday 5th of December 2007 03:12:06 AM
Old 12-05-2007
Mac OS X

I have used a variety of UNIX flavors including Solaris, FreeBSD, HP-UX, Linux, and OS X. I can tell you first hand it matters little what flavor you use if you are new to the UNIX world.

Both Mac OS X and different distributions on Linux provide bash. bash is the Bourne Again SHell. You can get to know the nuances of bash right on your Mac running OS X. If you become proficient at bash you can hold your own in the UNIX world. You also have access to editors such as Emacs and vi on the Mac, both come as part of the base install. Depending on the language you are programming in, you will most likely find the compiler already on the Mac (like gcc, g++, javac).

I like systems where I have everything already available. Today, installing packages is a breeze using Linux tools such as yum, apt-get, or up2date. In the "olden" days it used to be a nightmare - we had to solve dependencies, edit header files, and do a lot of praying. So maybe that is why I prefer systems where everything is ready to go.

Enjoy,
Guhan
guhan.net - #1 Provider of Technical Consulting
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

The what and how to install UNIX on a new mac

Firstly, Happy New Year to all. Secondly, my earnest request... I am an absolute novice in UNIX. Have work around alittle with the mac os Terminal which encourage me to get myself a used G3 powerbook. I would like to work full fledge installing a unix shell onto it (without GUI). Could... (4 Replies)
Discussion started by: pharme
4 Replies

2. OS X (Apple)

install windows on mac

Hello all, i want to install windows on mac and when i search i found that there is a program called Parallels Desktop to install windows on mac but i want it on the laptop not on the program does it work? or there is another anyway to install it on mac..?? Thanks in advanced (8 Replies)
Discussion started by: Reham$
8 Replies

3. OS X (Apple)

You cannot install Mac OS X on this volume.

I lost the firmware password for my MacBook Pro 13" I pulled one of the two DIMMs and did a PRAM reset but the password is intact. How do I reset the password. (1 Reply)
Discussion started by: JustOne
1 Replies

4. UNIX for Dummies Questions & Answers

paritioning mac harddrive during arch install

hi so i am a noob to linux but not computers in general and have decided i want to give linux a go. because i like to make things hard for myself and because someone told me i wouldnt be able to figure it out iv decided to try arch so iinstalled it last night and it installed fine and i got... (0 Replies)
Discussion started by: Irish
0 Replies

5. AIX

Power Mac G4 install AIX

hi all ! i want install aix on power mac g4 . does it work correctly ? thanks (1 Reply)
Discussion started by: ijj
1 Replies
PCAP_GET_SELECTABLE_FD(3)				     Library Functions Manual					 PCAP_GET_SELECTABLE_FD(3)

NAME
pcap_get_selectable_fd - get a file descriptor on which a select() can be done for a live capture SYNOPSIS
#include <pcap/pcap.h> int pcap_get_selectable_fd(pcap_t *p); DESCRIPTION
pcap_get_selectable_fd() returns, on UNIX, a file descriptor number for a file descriptor on which one can do a select() or poll() to wait for it to be possible to read packets without blocking, if such a descriptor exists, or -1, if no such descriptor exists. Some network devices opened with pcap_create() and pcap_activate(), or with pcap_open_live(), do not support select() or poll() (for example, regular network devices on FreeBSD 4.3 and 4.4, and Endace DAG devices), so -1 is returned for those devices. Note that in: FreeBSD prior to FreeBSD 4.6; NetBSD prior to NetBSD 3.0; OpenBSD prior to OpenBSD 2.4; Mac OS X prior to Mac OS X 10.7; select() and poll() do not work correctly on BPF devices; pcap_get_selectable_fd() will return a file descriptor on most of those versions (the exceptions being FreeBSD 4.3 and 4.4), but a simple select() or poll() will not indicate that the descriptor is readable until a full buffer's worth of packets is received, even if the read timeout expires before then. To work around this, an application that uses select() or poll() to wait for packets to arrive must put the pcap_t in non-blocking mode, and must arrange that the select() or poll() have a timeout less than or equal to the read timeout, and must try to read packets after that timeout expires, regardless of whether select() or poll() indicated that the file descriptor for the pcap_t is ready to be read or not. (That workaround will not work in FreeBSD 4.3 and later; however, in FreeBSD 4.6 and later, select() and poll() work correctly on BPF devices, so the workaround isn't necessary, although it does no harm.) Note also that poll() doesn't work on character special files, including BPF devices, in Mac OS X 10.4 and 10.5, so, while select() can be used on the descriptor returned by pcap_get_selectable_fd(), poll() cannot be used on it those versions of Mac OS X. Kqueues also don't work on that descriptor. poll(), but not kqueues, work on that descriptor in Mac OS X releases prior to 10.4; poll() and kqueues work on that descriptor in Mac OS X 10.6 and later. pcap_get_selectable_fd() is not available on Windows. RETURN VALUE
A selectable file descriptor is returned if one exists; otherwise, -1 is returned. SEE ALSO
pcap(3), select(2), poll(2) 22 July 2011 PCAP_GET_SELECTABLE_FD(3)
All times are GMT -4. The time now is 08:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy