Sponsored Content
Full Discussion: Vi in Leopard
Operating Systems OS X (Apple) Vi in Leopard Post 302174090 by xbin on Monday 10th of March 2008 04:14:25 AM
Old 03-10-2008
Vi in Leopard is a symbolic link to vim. Check out welcome home : vim online.
 

7 More Discussions You Might Find Interesting

1. OS X (Apple)

Emacs in terminal for OS X Leopard

I had a question about using Emacs in terminal. Is it not possible to do add ons if you do not have the GUI version? I ask because in everything I have read, it says you need to edit a ~/.emacs file which I do not seem to have. Anyone know how I can add add ons? Thanks a lot in advance (1 Reply)
Discussion started by: USFstudent
1 Replies

2. Shell Programming and Scripting

mac backup script in leopard

Hi all I had a nice simple backup script on my mac running Tiger. I used an Automator 'Run Shell Script' command that loaded psync and backed up one directory on an external drive to a directory on another external drive. This was the command /usr/local/bin/runpsync 0 0 0... (1 Reply)
Discussion started by: Billy T
1 Replies

3. UNIX for Dummies Questions & Answers

Bash Location in Leopard

Hi, Where is bash located in Leopard? According O'Reilly's "Bash Cookbook" Mac OS 10.2 and newer ship with bash as /bin/sh. But I checked and there is a /bin/bash. Which would I use in my shebang when writing BASH scripts? Mike (2 Replies)
Discussion started by: msb65
2 Replies

4. OS X (Apple)

Install X11 Tiger on Leopard

Hi! A bug on X11 leopard prevent me from using a program through ssh channel. My unix guru suggest me to install X11 tiger, in which the bug is absent. So I tried to follow the step given by Ben Byer. My problem is simple, the first step : sudo launchctl unload -w... (4 Replies)
Discussion started by: tipi
4 Replies

5. UNIX for Dummies Questions & Answers

ctrl-o in bash on os X leopard -- how does it work exactly?

I'm going through "learning the bash shell" by newham and rosenblatt. I'm trying to ctro-O to execute and then go on to the next command in the history list, ctrl-o again, etc. (I'm just trying to get a feel for it in case I want to use it). But ctrl-o does nothing. Can someone help me out as to... (5 Replies)
Discussion started by: Straitsfan
5 Replies

6. OS X (Apple)

MacPorts on Snow Leopard

Hello everyone. I was previously using MacPorts 1.8 on Mac OS 10.5.8 without any problems and everything was working well. I recently upgraded to Xcode 3.2 and Mac OS 10.6, since then my MacPorts installation has not been working at all. I deleted it and then reinstalled the .dmg from the... (1 Reply)
Discussion started by: HoldenCaulfield
1 Replies

7. OS X (Apple)

Alpine 2 on Snow Leopard

I've just installed Alpine on Snow Leopard but can't seem to get a default spell checker configured for it. What happened to spell? I can't find it at all on 10.6, must have been some changes. Does anyone know about the default unix spell checker on SL? Thanks! (0 Replies)
Discussion started by: platz
0 Replies
ATOMIC(3)						   BSD Library Functions Manual 						 ATOMIC(3)

NAME
OSAtomicEnqueue, OSAtomicDequeue -- atomic lockless queues SYNOPSIS
#include <libkern/OSAtomic.h> void OSAtomicEnqueue(OSQueueHead *list, void *new, size_t offset); void* OSAtomicDequeue(OSQueueHead *list, size_t offset); DESCRIPTION
The routines OSAtomicEnqueue() and OSAtomicDequeue() operate on singly linked LIFO queues. Ie, a dequeue operation will return the most recently enqueued element, or NULL if the list is empty. The operations are lockless, and barriers are used as necessary to permit thread- safe access to the queue element. offset is the offset in bytes to the link field in the queue element. Important: the memory backing the link field of a queue element must not be unmapped after OSAtomicDequeue() returns until all concurrent calls to OSAtomicDequeue() for the same list on other threads have also returned, as they may still be accessing that memory location. EXAMPLES
typedef struct elem { long data1; struct elem *link; int data2; } elem_t; elem_t fred, mary, *p; OSQueueHead q = OS_ATOMIC_QUEUE_INIT; OSAtomicEnqueue( &q, &fred, offsetof(elem_t,link) ); OSAtomicEnqueue( &q, &mary, offsetof(elem_t,link) ); p = OSAtomicDequeue( &q, offsetof(elem_t,link) ); In this example, the call of OSAtomicDequeue() will return a ptr to mary. RETURN VALUES
The dequeue operation returns the most recently enqueued element, or NULL if the list in empty. SEE ALSO
stdatomic(3), atomic_deprecated(3), spinlock_deprecated(3) HISTORY
These functions first appeared in Mac OS 10.5 (Leopard). Darwin May 26, 2004 Darwin
All times are GMT -4. The time now is 01:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy