Sponsored Content
Operating Systems Solaris usleep command is not available in SunOS Post 302328083 by fpmurphy on Tuesday 23rd of June 2009 09:44:40 AM
Old 06-23-2009
On Solaris usleep is implemented using SIGALARM. There is no command line implementation. If you need one you need to roll your own.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SunOS 5.8

I am loging into a SunOS 5.8 box for the first time. I do not see a .profile file in the home directory. Also on the command line when I type a backspace to correct my typing I get a ^H character. Where and how can I fix this? Thanks in advance (5 Replies)
Discussion started by: jxh461
5 Replies

2. Programming

using usleep in c++ on diff platforms

Hi, I'm using the command usleep (500000) when compiling C++ on the SunOS platform, but it does not compile on a OSF1 platform? Any ideas? Thanks (5 Replies)
Discussion started by: shetlandbob
5 Replies

3. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies

4. UNIX for Dummies Questions & Answers

Tar Command in SunOS 5.6

Hi, I have to backup the contents of an old SunOS to tape. The tape drive is being recognized by the operating system. However, the man pages for tar are a little different from the ones I have seen using Red Hat/Centos. On Centos to backup the entire contents of the / partition I could just... (1 Reply)
Discussion started by: mojoman
1 Replies

5. Shell Programming and Scripting

SunOS: How to exclude directory in find command?

Hi All, First my OS version is: ksh:0$ uname -a SunOS 5.9 Generic_122300-48 sun4u sparc SUNW,Sun-Fire-V440 I want to exclude the following DIR(./country111) in my search pattern: ksh:0$ find . -name "*.tar" ./country111/COUNTRY_BATCH-801.tar ./country111/COUNTRY_BATCH-802.tar... (3 Replies)
Discussion started by: saps19
3 Replies

6. Solaris

chmod command in SunOS

Hi Bros, I have a question want to receive your help. On SunOS server. I have 1 file in /etc. mode of file is "read only". I've used chmod 777 commmand to change mode of that file. firstly, it's ok. but about 3 mins after that. The mode of that file rollback to "read only". I don't know how.... (4 Replies)
Discussion started by: hikaru022002
4 Replies

7. UNIX for Dummies Questions & Answers

Du -sk command in SunOS 5.10

Hi, I am little confuse after using du -sk on file . I have file listing like: -rw-r--r-- 1 Xuser Ygrp 51419029531 Sep 21 07:40 catalina.out when i issue cmd : du -sk catalina.out gives output as 1804511 catalina.out This means 1804511 KB. Which means 1 GB. ... (3 Replies)
Discussion started by: krsnadasa
3 Replies

8. Shell Programming and Scripting

Command to flush specific domain in SunOS 5 DNS

Hello to all, May you help saying me how to flush a specific domain in Linux SunOS5 I know the command rndc is to flush DNS cache, but I would like to know: 1- How to do a flush only on specific domain 2- How to see the content of DNS Resolver cache (similar to info given by IPCONFIG... (2 Replies)
Discussion started by: Ophiuchus
2 Replies

9. Solaris

SunOS 5.5.1 usage of Makefile command in make file

I am new to Solaris and compilation using make files. I have a code base which is organized into different folders. At the root folder is a master make file and in the sub directories, there are make files for that particular folder. In the make files present in subdirectories, I am seeing... (2 Replies)
Discussion started by: rajujayanthy
2 Replies

10. Shell Programming and Scripting

Grep command Fails on SunOS Sparc

Hi, This command works ggrep -v -F -x -f app1.txt app2.txt But, I don't have ggrep on SunOS Sparc so I tried using grep instead but it errors out grep: illegal option -- F bash-2.03$ uname -a SunOS mymac 5.8 Generic_Virtual sun4v sparc sun4v Can you help me with a grep command that... (6 Replies)
Discussion started by: mohtashims
6 Replies
USLEEP(3P)						     POSIX Programmer's Manual							USLEEP(3P)

PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond- ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME
usleep - suspend execution for an interval SYNOPSIS
#include <unistd.h> int usleep(useconds_t useconds); DESCRIPTION
The usleep() function shall cause the calling thread to be suspended from execution until either the number of realtime microseconds speci- fied by the argument useconds has elapsed or a signal is delivered to the calling thread and its action is to invoke a signal-catching function or to terminate the process. The suspension time may be longer than requested due to the scheduling of other activity by the sys- tem. The useconds argument shall be less than one million. If the value of useconds is 0, then the call has no effect. If a SIGALRM signal is generated for the calling process during execution of usleep() and if the SIGALRM signal is being ignored or blocked from delivery, it is unspecified whether usleep() returns when the SIGALRM signal is scheduled. If the signal is being blocked, it is also unspecified whether it remains pending after usleep() returns or it is discarded. If a SIGALRM signal is generated for the calling process during execution of usleep(), except as a result of a prior call to alarm(), and if the SIGALRM signal is not being ignored or blocked from delivery, it is unspecified whether that signal has any effect other than caus- ing usleep() to return. If a signal-catching function interrupts usleep() and examines or changes either the time a SIGALRM is scheduled to be generated, the action associated with the SIGALRM signal, or whether the SIGALRM signal is blocked from delivery, the results are unspecified. If a signal-catching function interrupts usleep() and calls siglongjmp() or longjmp() to restore an environment saved prior to the usleep() call, the action associated with the SIGALRM signal and the time at which a SIGALRM signal is scheduled to be generated are unspecified. It is also unspecified whether the SIGALRM signal is blocked, unless the process' signal mask is restored as part of the environment. Implementations may place limitations on the granularity of timer values. For each interval timer, if the requested timer value requires a finer granularity than the implementation supports, the actual timer value shall be rounded up to the next supported value. Interactions between usleep() and any of the following are unspecified: nanosleep() setitimer() timer_create() timer_delete() timer_getoverrun() timer_gettime() timer_settime() ualarm() sleep() RETURN VALUE
Upon successful completion, usleep() shall return 0; otherwise, it shall return -1 and set errno to indicate the error. ERRORS
The usleep() function may fail if: EINVAL The time interval specified one million or more microseconds. The following sections are informative. EXAMPLES
None. APPLICATION USAGE
Applications are recommended to use nanosleep() if the Timers option is supported, or setitimer(), timer_create(), timer_delete(), timer_getoverrun(), timer_gettime(), or timer_settime() instead of this function. RATIONALE
None. FUTURE DIRECTIONS
None. SEE ALSO
alarm(), getitimer(), nanosleep(), sigaction(), sleep(), timer_create(), timer_delete(), timer_getoverrun(), the Base Definitions volume of IEEE Std 1003.1-2001, <unistd.h> COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 USLEEP(3P)
All times are GMT -4. The time now is 08:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy