Compiler directives to differetiate between solaris 9 and solaris 10

i have an API which makes certain function calls which are different for solaris 9 and solaris 10. i cannot add my own defines, since that would mean that applications too would have to define them.
does the Sun Workshop compiler provide any default directives to differentiate between solaris 9 and solaris 10? something like #ifdef __SunOS_5.10 or something like that?
thanks.

As explained in the C Users Guide, the compiler predefines several macros, one of which is represents the Solaris version number.
The macro name is derived from the output of the commands
uname -s and uname -r, starting with __, connected by _, and with dots replaced by _.
Running on Solaris 9:
% uname -s
SunOS
% uname -r
5.9
The defined macro name is __SunOS_5_9
On Solaris 10 you get __SunOS_5_10
__SunOS_5_9

Similar Messages

  • Does Solaris publish a feature / function mapping of container services between Docker and Solaris ?

    Docker is getting huge attention but most consider it not ready for production.  Does Solaris publish a feature / function mapping of container services between Docker and Solaris ?
    Solaris containerization has been battle tested in production for many, many years.

    You need to understand how IPMP is used within Sun Cluster. Start reading at
    http://docs.sun.com/app/docs/doc/819-2968/6n57jmghj?a=view and
    http://docs.sun.com/app/docs/doc/819-2969/6n57kl141?a=view
    for a brief description. In a nutshell - the IPMP group is providing availability on the interface level for each node, so that a single NIC failure is not resulting into a service loss.
    The IP adresses you configure directly (ie. via /etc/hostname.* setup) are always considered local to a given node.
    In order to configure highly available IP adresses, which move between nodes and which should be used for the application you make highly available, you must use the SUNW.LocgicalHostaname or SUNW.SharedAdress resource types. Have a look at
    http://docs.sun.com/app/docs/doc/819-2974/6n57pdjtt?a=view on how to configure them.
    Greets
    Thorsten

  • [Q] what is different of mail sending between HPUX and Solaris ??

    All,
    Would somebody let me know what different of mail sending between HPUX and Solaris is ?
    I have several unix servers and some are HPUX 11.11 and some are Solaris v8.
    To use "mailx" command in maintenance scripts, I set a relay server in sendmail.cf of /etc/mail.
    What I'm curious is
    ,in HPUX, "mailx" is working without sendmail daemon. but in Solaris, "mailx" is not working without sendmail daemon.
    I'm not good at those sendmail site. my knowldge of UNIX is very general, not specific and expertized. so need your help.
    Why it works without sendmail daemon on HPUX, and why not on SUN which is not working sendmail daemon ??

    Hi,
    do you have a mailhost entry in /etc/hosts pointing to your relay hsot?
    Fritz

  • Differences between Soalris and Solaris Express /Developer Edition

    Hi
    Thank you for readingn my post
    What is different between Solaris Express (Developer Edition) and solaris OS?
    Are they the same and with same capabilities?
    Can I install S1 Grid suite in a Express edition?
    Thanks

    Solaris 10 (with several updates) is the current release version of the Solaris operating system.
    Since the release in '05, Sun has been developing the "next" version of Solaris. Using the OpenSolaris code as a base, this version is codenamed "Nevada". Periodic builds of this version are available as Solaris Express. So you get more up-to-date drivers, features, and bugs from it. Because it's under development, there are no patches. Instead you'd need to upgrade to the next release (or create your own patch).
    I haven't looked specifically at S1 Grid, so it very likely will install. However installations on Solaris Express may not be a supported configuration if you need that.
    Darren

  • Differences between Linux and Solaris command set

    Hi,
    It is complicated to learn Solaris? Is the set of commands the same of Linux?
    It is because is more simple for me to find a Linux Admin book than a Solaris book.
    Thanks.
    Lorenzo

    BTW: You might want to start with this peace if information:
    http://wwws.sun.com/software/whitepapers/linux/linux_overview.pdf
    One remark: this Blue/white paper is written for audience known to Solaris and new to Linux, but usefull the other way around.
    Specially table 1 is very usefull !
    Good luck, and Welcome as new Solaris Administrator.
    Eric.

  • OpenSSH between Windows and Solaris

    Hi all,
    I have been given a task to set up SSH connection between Solaris 10 and Windows XP sp2. I'm quite new with the Solaris 10 and don't have any ideas to set up the SSH. Is it that i need to install some software in windows XP in order to set up the SSH and I'm quite confused with which side should be the SSH server and which one will be the SSH client. Can anyone give me some tips/guidance on how to do it or some documentation? Your help are really appreciated.
    Thanks and Regards,
    Francis

    Hi~
    Thanks for the response abrante. I have found out my problem. It seems that my port 22 in Solaris 10 machine is not open. When i tries to telnet the port 22, it says could not open the connection to the host, on port 22: connect failed. Is this because the SSH deamon in Solaris does not running? I have already type *#svcadm enable SSH* in the Solaris 10, but after i use the *#scvs -a | grep ssh*, it shows maintenance  8:45:06 svc :/network/ssh:default. What does this means? Does it means ssh is not running? After i tries with svcs -xv ssh, it shows:
    State: maintenance since Thu Nov 17 09:07:44 2011
    Reason: Start method failed repeatedly, last exited with status 1.
    Impact: This service is not running.
    I also tries to clear the state of ssh using svcadm clear ssh and disable and enable the service again but it doesn't work and still come out with the maintenance status. What should i do in order to solve this problem? Look forward for your response.
    Thanks & Regards,
    Francis
    Edited by: francis on Nov 16, 2011 5:47 PM

  • Compatabliity between windows2000 and solaris 9 env regarding insert statem

    Hi,
    I am having a form like Grid. when the user wants to map he will click the text item. 'X' is placed in the respective text item to indicate mapping.
    I used insert statement in trigger 'When mouse-clik' of the particualr text item. Insert is happening fine in windows2000/Oracle 9i.
    When i ran the same form in solaris 9 (SPARC)/oracle 9i with oracle 10g Application Server, insert statement is not working fine.
    Any specific reason for this behaviour.
    Thanks & Regards

    Try using the WHEN-NEW-ITEM-INSTANCE for a test

  • Direct network connection between MacBook and a PC with a switch

    I have a MacBook in my home and a PC. There is a router connected to the internet in a house nearby. A cable comes from there to my house. At my house I have an 8-port 100 Mb switch. The PC is connected to the switch with a cable. There is a DLink 2000AP connected to the switch, so I am connected to the network wirelessly. All the cabling in my house is good, I mean both the PC and the wifi access point have got very good cable connecting to the switch. But the switch is connected to the router in the other house with a very bad cable (I suspect it is just some kind of phone cable). this cable seems o be enough for the internet but not for 100 Mb network.
    Now I have a big hard drive connected to the PC, I made it shared, so I can mount it on my MacBook. But the problem is that the speed of transferring data between the Macbook and PC is really low (around 0.5 MB/s). I suspect that it is because when sending data the Mac sends it first to the router which has got such bad cable and then only to the PC. In this way the data comes through the bad cable twice. But if I could set it up in such a way that the data goes only through the switch (without going to the router), then no data would go throught the bad cables to the router and everything will be very fast. so, my humble question would be whether it is possible to say to computers or router that the info should be set via switch and not the router.
    Thanks a lot for your help.

    You are correct Since you do not have your wireless network set up for a machine-to-machine connection, all data is going to your wireless access point, then up the bad cable to the router, back down the bad cable to your other computer. To quote an old cliche, this chain is only as strong as its weakest link.
    You can connect, via ethernet cables, the Mac and the PC directly through a switch or hub. This should by-pass the need of the data to go up through the router. However, my experience is that sometimes the computers can get confused with this type of setup, not knowing what route to take.
    Maybe someone else has a better solution, other than replacing the line to the router with a much better cable or a point-to-point wireless solution.
    Jeff

  • Scrolling direction is different between iPhone and Trackpad.

    Can i change the scrolling direction on the TrackPad? It is different between mobile device like iPhone and Trackpad.
    TrackPad:
    To scroll down i have to move my fingers from top to bottom.
    on iPhone or iPad:
    To scroll down i have to move my finger from bottom to top.
    I want to use it in the same way, because it is confusing.
    Greeting Koe

    You will be able to when you upgrade to Lion.  The gestures are as  you describe.
    Regards,
    Captfred
    http://www.apple.com/macosx/whats-new/gestures.html

  • Direct Firewire connection between PBook and G5

    Having just installed a New HD into my PBook I would like to speed the process of loading files into it by connecting directly via the FW800 port. I have done that but niether computer "sees" the other as they do my external FW drives. I rebooted bu that doesn't do it. I can do it via "connect to server" via network, they see ech other that way, but I'd rather do FW direct to save time lots of iPhotos etc.
    Suggestions PLease?

    Hi, Peter. You need to follow the instructions in this article for using Firewire Target Disk Mode.

  • 'Is there a link between OLM and iProcurement'

    I have been asked 'Is there a link between OLM and iProcurement'? The person posing the question is wanting to create trainers as suppliers and I know that the supplier information is shared between OLM and the A/P, A/R and G/L modules and I presume that the link to iProcurement will be via one of these modules however is there a more direct vanilla link between OLM and iprocurement?
    Any help would be great
    Thanks
    DM

    I am afraid there is no link between the iProc and OLM.
    The closest that apps can offer you is that your learner/delegates can be of type external i.e. being an Organization or a Customer. Hence there exists a link for your delegate to be a customer(hz_parties).
    However this might be a future integration i.e. Trainers being suppliers. I am saying so because in 11.5.10 there is a table named OTA_VENDOR_SUPPLIES that has reference to vendor_id. Currently this table is not being used by OLM.
    You may look into the code of packages OTA_VSP_API, OTA_TEA_BUS & OTA_PLE_BUS and see if Oracle's future functionality will converge towards your business requirement.
    Thanks,
    Anil Passi
    http://oracle.anilpassi.com

  • SSH Differences between Solaris 9 and Solaris 10

    I use public key authentication when connecting via SSH but have noticed a difference between Solaris 9 and Solaris 10 and wondered if it's an environment setup issue. I keep my keys in $HOME/.ssh
    When connecting from Solaris 9 I can provide an identity file without a path regardless of the directory that I'm in e.g.
    ssh -i my_identity_file user@hostnameThe above works even if I'm not in the $HOME/.ssh directory. But when using the same from Solaris 10 I get the following error:
    Warning: Identity file my_identity_file does not exist.If I run the command from $HOME/.ssh on Solaris 10 it connects fine, and if I pass in the path like so it works fine:
    ssh -i $HOME/.ssh/my_identity_file user@hostnameIs there a setting specific to SSH somewhere as I can't see anything in my environment that's different between the two systems. There's certainly no entry in $PATH that points to $HOME/.ssh. How could I get SSH to work on Solaris 10 by just providing the identity file name and not the full path
    Regards
    Rich

    It's not explicitly defined in /etc/ssh/ssh_config, so I'm assuming it would be using the default which is ~/.ssh/id_dsa.
    But surely that's irrelevant if I'm using the -i switch to provide the identity file?
    Remember the problem here is that I have to provide a full path to the identity file, whereas before just the filename would do.
    Rich

  • About incompatibility between Solaris 10 and Solaris 8

    Dear all
    I am investigating about incompatibility between Solaris 10 and Solaris 8.
    But I can't find incompatibility information (I can find some compatibility imformation).
    Please tell me about that if you know.
    Any suggestions would be appreciated.
    Thanks

    Programs running on Solaris 8 should run on Solaris 10, but programs that run on Solaris 10 won't necessarily run on Solaris 8.
    Solaris is always forward-compatible.
    .7/M.

  • Diff between Solaris 8 and Solaris 9

    Hello Experts,
    Do we have a document which talks about the diff between Solaris 8 and Solaris 9
    I need to know what are the new featured in Solaris 9 and etc....
    Thanks in Advance.
    Sunil.

    Sadly, the difference between the early releases of Solaris 9 and the late releases of Solaris 8 isn't that big, since Sun backported a lot of the cool features in Solaris 9 to Solaris 8..
    Hence; the answer to your question depends on which Solaris 8 and which Solaris 9 releases you are talking about.
    However, a complete list of changes incoperated in the different Solaris 9 releases can be found here:
    http://docs.sun.com/app/docs/doc/817-5770/6ml72d6k9?a=view
    I guess there are similar lists for Solaris 10, which is even cooler than 8/9.
    Enjoy!
    //Magnus

  • Difference Between Solaris 9/04 and Solaris 9/05

    Hi,
    I would like to know whats all fixes and new features have been released in Sol 9 9/05 compared to Sol 9 9/04. Can anyone suggest? While doing upgrade i got the follow error.
    q Warning qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    The Solaris Version (Solaris 9) on slice d0 (c1t0d0s0 c1t1d0s0)
    cannot be upgraded.
    A file system listed in the file system table (vfstab) could not
    be checked by fsck.
    qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    q Warning qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    There are no other upgradeable versions of Solaris on this
    system. You can choose to do an initial installation, or you can
    exit and fix any errors that are preventing you from upgrading.
    WARNING: If you choose Initial, you'll be presented with screens
    to do an initial installation, which will overwrite your file
    systems with the new version of Solaris. Backing up any
    modifications that you've made to the previous version of
    Solaris is recommended before starting the initial option. The
    initial option also lets you preserve existing file systems.
    qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
    Esc-2_Initial Esc-5_Exit

    I'm having similar problem. I've gone from this:
    #device device mount FS fsck mount mount
    #to mount to fsck point type pass at boot options
    fd - /dev/fd fd - no -
    /proc - /proc proc - no -
    #/dev/dsk/c1t0d0s1 - - swap - no -
    /dev/md/dsk/d0 - - swap - no -
    /dev/md/dsk/d10 /dev/md/rdsk/d10 / ufs 1 no -
    /dev/md/dsk/d20 /dev/md/rdsk/d20 /var ufs 1 no -
    /dev/dsk/emcpower1g /dev/rdsk/emcpower1a /db01 ufs 2 yes
    /dev/md/dsk/d30 /dev/md/rdsk/d30 /export/home ufs 2 yes
    /dev/dsk/emcpower0g /dev/rdsk/emcpower0a /backup ufs 2 yes
    /dev/dsk/emcpower2g /dev/rdsk/emcpower2a /disk01 ufs 2 yes
    /dev/md/dsk/d50 /dev/md/rdsk/d50 /disk02 ufs 2 yes -
    /dev/md/dsk/d40 /dev/md/rdsk/d40 /install ufs 2 yes
    swap - /tmp tmpfs - yes -
    to this:
    #device device mount FS fsck mount mount
    #to mount to fsck point type pass at boot options
    fd - /dev/fd fd - no -
    /proc - /proc proc - no -
    /dev/dsk/c1t0d0s1 - - swap - no -
    /dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
    /dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s3 /var ufs 1 no -
    swap - /tmp tmpfs - yes -
    and I still get the error. Using Sol10 5/09 DVD

Maybe you are looking for

  • Mac users running Windows: Innoculate against spyware & virus

    I hope this thread I'm going to start is appropriate to this discussion board. I have been a Mac user since 1989 and an Apple user before then. Never a Windows user. With the new intel macs, I am now using Windows occassionally to run a program (Atla

  • Crashes on Opening

    Got this warning & can't get into the program. I don't want to lose my sites that have not been published yet. Process: iWeb [294] Path: /Applications/iWeb.app/Contents/MacOS/iWeb Identifier: com.apple.iWeb Version: 3.0.2 (302) Build Info: iWeb-48900

  • 24" iMac has no life despite working perfectly 24 hours previously. Can anybody help?

    Hi there, I have a mid 2008 24" iMac that yesterday was working as perfect as always until I hear a 'zzzz' the screen goes blank and now it doesn't turn on. When It's plugged in and the power button is pressed, there's no fan, no noise, there's no si

  • IPhone has WEIRD letters for the months and days of the year !

    Hi ! One morning I woke up to find that the DAYS and MONTHS of my year are in WEIRD letters ! Here is an image to clarify my problem: http://sphotos-g.ak.fbcdn.net/hphotos-ak-ash4/480863_10200219386720818_166986027 2_n.jpg Oh, I understand that I'm u

  • Message NO: RSM1188

    Hellow,everybody here. When I update the data to cube via infopackage,there are some errors in the infopackage,so I delete it in cube's request list,and now I wanna reload the data via infopackage to cube,but now the system has said that there is the