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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT SUNOS
div
div(3C) Standard C Library Functions div(3C)NAME
div, ldiv, lldiv - compute the quotient and remainder
SYNOPSIS
#include <stdlib.h>
div_t div(int numer, int denom);
ldiv_t ldiv(long int numer, long int denom);
lldiv_t lldiv(long long numer, long long denom);
DESCRIPTION
The div() function computes the quotient and remainder of the division of the numerator numer by the denominator denom. It provides a well-
defined semantics for the signed integral division and remainder operations, unlike the implementation-defined semantics of the built-in
operations. The sign of the resulting quotient is that of the algebraic quotient, and if the division is inexact, the magnitude of the
resulting quotient is the largest integer less than the magnitude of the algebraic quotient. If the result cannot be represented, the
behavior is undefined; otherwise, quotient * denom + remainder will equal numer.
The ldiv() and lldiv() functions are similar to div(), except that the arguments and the members of the returned structure are different.
The ldiv() function returns a structure of type ldiv_t and has type long int. The lldiv() function returns a structure of type lldiv_t and
has type long long.
RETURN VALUES
The div() function returns a structure of type div_t, comprising both the quotient and remainder:
int quot; /*quotient*/
int rem; /*remainder*/
The ldiv() function returns a structure of type ldiv_t and lldiv() returns a structure of type lldiv_t, comprising both the quotient and
remainder:
long int quot; /*quotient*/
long int rem; /*remainder*/
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.10 24 Jul 2002 div(3C)