solaris

ptrace in solaris

為{幸葍}努か 提交于 2019-12-10 10:57:48
问题 I'm trying to port a program that uses ptrace from linux to solaris, but no luck, as it complains that sys/ptrace.h is not found. Any idea how to port it? 回答1: At least on the solaris system I have access to, man ptrace says to include #include <unistd.h> #include <sys/types.h> for access to the ptrace prototype and constants. However, there is a usage note that states that ptrace is available only with the 32-bit libc, and that 64 bit clients should use the /proc debugging interfaces instead

Cross compiling for SPARC on x86

女生的网名这么多〃 提交于 2019-12-10 10:43:58
问题 I've seen the about cross compilers reply at How do I cross-compile C code on Windows for a binary to also be run on Unix (Solaris/HPUX/Linux)? I would like to know how can Y compile for SPARC on a x86 machine? Where can i find a good cross compiler? I also need to compile for HP OS. 回答1: gcc is fully capable of this. Sun's compiler may be capable, but I'm more familiar with gcc. First, you should get comfortable with building gcc, and also decide if you need just the C compiler or if you

what is the role of “vm thread” in JDK 1.6 [duplicate]

本小妞迷上赌 提交于 2019-12-10 01:16:24
问题 This question already has answers here : What does java “VM thread” do? (3 answers) Closed 6 years ago . 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. 回答1: this thread will give you some step to proceed. If possible i will provide more. http://mail.openjdk.java.net/pipermail/hotspot-dev/2009-February/001249.html This some more

How to get process info programmatically in C/C++ from a Solaris system?

有些话、适合烂在心里 提交于 2019-12-09 21:04:59
问题 Is there a C/C++ library, and documentation about how to collect system and process information on Solaris? Although I could parse command-line tools, I'd rather use a library that makes the task easier to do. Thanks Edit: It has been suggested to use the /proc virtual directory to collect information, however its not much better than parsing command-line tools, in the sense that I'll need to implement some sort of custom parsing for every piece of data I need. I'm looking for something along

Can someone explain this definition of the 'dirent' struct in Solaris?

随声附和 提交于 2019-12-09 17:39:02
问题 Recently I was looking at the 'dirent' structure (in dirent.h) and was a little puzzled by its definition. NOTE: This header file is from a Solaris machine at my school. typedef struct dirent { ino_t d_ino; off_t d_off; unsigned short d_reclen; char d_name[1]; } dirent_t; Particularly the d_name field. How would this work in the operating system? If you need to store a null terminated string what good is an array of a single char? I know that you can get the address of an array by its first

How to exclude a list of full directory paths in find command on Solaris

情到浓时终转凉″ 提交于 2019-12-09 13:29:32
问题 I have a very specific need to find unowned files and directories in Solaris using a script, and need to be able to exclude full directory paths from the find because they contain potentially thousands of unowned files (and it's normal because they are files hosted on other servers). I don't even want find to search in those directories as it will hang the server (cpu spiking to 99% for a long time), therefore piping the find results in egrep to filter out those directories is not an option.

What is a reliable way of getting allowed locale names in R?

筅森魡賤 提交于 2019-12-09 07:55:11
问题 I'm trying to find a reliable way of finding locale codes to pass to Sys.setlocale . The ?Sys.setlocale help page just states that the allowed values are OS dependent, and gives these examples: Sys.setlocale("LC_TIME", "de") # Solaris: details are OS-dependent Sys.setlocale("LC_TIME", "de_DE.utf8") # Modern Linux etc. Sys.setlocale("LC_TIME", "de_DE.UTF-8") # ditto Sys.setlocale("LC_TIME", "de_DE") # Mac OS X, in UTF-8 Sys.setlocale("LC_TIME", "German") # Windows Under Linux, the

P/Invoke in Mono

杀马特。学长 韩版系。学妹 提交于 2019-12-09 04:32:41
问题 What's the current status of Mono's Platform Invoke implementation on Linux? And on Solaris? 回答1: Working, usable and stable. It's well tested since quite a lot of mono's own low-level functionality has to be marshaled through it to the underlying operating system. There are some P/Invoke extensions when compared to Microsoft .Net implementation (after all they deal with a single OS family and three architectures at most). Most notable of those would be that library mappings transform the

How can I kill a whole process tree with Perl?

纵然是瞬间 提交于 2019-12-08 19:39:53
问题 What's the best way to kill a process and all its child processes from a Perl script? It should run at least under Linux and Solaris, and not require installation of any additional packages. My guess would be to get a list of all processes and their parents by parsing files in /proc or by parsing the output of ps (neither of which seems portable between Linux and Solaris); and then killing all processes in the tree (which seems prone to race conditions). I could live with the race conditions

Nagios plugin 1.4.3 compilation failed on Solaris 9

时光总嘲笑我的痴心妄想 提交于 2019-12-08 13:47:54
问题 System information: uname -m = sun4us uname -r = 5.9 uname -s = SunOS uname -v = Generic_122300-39 OpenSSL 0.9.8 05 Jul 2005 /usr/bin/uname -p = sparc I have tried two choices of ssl usage but still it is failed. ./configure -with-ssl=/usr/sfw/ -with-ssl-lib=/usr/sfw/lib/ I have also tried ./configure --with-ssl=/usr/local/ssl/bin/openssl --with-ssl-lib=/usr/local/ssl/lib when I ran make command got the following issue gcc -o check_icmp check_icmp.o -L/usr/local/lib:/usr/local/ssl/lib -L/tmp/