Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #765
Difficulty: Medium
Cache read misses from an instruction cache generally cause the longest delays because the processor, and in particular the thread of execution, has to wait until the instruction is fetched from main memory.
True or False?
Linux & Unix Commands - Search Man Pages

stime(2) [hpux man page]

stime(2)							System Calls Manual							  stime(2)

NAME
stime() - set time and date SYNOPSIS
DESCRIPTION
The system call sets the system time and date. tp points to the value of time as measured in seconds from 00:00:00 on January 1, 1970, Coordinated Universal Time (UTC). Security Restrictions Some or all of the actions associated with this system call require the privilege. Processes owned by the superuser will have this privi- lege. Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUE
returns the following values: Successful completion. Failure. is set to indicate the error. ERRORS
If fails, is set to one of the following values. The calling process does not have the privilege. The parameter points to an invalid (negative) time value. The parameter is an invalid address. SEE ALSO
date(1), gettimeofday(2), time(2), privileges(5). STANDARDS CONFORMANCE
stime(2)

Check Out this Related Man Page

getaudid(2)							System Calls Manual						       getaudid(2)

NAME
getaudid() - get the audit ID (aid) for the current process SYNOPSIS
Remarks This function is provided purely for backward compatibility. HP recommends that new applications use instead. See getauduser(3). DESCRIPTION
returns the audit ID (aid) for the current process. This call is restricted to users with the privilege. Security Restrictions Some or all of the actions associated with this system call require the privilege. Processes owned by the superuser have this privilege. Processes owned by other users may have this privilege, depending on system configuration. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUE
Upon successful completion, the audit ID is returned; otherwise, a is returned. ERRORS
fails if the following is true: The caller does not have the privilege. AUTHOR
was developed by HP. SEE ALSO
setaudid(2), getauduser(3), setauduser(3), privileges(5). TO BE OBSOLETED getaudid(2)

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

date: invalid date `19010101'

why date -d "19010101" gets error " date: invalid date `19010101' " but date -d "19020101" is fine? Any approach to fix that? Thank you. (8 Replies)
Discussion started by: freizl
8 Replies

2. UNIX for Dummies Questions & Answers

Setting time from application

Hello all, I wish to set the time and date of the system from my application. (I write code in C ). How can it be done? I found the function stime() - but it gets time in seconds as a parameter, and I don't know how to convert my time & date to seconds since EPOCH. What's the best... (0 Replies)
Discussion started by: klafte
0 Replies

3. Shell Programming and Scripting

Incrementing the date depending on the Counter (parameter) passed to the script

Hello Everyone, I have been trying to complete a shell script where, I need to increment the date depending on the file (depending on the date) availability on the remote server. i.e. Basically, I will be passing a counter (like parameter 1 or 2 or 3 or 4). First I will check for the... (1 Reply)
Discussion started by: filter
1 Replies

4. UNIX for Dummies Questions & Answers

how to get the same time in two systems,

Hi all, how to get the same time in two systems, for example: in one system i have the correct time, and second system i have wrong time. now i want the first sytem to second sytem, i dont to want to do this work manually. i know there is one command to get the time. in ntp. ... (3 Replies)
Discussion started by: anishkumarv
3 Replies

5. Shell Programming and Scripting

Process running more than require time

Frineds I need assistance in writing a script . Newbie to scripting. How to find list of processes that are running more than an hour . Below i used the step to get the etime and stime . Now by getting the result i need to display longer time process with full listing. ps -aef -o... (10 Replies)
Discussion started by: ajayram_arya
10 Replies

6. SCO

Cannot use 'date -t' to set the system date and time

Hi! All, I am trying to reset the date and time since the change in time over the weekend. I cannot issue the command date -t 201703131330. The system gives me an error invalid option. This happens on my SCO OpenServer 5.0.7 and 5.0.6. Do anyone have an idea why? I even tried using... (6 Replies)
Discussion started by: trolley
6 Replies

Featured Tech Videos