Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Differences between different versions of Unix Post 302293277 by jim mcnamara on Monday 2nd of March 2009 08:49:39 PM
Old 03-02-2009
IF you have a modern UNIX, most user commands are the same because the developers of the commands try to adhere to POSIX standards.

system admin is VERY different among systems. -- see the unix rosetta stone -
Code:
http://bhami.com/rosetta.html

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Solaris Unix vs HP Unix, Could someone point out the major differences.

Solaris Unix vs HP Unix, Could someone point out the major differences. I have been performing Support to Solaris Unix for about 6 years, now I am interviewing for a HP Unix position. Could someone point out the major differences? Should it be an easy transition? Thanks (1 Reply)
Discussion started by: Hack
1 Replies

2. UNIX for Dummies Questions & Answers

What different versions of UNIX are there?

Aside from the normal Linux distros, OS X, and the BSDs, what other forms of UNIX are there? I want to try one on a very old 75mhz box I have. Thanks in advance. (3 Replies)
Discussion started by: AMDPwred
3 Replies

3. UNIX for Dummies Questions & Answers

why are some unix versions licensed ?

Like Unix Sco for example , i know that unix is available for free, maybe some utilities cost money...What is special about Unix Sco??? (2 Replies)
Discussion started by: BAM
2 Replies

4. UNIX for Dummies Questions & Answers

Diffrent versions of Unix/Linux

With so many diffrent flavors out there, how is a person soposed to know what to go with? I'm not asking for specific discussion here in this forum, but I would like to see various pages and articles dicsussing the pluses and minuses of various unix/linux OS's. I have been searching various... (1 Reply)
Discussion started by: MorderKartoffel
1 Replies

5. UNIX Desktop Questions & Answers

Need to know all versions of Unix

:confused: What are some of the most popular versions of Unix and why? (2 Replies)
Discussion started by: jpawlicki2
2 Replies

6. Cybersecurity

Unix tracking software versions

I want to maintain a repository to track versions of common daemons running on several platforms such as apache, ssh, mysql; so that i can asociate vulnerabilities for each version of sw, Does anyone know if there is a project about this requirement? I search for projects in sourceforge, freshmeat... (2 Replies)
Discussion started by: Nektar
2 Replies

7. UNIX for Dummies Questions & Answers

Using multiple java versions in unix

Hello we are using java 1.2 in our shell / env it is also set in the main JAVA_HOME env var , but we have also java 1.4 installed , now we need to use new application that uses only java1.4 is there any way to point this specific application to use java 1.4 without changing the global... (2 Replies)
Discussion started by: umen
2 Replies

8. UNIX for Dummies Questions & Answers

Versions of UNIX

Hi all: I was just wondering if someone could tell me what versions of UNIX are available to public? I'm aware of all the available distro's for Linux e.g. Debain, SuSe, RedHat, etc ... However you never really here much about UNIX distro's! Is UNIX BDS a common one in use? Thanks Oliver (4 Replies)
Discussion started by: oliver79
4 Replies

9. Shell Programming and Scripting

Merge different versions of file in UNIX

Hello Experts, I want to merge my local file (File1) with the changes in remote server (File1). For Example: File1 contents are... (file @ remote server) ABC <blankLine> GHI <EOF> I, as USER#1, have updated the contents of File1 in my local as... ABC DEFGhi <blankLine> JKL... (2 Replies)
Discussion started by: AjMyTechGroup
2 Replies

10. Fedora

All different versions of UNIX

Hello, I am very new at this and would like to know how many versions of Unix there are and all of the different versions of unix. (3 Replies)
Discussion started by: rosanna azani
3 Replies
shmctl(2)							System Calls Manual							 shmctl(2)

NAME
shmctl - Performs shared memory control operations SYNOPSIS
#include <sys/shm.h> int shmctl( int shmid, int cmd struct shmid_ds *buf); Application developers may want to specify #include statements for <sys/types.h> and <sys/ipc.h> before the one for <sys/shm.h> if programs are being developed for multiple platforms. The additional #include statements are not required on Tru64 UNIX systems or by ISO or X/Open standards, but may be required on other vendors' systems that conform to these standards. STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: shmctl(): XSH4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies the ID of the shared memory region. Specifies the type of command. The possible commands are: IPC_STAT, IPC_SET, IPC_RMID, SHM_LOCK, and SHM_UNLOCK. Specifies the address of a shmid_ds structure. DESCRIPTION
The shmctl() function provides a variety of shared memory control operations as specified by the cmd parameter. The cmd values and their operations are as follows: Queries the shared memory region ID by copying the contents of its associated shmid_ds data structure into the buf structure. Sets the shared memory region ID by copying values found in the buf structure into corresponding fields in the shmid_ds structure associated with the shared memory region ID. The fields are set as follows: The shm_perm.uid field is set to the owner's user ID. The shm_perm.gid field is set to the owner's group ID. The shm_perm.mode field is set to the access modes for the shared memory region. Only the low-order nine bits are set. Removes the shared memory region ID and deallocates its associated shmid_ds structure. [Tru64 UNIX] Locks the shared memory segment specified by shmid in memory. [Tru64 UNIX] Unlocks the shared memory segment specified by shmid in memory. The shmid_ds structure is used only with the IPC_STAT and IPC_SET commands. In either case, the calling process must have allocated the structure before making the call. [Tru64 UNIX] The SHM_LOCK and SHM_UNLOCK commands can be used to lock (wire) down a shared segment in memory to prevent it from being paged out. NOTES
[Tru64 UNIX] When using the SHM_LOCK command, make sure that the system has enough physical memory available for the shared segment to be wired without exceeding the system-wide limit or otherwise severely impacting system performance. [Tru64 UNIX] The SHM_LOCK operation wires all the pages in a global shared segment and prevents the pageout daemon from reclaiming any of the pages. This can potentially lead to thrashing. RESTRICTIONS
The following restrictions apply to the shared memory commands: For the IPC_SET and IPC_RMID commands, the effective user ID of the calling process must be equal to that of superuser or equal to the value of shm_perm.cuid or shm_perm.uid in the associated shmid_ds structure. [Tru64 UNIX] For the SHM_LOCK and SHM_UNLOCK commands, the effective user ID of the calling process must be equal to that of superuser. RETURN VALUES
Upon successful completion, a value of 0 (zero) is returned. If the shmctl() function fails, a value of -1 is returned and errno is set to indicate the error. ERRORS
The shmctl() function sets errno to the specified values for the following conditions: The cmd parameter is IPC_STAT, but the calling process does not have read permission. [Tru64 UNIX] The cmd parameter is SHM_LOCK, and the system-wide wire limit has been exceeded. [Tru64 UNIX] The cmd parameter is IPC_STAT or IPC_SET. An error occurred in accessing the buf structure. The shmid parameter does not specify a valid shared memory region ID, or cmd is not a valid command. [Tru64 UNIX] The cmd parameter is SHM_UNLOCK, and the segment was not locked. The cmd parameter is equal to either IPC_RMID or IPC_SET, and the calling process does not have appropriate privilege. RELATED INFORMATION
Functions: shmat(2), shmdt(2), shmget(2) Data structures: shmid_ds(4) Standards: standards(5) delim off shmctl(2)
All times are GMT -4. The time now is 07:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy