Makecontext - backward compatibilty from Soalris 10 and 9

Hi all,
As I understand it, The makecontext() function was apperantley changed in Solaris 9, in the following ways, that are clearly related to each other:
void makecontext(ucontext_t *ucp, void(*func)(), int argc, ...);
1) argc is now repersenitng the exact number of arguments that func expects, instead of the arguments num + 1.
2) The ss_sp member of the uc_stack structure now
represents the base (low memory address) of
the area reserved for the stack , in keeping with
other uses of ss_sp. Prior to 9 version it represented the high memory address .
In Solaris 9 the flag: -D__MAKECONTEXT_V2_SOURCE was required in compile time in order to get the correct usage as well as modifying the source with the following lines:
uc.uc_stack.ss_sp = mmap(0, sz,
PROT_READ | PROT_WRITE | PROT_EXEC,
MAP_PRIVATE | MAP_ANON, -1, 0);
- uc.uc_stack.ss_sp = (char *)uc.uc_stack.ss_sp + sz - 8;
uc.uc_stack.ss_size = sz;
uc.uc_stack.ss_flags = 0;
I understand the in Soaris 10, the changes are applied with the need for the flago nor the additional code.
Apperantley the libraries compiled with the changes on 2.9 machine are not backward compatible on older versions of Solaris. My question is whether code compiled and build in Solaris 10 will be comaptible with older version, in means of makecontext() usage.

Hi all,
As I understand it, The makecontext() function was apperantley changed in Solaris 9, in the following ways, that are clearly related to each other:
void makecontext(ucontext_t *ucp, void(*func)(), int argc, ...);
1) argc is now repersenitng the exact number of arguments that func expects, instead of the arguments num + 1.
2) The ss_sp member of the uc_stack structure now
represents the base (low memory address) of
the area reserved for the stack , in keeping with
other uses of ss_sp. Prior to 9 version it represented the high memory address .
In Solaris 9 the flag: -D__MAKECONTEXT_V2_SOURCE was required in compile time in order to get the correct usage as well as modifying the source with the following lines:
uc.uc_stack.ss_sp = mmap(0, sz,
PROT_READ | PROT_WRITE | PROT_EXEC,
MAP_PRIVATE | MAP_ANON, -1, 0);
- uc.uc_stack.ss_sp = (char *)uc.uc_stack.ss_sp + sz - 8;
uc.uc_stack.ss_size = sz;
uc.uc_stack.ss_flags = 0;
I understand the in Soaris 10, the changes are applied with the need for the flago nor the additional code.
Apperantley the libraries compiled with the changes on 2.9 machine are not backward compatible on older versions of Solaris. My question is whether code compiled and build in Solaris 10 will be comaptible with older version, in means of makecontext() usage.

Similar Messages

  • Solaris11 : binary backward compatibilty for old SPARC systems

    We have some decomisisoned SPARC servers that can be used for test & dev, but these are too "old".
    V490, V880, V890 does not support Solaris 11.
    What happened to binary backward compatibilty?
    Oracle sales people commend binary backward compatibility, but I do not get this...

    [opinion]
    To the best of my recollection, "binary compatibility" only refers to software, not to hardware.
    If you had a program or an application that ran on those systems when you had Solaris 9 or Solaris 10 on them, then the same program(s) will install and run on a system that uses Solaris 11.
    For example from a tiotally different part of the computer Universe ---
    I dare you to install Microsoft Windows XP to a computer that happens to have an ISA expansion slot and have that OS recognize the existence of the slot (let alone any cards installed to that ISA slot).
    [end opinion]
    ... now let's see what others might say...

  • How to Set "delete from hub and server" for each account

    How can I set "delete from hub and server" differently for each account?
    I have 3 emails (2 shared, 1 personal).
    the personal is a 'hotmail' account which has device set to 'sync email', 'push', and 'Use SSL'.
    it will only sync one way (from desktop to device).
    I cannot set the global setting on the device to "delete from Hub and server" without affecting all accounts.
    I do not want to have to confirm delete on every item.
    previous to the 10.3 update this was not an issue.
    am i missing something? or is this another step backwards?

    The only other way would be to set it to prompt every time you get an email. Yeah, I know that defeats the purpose.. I guess in this aspect it is a step back

  • Backward compatibility from DS12.1 to 11.7.2.3

    Hi,
    Customer is checking whether we can support backward downgrading from DS12.1 to 11.7. I know the chance to support it is very slim. But I just want to seek for any possibility and the impact of it if possible.
    thanks and regards
    nora

    No you cannot. It is not supported. And if the ATL code is different, the older version will not understand it.
    Having said that, if you did not use any new transforms and the ATL did not change, you might be lucky. For example from 12.1 to 11.7 it should work - if no new transform was used as said. Just edit the ATL and remove/change the line with the ATL version. If the import works..............
    In 12.2 the ATL will be slightly different, there it would not work (I believe).

  • Server detected a backward timestamp from 1973406 to 0 in file

    In my core.log file I'm receiving these error messages;
    Server detected a backward timestamp from 1973406 to 0 in file:C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc1
    Server detected a backward timestamp from 1973406 to 0 in file:C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2
    Is this an issue caused by the encoder? I'm using a Viewcast Niagara to encode and not the FMLE. These are the only settings I have available.
    I'm using all default settings on the FMS 4.5 server. 
    Thanks,
    Dave

    I'm checking again with Viewcast support .I don't see how I can check whether ATC is enabled on the encoder. Since it's a portable contained streaming appliance.
    The last response I got from them was.
    "Does this happen every time or only when you restart the profile shortly after stopping it? As a rule time codes are always an off set from 0. However, it does not matter what the time code is. It just matters that the server doesn't get an out of sequence time code. So if you stop an encoder and then start it too quickly you can send a time code to the server before the server has completely torn down the previous stream. You should wait several seconds before restarting a stream."

  • How do I remove stray digital images of backward slashes from my laptop screen?

    How do I remove a stray digital image of a backward slash from my computer screen?

    I don't know if it's myself here Allen, but these look like marks relating to the LCD panel itself.
    I've seen this on iBooks which have small marks. They are not dead pixels as such but darken spots cast in a  very small line. When I've seen this before it's been due to pen pointers or object witch have been used to point at the screen. Normally people have used these object to touch the screen,which has left these very small marks.
    It seem to be common on earlier iBook's and PowerBook, maybe due to the type of LCD panel they use.
    I maybe wrong here, but thought it might be worth mentioning.

  • I have bought a film from itunes and the credit has come out of my account, but i can't find the film anywhere, it said it was downloading, then i left the laptop and on return i couldn't find the film. how do i find the film?

    i have bought a film from itunes and the credit has come out of my account, but i can't find the film anywhere, it said it was downloading, then i left the laptop and on return i couldn't find the film. how do i find the film?

    Maybe it is in the Purchased category of iTunes,
    Try going there

  • I have one apple ID for both my Iphone 4S and Ipad. My Ipad was stolen from me and when I checked the iCloud, it can only locate the Iphone 4S. How can I locate the Ipad device?

    I have one apple ID for both my Iphone 4S and Ipad. My Ipad was stolen from me and when I checked the iCloud, it can only locate the Iphone 4S. How can I locate the Ipad device?

    Welcome to the Apple Community.
    You can only locate your device when it is logged into iCloud and 'Find My Phone' is enabled, additionally the device will need to be switched on and connected to a wifi or cellular network.
    Unfortunately, you cannot activate iCloud or 'Find My Phone' remotely.

  • I have a new pc, and when updating ipad software it will erase all apps etc, is there any way to stop this from happening and make my new laptop my ipads "home" pc???

    I have a new laptop, and have copied over my existing itunes libary, but when i connect my ipad, and go to update the software to the new version it warns me that it will wipe all my apps etc..... How can i stop this from happening and make my new laptop the "home" for my ipad??
    Any help gratefully received! :-)

    Macs use an application called Migration Assistant to copy material from the old Mac to the new one. The macs are connected together and each runs Migration Assistance and the user chooses what stuf to copy onto the new Mac.
    Unfortunately I do not know how to do this between pcs or between a Mac and a Pf or even if it's even possible.

  • I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

    I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

    I created a slide show in imovie for my daughters 21st with voice overs from friends and family which was all working fine but now the voice recordings are not playing at all.  Obviously some setting has changed but I can't find which one.

  • Good morning, i would like to know how to take pictures from iphoto and put them in a folder on desktop

    Good morning: would like to know how to take pictures from my iphoto and put them in a folder on my desktop

    To take photos from iPhoto and put them onto a folder on Desktop, first create a folder on Desktop. Right-click on Desktop and create a new folder.
    Then, open iPhoto, and you have two ways to export photos:
    1. Select the photos you want to copy to Desktop with Command key (or go to Edit menu > Select All, if you want to copy all photos), and then, drag them to the folder on Desktop.
    2. Select the photos you want to copy to Desktop with Command key, go to File menu > Export, and follow the steps.
    You can choose the one you prefer

  • Mail not getting all messages from server and other strange behavior

    Hello All,
    Mail has been doing some odd things for me of late (at least the last week) and I'm lost for a solution to my problem. As far as I can tell, perhaps my Prefs. have become corrupted, or at least something in relation to Mail has become corrupted. Perhaps someone has a solution to this issue before I have to back it all up and NUKE the whole **** app to get back up and running properly.
    The main issue I appear to be having is that Mail is not getting all of my Mail messages from my server. I can log into my web-mail interface provided by my domain host and can see there that there are many e-mails that don't appear to be coming down the pipe to the Mail.app client. I'm getting some e-mail's but not all....
    *Here are all the things that I've checked:*
    • The missing e-mails are not being picked up as Junk and are not in the Junk folder
    • I have done a search within Mail for the missing e-mail's and nothing turns up anywhere.
    • I have checked on the server end that I'm not maxing out my InBox or that there are any other service issues from my domain host provider.
    • I have been into Prefs and checked my account settings - most (see below) of which appear to be as normal and are fine.
    *Here are the weird things that I've noticed:*
    • When I went into the Prefs. for the account in question, I noticed that my login had changed. For example - it usually it is "[email protected]", however it had seemed to have changed to just "johndoe" - I know this wasn't me as my domain host will not allow me to access any mail unless the login is the full mail address.
    • In RULES, every rule I double click to check on seems mostly fine, apart from the fact that every "Account is:" the pull down menu just appears as blank. Usually it says "Account is: ([email protected])"
    It's there last 2 items that make me think something is corrupted - so I guess my question is, what pref or file has corrupted and how can I fix it without having to give Mail.app a digital enema?
    Any assistance would be most helpful - missing some but not all your incoming e-mail messages is quite annoying, as you can guess...!
    Thanks,
    Boz

    Hello Boz.
    This appears to be a rules issue. Mail is almost certainly downloading those messages, but they’re probably being processed by your rules in an unexpected way — given the information you’ve provided, maybe because there is something wrong with the file where the account settings are stored.
    Do you have any Mail plug-ins? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/InputManagers/
    /Library/Mail/Bundles/
    ~/Library/InputManagers/
    ~/Library/Mail/Bundles/
    To make accurately reporting this information easier, you may open /Applications/Utilities/Terminal, type the following command (you can just copy it here and paste it in Terminal), and press <Return>. You can then copy the output of that command from Terminal and paste it in your reply to this post:
    ls -1 /Library/InputManagers /Library/Mail/Bundles ~/Library/InputManagers ~/Library/Mail/Bundles
    <hr>
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, and ensuring that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. Write down your Mail > Preferences > Accounts settings or take screen shots of them.
    2. If you have a .Mac account and .Mac synchronization of Mail data is enabled either in Mail > Preferences > General or in System Preferences > .Mac, disable it before proceeding.
    3. Quit Mail.
    4. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the Mail folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is locally stored.
    5. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this solves the problem). If you have a backup of your data that includes a working copy of this file, you may try restoring it from the backup to avoid steps 6-8.
    6. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    7. You’ll have to re-configure some of your Mail > Preferences settings. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    8. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    9. If the problem is fixed now and .Mac synchronization of Mail data was enabled at the beginning, enable it again, go to System Preferences > .Mac > Advanced, click Reset Sync Data, and choose the appropriate options to reset the Mail data stored on the .Mac server with the data locally stored on the computer, i.e. sync data must flow from the computer to the .Mac server.
    <hr>
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • HT201272 I dont understand how I can purchase a song from itunes and it WILL not transfer to my iPhone? What is the purpose of paying for music in the first place? I have authorised my computer. I have authorised manual transfer. I can transfer every song

    I've purchased music from iTunes and CANNOT drag to my iPhone...WHY? I have clicked manage myself and authorised my computer. What is the point of buying music if you cannot transfer from iTunes to an iPhone? I can happily transfer my CDs.????? I have the latest update on my iPhone and iTunes.

    Media was moved via external hard disk, and I think I moved the iTunes Media folder after consolidating it.

  • I rented a movie from iTunes and it is on my IPad.  I wanted to watch it on AppleTV and there is no airplay icon showing up on the movie

    I rented a movie from ITunes and it is on my IPad.  I wanted to watch it on Apple TV however there is no airplay ap showing up.  What should I do

    That won't be possible. You can only view a rental on the device used to do so, unless it is done via computer (in which case you can stream using home sharing)

  • When trying to update apps from iPad and iPhone a previous one time users email keeps coming up. How do I delete their information?

    When trying to update apps from iPad and iPhone a previous one time users email keeps coming up. How do I delete their information?

    delete off any apps that are asking for the wrong apple id and download/sync them over from the correct one

Maybe you are looking for

  • How to find roles related to any Customer in BW.

    Hi All, i am working as an SAP Security analyst and i am trying to find out the roles related to some customer in BW. I have tryied to find the roles under the object Z_G8D_SALE and under the object Z_G8D_VL3 with the technical name of the report. To

  • On best practices for minimizing user impact for db/dw migrations

    Hi Everybody! Our department will be undertaking the migration of our ODS and Datawarehouse to Oracle 10g in the coming months and I wanted to query this group in anticipation for any good tips, DOs and DON'Ts and best practices that you might want t

  • WebService setting xml request

    I'm a .NET developer learning Flex I'm trying to set the xml request in the flex webservice.  A little background, I'm uploading a file to a third-party and they respond with xml data I want to use.  I want to take that xml and pass it to a .NET webs

  • Mail not showing recent messages

    I have my mail set up to show last 50 messages, but as soon as I read a message, it disappears on my phone. I have my mail set up to fetch, should it be on push or manual or does it not matter? It's just frustrating when I'm out and need to access my

  • My MBP will only connect to internet if VPN is active. How to fix?

    Hey guys. I've been having trouble for a while now with my MBP connecting to the internet. I usually use a L2TP VPN, and the internet works fine when I have the VPN activated. The problem is that there are times when I need to use the internet withou