Questions tagged [solaris]

Solaris is a commercial Unix operating system sold by Oracle, previously (before 2010) from Sun Microsystems. It can run on SPARC or x86 hardware.

Solaris is a Unix operating system originally developed by Sun Microsystems as a successor to SunOS. Oracle Solaris, as it is now known, has been owned by Oracle Corporation since Oracle's acquisition of Sun in January 2010. OpenSolaris (the open-source version of Solaris) was abandoned at that point.

Solaris is known for its scalability, especially on SPARC systems (), and for originating many innovative features such as DTrace, ZFS and Time Slider. Solaris supports SPARC-based and x86-based workstations and servers from Sun and other vendors.

Resources

2780 questions
15
votes
6 answers

Files being used by a unix process

The fuser command lets me know which processes are using a file or directory. I'm looking for command that does the opposite: lets me know which files are being used by a process. Update Forgot to mention that it's for a Solaris system.
lamcro
  • 6,069
  • 18
  • 57
  • 70
15
votes
5 answers

How does the 'ls' command work in Linux/Unix?

I would like to know exactly how the "Is" command works in Linux and Unix. As far as I know, ls forks & exec to the Linux/Unix shell and then gets the output (of the current file tree. eg./home/ankit/). I need a more detailed explanation, as I am…
Ankit Singh
  • 2,602
  • 6
  • 32
  • 44
14
votes
2 answers

How to use S_ISREG() and S_ISDIR() POSIX Macros?

This is a C program I wrote to recursively navigate and output directories and regular files. It compiles and runs fine on my Linux machine. But on Solaris, the dit->d_type == 8 check and the other similar ones don't work because there is no d_type…
Zach Alberico
  • 268
  • 3
  • 6
  • 19
14
votes
4 answers

Testing if Float value is NaN

Possible Duplicate: Checking if a double (or float) is nan in C++ I have a requirement to check if float is NaN. By going through some of the links I found the most common check. FLOAT32 f32_test_NaN = (some_value); if (f32_test_NaN ==…
kp11
  • 2,055
  • 6
  • 22
  • 25
14
votes
4 answers

NSIS support for Linux and Solaris

Does NSIS support Linux and Solaris? I read somewhere that we can compile nsis script on Linux but cant execute the .exe generated on any other platforms but Windows. Can somebody put more light in this?
Pia
  • 463
  • 2
  • 9
  • 20
14
votes
5 answers

How to make YY_INPUT point to a string rather than stdin in Lex & Yacc (Solaris)

I want my yylex() to parse a string rather than a file or standard input. How can I do it with the Lex and Yacc provided with Solaris?
ajai
  • 363
  • 3
  • 6
  • 14
14
votes
4 answers

Display all fields except the last

I have a file as show below 1.2.3.4.ask sanma.nam.sam c.d.b.test I want to remove the last field from each line, the delimiter is . and the number of fields are not constant. Can anybody help me with an awk or sed to find out the solution. I can't…
user1745857
  • 153
  • 1
  • 1
  • 6
14
votes
10 answers

nanoseconds to milliseconds - fast division by 1000000

I'm wanting to convert the output from gethrtime to milliseconds. The obvious way to do this is to divide by 1000000. However, I'm doing this quite often and wonder if it could become a bottleneck. Is there an optimized divide operation when dealing…
hookenz
  • 36,432
  • 45
  • 177
  • 286
13
votes
3 answers

problem with wget command SSL3_CHECK_CERT_AND_ALGORITHM:dh key too small

I want to check an ssl url but when i use the command: /usr/sfw/bin/wget --no-check-certificate --secure-protocol=SSLv3 https://url I obtain this error: --2018-10-01 12:11:19-- https://url Connecting to #:443... connected. OpenSSL:…
Andrea
  • 131
  • 1
  • 4
13
votes
1 answer

How does X11 authorization work? (MIT Magic Cookie)

I am interested in an in-depth answer explaining how exactly X11 authorization works and especially MIT Magic Cookies. I understand that what it actually does is to forbid access to everyone else except the user that is logged in, also there are…
Sir. Hedgehog
  • 1,260
  • 3
  • 17
  • 40
13
votes
3 answers

Case when blocking recv() returns less than requested bytes

The recv() library function man page mention that: It returns the number of bytes received. It normally returns any data available, up to the requested amount, rather than waiting for receipt of the full amount requested. If we are using…
Adil
  • 2,418
  • 7
  • 34
  • 38
12
votes
1 answer

Printwriter println: no new line created

I am trying to decode an outlook .MSG file to a text file, using Apache POI classes. Everything works fine, except for the println method of PrintWriter: it doesn´t create a new line. It just concatenates every sentence directly one after another.…
nicBBB
  • 267
  • 1
  • 4
  • 18
12
votes
7 answers

How can I create a portable perl when I can't install modules on the target host?

I need to run Perl applications I develop on cygwin Windows on HP unix / Solaris hosts. I am not a superuser on the unix machines and I can't touch the default Perl module location nor can I install modules to the default Perl module location. Also…
Ville M
  • 2,009
  • 7
  • 30
  • 45
12
votes
1 answer

what is the role of "vm thread" in JDK 1.6

We are seeing lot of activity of this thread in our customer's system and hence would like to know what might be happening. any links, info, tutorials ? P.S : this is happening on Solaris 10 with JDK 1.6.0_23.
anjanb
  • 12,999
  • 18
  • 77
  • 106
12
votes
2 answers

connect() with unix-domain socket and full backlog

When the listening backlog is full for STREAM unix-domain sockets, connect(2) fails on most systems with ECONNREFUSED. It would be preferable for it to return EAGAIN. The reasoning is that it is highly useful to be able to distinguish between the…
Nicholas Wilson
  • 9,435
  • 1
  • 41
  • 80