Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

test_bit(9) [centos man page]

TEST_BIT(9)						     Basic C Library Functions						       TEST_BIT(9)

NAME
test_bit - Determine whether a bit is set SYNOPSIS
int test_bit(int nr, const volatile unsigned long * addr); ARGUMENTS
nr bit number to test addr Address to start counting from COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 TEST_BIT(9)

Check Out this Related Man Page

ATOMIC_DEC(3)						   BSD Library Functions Manual 					     ATOMIC_DEC(3)

NAME
atomic_dec, atomic_dec_32, atomic_dec_uint, atomic_dec_ulong, atomic_dec_ptr, atomic_dec_64, atomic_dec_32_nv, atomic_dec_uint_nv, atomic_dec_ulong_nv, atomic_dec_ptr_nv, atomic_dec_64_nv -- atomic decrement operations SYNOPSIS
#include <sys/atomic.h> void atomic_dec_32(volatile uint32_t *ptr); void atomic_dec_uint(volatile unsigned int *ptr); void atomic_dec_ulong(volatile unsigned long *ptr); void atomic_dec_ptr(volatile void *ptr); void atomic_dec_64(volatile uint64_t *ptr); uint32_t atomic_dec_32_nv(volatile uint32_t *ptr); unsigned int atomic_dec_uint_nv(volatile unsigned int *ptr); unsigned long atomic_dec_ulong_nv(volatile unsigned long *ptr); void * atomic_dec_ptr_nv(volatile void *ptr); uint64_t atomic_dec_64_nv(volatile uint64_t *ptr); DESCRIPTION
The atomic_dec family of functions decrement (by one) the variable referenced by ptr in an atomic fashion. The *_nv() variants of these functions return the new value. The 64-bit variants of these functions are available only on platforms that can support atomic 64-bit memory access. Applications can check for the availability of 64-bit atomic memory operations by testing if the pre-processor macro __HAVE_ATOMIC64_OPS is defined. SEE ALSO
atomic_ops(3) HISTORY
The atomic_dec functions first appeared in NetBSD 5.0. BSD
April 11, 2007 BSD
Man Page

8 More Discussions You Might Find Interesting

1. Programming

Determining free(available) memory in MV linux

HI I'm a rookie in C programming and I'm working in Monta Vista Linux. I have to write a program that displays free memory. I have memtester(allready written by someone else) and now I have to type how much amount of memory tester will test and I want that memtester finds out himself how much of... (11 Replies)
Discussion started by: trancedeejay
11 Replies

2. UNIX Desktop Questions & Answers

Controlling icon placement?

Hi, I'm using xterm and aixterm with Mwm on AIX, and having trouble controlling icon placement when minimising windows. Basically when I run an xterm or aixterm I want to be able to specify where the icon will be if minimised. The man page mentions the "#geometry Geometry" option to aixterm,... (1 Reply)
Discussion started by: cunningdavid
1 Replies

3. What is on Your Mind?

Album Cover Contest

This one's inspired by Smiling Dragons Movie Screenshot contest The rules are simple: 10 Albums are posted, with band/artist/name information either removed or made illegible. To score a point on a cover you'll have to post the name of the band/artist, album name, and release year. If either... (18 Replies)
Discussion started by: pludi
18 Replies

4. Shell Programming and Scripting

script to separate bilingual text file

Hi all I have a bilingual text file, one language is English and another one is Assamese. I want to write English language text into one file and Assamese language text into another file. For Example- input file is as dsad জন gdfkghdfkghkdf hksdjhfkjsdfhk hksjdhfksdjf আনজনৰ মনত ghgj jkj... (11 Replies)
Discussion started by: wildhorse
11 Replies

5. Shell Programming and Scripting

Is there any option to verify size at destination end after NDM?

Hi, I am using ndmcli to send files from one solaris server to another one. I use the below one in script and verify the status. select stat det=yes pnum="$PNUM" Is there any option to automate in script in verifying destination size with source after doing NDM? :mad: (10 Replies)
Discussion started by: gthangav
10 Replies

6. Shell Programming and Scripting

How to get script to wait until status is true before continuing?

I'm extremely new to shell scripting so I apologize for the crudeness of my descriptions. I am editing a script that will write files (e.g. Job0_A.com, Job1_A.com, etc.) and then run them through a program called gaussian (computational chemistry program). The script will then take the output files... (10 Replies)
Discussion started by: butson
10 Replies

7. AIX

Users can not login with telnet 3004-031

when all the users try to login using telnet they will counter the error 3004-031 . and they can not access the system . our application is sbglobus (temenos ) (6 Replies)
Discussion started by: thecobra151
6 Replies

8. Shell Programming and Scripting

Search file in the whole machine

friends I need to find a file as I can do this is on AIX I find the function find (2 Replies)
Discussion started by: tricampeon81
2 Replies