Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Installing Software on Multiple Systems Post 302174924 by ldb88 on Wednesday 12th of March 2008 03:00:39 PM
Old 03-12-2008
Are Solaris 2.8 and Solaris 8 the same thing?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

installing software

when i d/l files from net "/usr/port/editor/koffice then make" i don't know what excactly have to do after when it finnished d/l it and configure i guess what its done downloading file it configures :confused: the file what do i have to do next I use FREEBSD 4.5 (3 Replies)
Discussion started by: challenger
3 Replies

2. AIX

Installing software on a large number of Systems

Hi, I'm new to the unix world and I would like to know if anyone can give me some pointers as to how to install and run a program on a large number of servers easily. Can anyone offer any pointers please? F.y.i I have developed a program in C to collect performance data from AIX systems. ... (1 Reply)
Discussion started by: StuBob
1 Replies

3. UNIX Desktop Questions & Answers

installing new software

Hello, I recently downloaded and installed fedora core 3, and I am triyng to install other software like movie players and so on, when ever I download software for this operating system, I recieve with the software a text file explaining how to install it. The installation instrucions are allways... (1 Reply)
Discussion started by: st_matan
1 Replies

4. UNIX for Dummies Questions & Answers

Backup Software for UNIX systems

Hi, which software is recommended for backup of UNIX systems ( e.g. SUN, Solaris ). Backup software and database e.g. Oracle. One possibility is Networker, but license is expensive and also service contract. Best regards Dieter (2 Replies)
Discussion started by: rhacodactylus
2 Replies

5. Solaris

Installing SNMP Agent on Solaris Systems

Hi, I am trying to apply the steps in the below link: http://manageengine.adventnet.com/products/applications_manager/help/appendix/snmp-agent-discovery.html#solaris but I couldn't continue with the step number 2 ... what is the path of C compiler. export PATH=<gcc path>:$PATH ... (3 Replies)
Discussion started by: adel8483
3 Replies

6. SuSE

installing software

hi, i have installed suse linux (10) at my home. can anyone tell me how do i install the softwares like players , messengers etc. i am new to linux ,i am learning now. can anyone suggest or post any material so that i can easily go through and learn. thanks in advance. vishwa. (6 Replies)
Discussion started by: viswareddy.32
6 Replies

7. UNIX for Dummies Questions & Answers

Installing Software

Hi all, So I remotly log on to one of the unix boxes we have at work. I want to use a software that is not installed on the server. What's better? to install it locally in my home folder and use it, or to ask the system admin to install it on the server? and what's the main difference? I asuume... (1 Reply)
Discussion started by: Rachel Ross
1 Replies

8. UNIX Desktop Questions & Answers

Installing software

Greetings, all. I'm a newcomer here, and I appreciate the forum to ask questions. Here is the situation: I am installing software on a network hard-drive (NAS), to add functionality to it. The OS is in a read-only flash partition. Someone else hacked the firmware to install Busybox on this... (1 Reply)
Discussion started by: jhansen
1 Replies

9. Solaris

Help installing WINE and other software

ive installed the open solaris 9 and i have downloaded wine but i dont have a clue how to install it ive unzipd the file but when i click it it just does nothing it opens but its just files im new to solaris i would realy like to know how to install and run programs like vlc player and things any... (19 Replies)
Discussion started by: drdex
19 Replies

10. Solaris

Installing software -going insane

I have Solaris 10 update 11 installed on a virtual machine which I use for my lunix class (I'm studying I.T. but have little unix experience). So I have root access* I'm also do C programming in my course and would love to do it on my Solaris machine. So I looked into installing GCC and... (5 Replies)
Discussion started by: goformickey
5 Replies
SYSCALL(2)						     Linux Programmer's Manual							SYSCALL(2)

NAME
syscall - indirect system call SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */ #include <unistd.h> #include <sys/syscall.h> /* For SYS_xxx definitions */ int syscall(int number, ...); DESCRIPTION
syscall() is a small library function that invokes the system call whose assembly language interface has the specified number with the specified arguments. Employing syscall() is useful, for example, when invoking a system call that has no wrapper function in the C library. syscall() saves CPU registers before making the system call, restores the registers upon return from the system call, and stores any error code returned by the system call in errno(3) if an error occurs. Symbolic constants for system call numbers can be found in the header file <sys/syscall.h>. RETURN VALUE
The return value is defined by the system call being invoked. In general, a 0 return value indicates success. A -1 return value indicates an error, and an error code is stored in errno. NOTES
syscall() first appeared in 4BSD. Architecture-specific requirements Each architecture ABI has its own requirements on how system call arguments are passed to the kernel. For system calls that have a glibc wrapper (e.g., most system calls), glibc handles the details of copying arguments to the right registers in a manner suitable for the architecture. However, when using syscall() to make a system call, the caller might need to handle architecture-dependent details; this requirement is most commonly encountered on certain 32-bit architectures. For example, on the ARM architecture Embedded ABI (EABI), a 64-bit value (e.g., long long) must be aligned to an even register pair. Thus, using syscall() instead of the wrapper provided by glibc, the readahead() system call would be invoked as follows on the ARM architecture with the EABI: syscall(SYS_readahead, fd, 0, (unsigned int) (offset >> 32), (unsigned int) (offset & 0xFFFFFFFF), count); Since the offset argument is 64 bits, and the first argument (fd) is passed in r0, the caller must manually split and align the 64-bit value so that it is passed in the r2/r3 register pair. That means inserting a dummy value into r1 (the second argument of 0). Similar issues can occur on MIPS with the O32 ABI, on PowerPC with the 32-bit ABI, and on Xtensa. The affected system calls are fadvise64_64(2), ftruncate64(2), posix_fadvise(2), pread64(2), pwrite64(2), readahead(2), sync_file_range(2), and truncate64(2). Architecture calling conventions Every architecture has its own way of invoking and passing arguments to the kernel. The details for various architectures are listed in the two tables below. The first table lists the instruction used to transition to kernel mode, (which might not be the fastest or best way to transition to the kernel, so you might have to refer to the VDSO), the register used to indicate the system call number, and the register used to return the system call result. arch/ABI instruction syscall # retval Notes ----------------------------------------------------------------------------------- arm/OABI swi NR - a1 NR is syscall # arm/EABI swi 0x0 r7 r1 blackfin excpt 0x0 P0 R0 i386 int $0x80 eax eax ia64 break 0x100000 r15 r10/r8 parisc ble 0x100(%sr2, %r0) r20 r28 s390 svc 0 r1 r2 NR may be passed directly with s390x svc 0 r1 r2 "svc NR" if NR is less than 256 sparc/32 t 0x10 g1 o0 sparc/64 t 0x6d g1 o0 x86_64 syscall rax rax The second table shows the registers used to pass the system call arguments. arch/ABI arg1 arg2 arg3 arg4 arg5 arg6 arg7 ---------------------------------------------------------- arm/OABI a1 a2 a3 a4 v1 v2 v3 arm/EABI r1 r2 r3 r4 r5 r6 r7 blackfin R0 R1 R2 R3 R4 R5 - i386 ebx ecx edx esi edi ebp - ia64 r11 r9 r10 r14 r15 r13 - parisc r26 r25 r24 r23 r22 r21 - s390 r2 r3 r4 r5 r6 r7 - s390x r2 r3 r4 r5 r6 r7 - sparc/32 o0 o1 o2 o3 o4 o5 - sparc/64 o0 o1 o2 o3 o4 o5 - x86_64 rdi rsi rdx r10 r8 r9 - Note that these tables don't cover the entire calling convention--some architectures may indiscriminately clobber other registers not listed here. EXAMPLE
#define _GNU_SOURCE #include <unistd.h> #include <sys/syscall.h> #include <sys/types.h> int main(int argc, char *argv[]) { pid_t tid; tid = syscall(SYS_gettid); tid = syscall(SYS_tgkill, getpid(), tid); } SEE ALSO
_syscall(2), intro(2), syscalls(2) COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2013-06-21 SYSCALL(2)
All times are GMT -4. The time now is 04:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy