Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

swab(3c) [opensolaris man page]

swab(3C)						   Standard C Library Functions 						  swab(3C)

NAME
swab - swap bytes SYNOPSIS
#include <stdlib.h> void swab(const char *src, char *dest, ssize_t nbytes); XPG4, SUS, SUSv2, SUSv3 #include <unistd.h> void swab(const void *restrict src, void *restrict dest, ssize_t nbytes); DESCRIPTION
The swab() function copies nbytes bytes, which are pointed to by src, to the object pointed to by dest, exchanging adjacent bytes. The nbytes argument should be even. If nbytes is odd swab() copies and exchanges nbytes-1 bytes and the disposition of the last byte is unspec- ified. If copying takes place between objects that overlap, the behavior is undefined. If nbytes is negative, swab() does nothing. ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5), standards(5) SunOS 5.11 1 Nov 2003 swab(3C)

Check Out this Related Man Page

kvm_kread(3KVM) 					    Kernel VM Library Functions 					   kvm_kread(3KVM)

NAME
kvm_kread, kvm_kwrite, kvm_uread, kvm_uwrite - copy data to or from a kernel image or running system SYNOPSIS
cc [ flag... ] file... -lkvm [ library...] #include <kvm.h> ssize_t kvm_kread(kvm_t *kd, uintptr_t addr, void *buf, size_t nbytes); ssize_t kvm_kwrite(kvm_t *kd, uintptr_t addr, void *buf, size_t nbytes); ssize_t kvm_uread(kvm_t *kd, uintptr_t addr, void *buf, size_t nbytes); ssize_t kvm_uwrite(kvm_t *kd, uintptr_t addr, void *buf, size_t nbytes); DESCRIPTION
The kvm_kread() function transfers data from the kernel address space to the address space of the process. nbytes bytes of data are copied from the kernel virtual address given by addr to the buffer pointed to by buf. The kvm_kwrite() function is like kvm_kread(), except that the direction of the transfer is reversed. To use this function, the kvm_open(3KVM) call that returned kd must have specified write access. The kvm_uread() function transfers data from the address space of the processes specified in the most recent kvm_getu(3KVM) call. nbytes bytes of data are copied from the user virtual address given by addr to the buffer pointed to by buf. The kvm_uwrite() function is like kvm_uread(), except that the direction of the transfer is reversed. To use this function, the kvm_open(3KVM) call that returned kd must have specified write access. The address is resolved in the address space of the process speci- fied in the most recent kvm_getu(3KVM) call. RETURN VALUES
On success, these functions return the number of bytes actually transferred. On failure, they return -1. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
kvm_getu(3KVM), kvm_nlist(3KVM), kvm_open(3KVM), attributes(5) SunOS 5.11 2 May 2002 kvm_kread(3KVM)
Man Page

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Endian Conversion

Hi everybody, I met this week a problem. For now, we used TRU64 system based on alpha. Now, we're installing UP-UX systems (on Itanium). And we have problem with our files. Indeed, we use file with COMP-3, COMP-5 data. These files are used on both platforms. (we use also TXT files which... (1 Reply)
Discussion started by: bigmike59270
1 Replies

2. UNIX for Advanced & Expert Users

Reading tapes from other platform

I hope someone can provide some suggestions on my problem. I'm trying to read some catridge tapes created (tar or dd format) from SUN or SGI onto an ancient AT&T Unix System V/386 Rel 3.2 machine. But everything I tried to read in the tape on the AT&T machine there is this error message... (1 Reply)
Discussion started by: Stefan L
1 Replies

3. UNIX for Advanced & Expert Users

How to determince CD is bootable or not

Hi, How can i determine the /dev/scd0 is bootable or not from command-line with single-line command according to ElTorito specification or something else? Regards, (2 Replies)
Discussion started by: oduth
2 Replies

4. Shell Programming and Scripting

FTP script variable issue

Hi , I have a following code ,I need to send two files on FTP server using single code UDL_FTIHOST_1=podftiapp02.com UDL_FTIUSER_1=dbsunny UDL_FTIPWD_1=sunny@11 UDL_FTIHOST_2=podftiapp01.com UDL_FTIUSER_2=dbamy UDL_FTIPWD_2=amy@12 count=2 i=1 while do FTIHOST=$(echo... (3 Replies)
Discussion started by: sonu_pal
3 Replies

5. Solaris

Problems burning DVD-RW media

Hello, I have Solaris 10 U13 and I try to burn an ISO image. First try: # cdrw -i myfile.iso Looking for CD devices... Device not ready. Second try: # cdrecord dev=0,0,0 -v -multi -pad -data myfile.iso cdrecord: No write mode specified. cdrecord: Asuming -tao mode.... (3 Replies)
Discussion started by: sluge
3 Replies

6. UNIX for Beginners Questions & Answers

Remoute hosted UNIX/Linux Machine Free

Hi Comrades, I am interested if there is the global internet network I can find free access to the Linux or unix server to create the own account to have some practice. Thanks a lot for your advice and comments. BR, Dembi (2 Replies)
Discussion started by: Dembi
2 Replies

7. Shell Programming and Scripting

Help with output 32bit signed integer

How do I store a number as a 32-bit little-endian Signed Integer? (2 Replies)
Discussion started by: Stuperfied
2 Replies