Why/When would p_online(cpu#, P_STATUS) set errno to ENOENT???

Hi All,
We have a java application which makes the system call p_online(P_STATUS), via JNI,
to check whether a CPU number is a valid. Under certain situation (eg. running the java
inside WebSphere as an Admin Server vs. App Server), the p_online() system call with an
invalid CPU # as parameter, will return -1 but set the errno to ENOENT (no such file/directory).
According to the documentation, if the CPU# is invalid, the p_online() call returns -1 and set
the errno to EINVAL(Invalid argument). The documentation does not mention ENOENT as
a valid errno value for p_online system call.
Why did the p_online(P_STATUS) return -1 and set errno to ENOENT? (instead of EINVAL)
Note that if we make the call from within a WebSphere (Admin Server) or from within a
WebSphere (App Server), the behavior of p_online(P_STATUS) changes. ENOENT is returned
only in AppServer mode.(when p_online() is called via JNI)
Thanks for any info!
Regards,
Andy Yeung
[email protected]

Hi All,
We have a java application which makes the system call p_online(P_STATUS), via JNI,
to check whether a CPU number is a valid. Under certain situation (eg. running the java
inside WebSphere as an Admin Server vs. App Server), the p_online() system call with an
invalid CPU # as parameter, will return -1 but set the errno to ENOENT (no such file/directory).
According to the documentation, if the CPU# is invalid, the p_online() call returns -1 and set
the errno to EINVAL(Invalid argument). The documentation does not mention ENOENT as
a valid errno value for p_online system call.
Why did the p_online(P_STATUS) return -1 and set errno to ENOENT? (instead of EINVAL)
Note that if we make the call from within a WebSphere (Admin Server) or from within a
WebSphere (App Server), the behavior of p_online(P_STATUS) changes. ENOENT is returned
only in AppServer mode.(when p_online() is called via JNI)
Thanks for any info!
Regards,
Andy Yeung
[email protected]

Similar Messages

  • Good morning! i'd like to know why when I write an email in Mail, it creates numerous copies each second which fill the trash box. My email is set up with IMAP and is a gmail account. Thanks

    good morning! i'd like to know why when I write an email in Mail, it creates numerous copies each second which fill the trash box. My email is set up with IMAP and is a gmail account. Thanks

    Open Mail preferences and select Accounts then MailBox Behavior. You probably need to unclick the safe draft to server.

  • Why, when I try to set up an exchange account for my gmail, does it keep telling me my password is wrong?

    why, when I try to set up an exchange account for my gmail, does it keep telling me my password is wrong?

    Try unlocking your account here: https://accounts.google.com/b/0/DisplayUnlockCaptcha

  • Why when I set up my Country or Region on my iPhone 5, the default language of the phone is the country's and not the one I selected when I set up my preferred language?

    Why when I set up my Country or Region on my iPhone 5, the default language of the phone is the country's and not the one I selected when I set up my preferred language?

    Go to Settings/General/Reset and choose Reset All Content and Settings. This will erase everything on the iPhone and allow you to set it up again as new with the proper Apple ID.

  • Why do my applications quit when I enter the printer setting for my Epson 10600

    why do my applications quit when I enter the printer setting for my Epson 10600

    Which Mac and OS do you have?

  • Any ideas why InCopy would freeze when trying to copy content?

    Any ideas why InCopy would freeze when trying to copy content? This is occurring on a corporate computer running Windows. We've uninstalled and reinstalled InCopy and are still runnng into the same problem.
    Any ideas would be appreciated. Thanks!

    I am also having the same issue when Syncing my 5th gen Nano. I can sync my iPhone, iPad and my sons iPod Touch but not my Nano. When I click to sync I just get the rainbow wheel.

  • I use photoshop cs6 extended and when I create a new shortcut, it will work once and then disappear..any help on why this would happen

    I use photoshop cs6 extended and when I create a new shortcut, it will work once and then disappear..any help on why this would happen

    Sorry, no further idea what can cause this.
    Is the shortcuts file truely saved to disk? You can find in the user path, where the preferences and presets are stored for PS. Or if you go to the dialog again where you change shortcuts, is it reverted there too?

  • Why when i set up folders for my photos do they also appear in the photo library can I only have them appear in the folders???

    Why when i set up folders for my photos do they also appear in the photo library can I only have them appear in the folders and not duplicated in the photo library???

    Not sure about the missing photos from the Photo Stream section of 'Recent', however to stop photos populating the events, turn off Automatic Import (iPhoto Preferences > Photo Stream)

  • Why when i try signing in it keeps telling me to set up an account on my pc when i have already done that?

    why when i try signing in it keeps telling me to set up an account on my pc when i have already done that?

    You can't create an iCloud account on a PC.  What is the exact error message you are seeing?

  • Why when i set my mac in sleep it starts alone and also complete stop without I do anything (Mac mini Mid 2011 - Yosemite)

    Why when i set my mac in sleep it starts alone and also complete stop without I do anything (Mac mini Mid 2011 - Yosemite)

    in response to lllaass
    here what I copied from Console:
    27/12/2014 02:29:58,457 WindowServer[185]: WSGetSurfaceInWindow : Invalid surface 1336265605 for window 268
    27/12/2014 02:30:02,516 WindowServer[185]: WSBindSurface : Invalid surface 1040636110 for window 266
    27/12/2014 02:30:17,370 com.apple.xpc.launchd[1]: assertion failed: 14B25: launchd + 160118 [55B9FF23-B298-321A-B776-CF7676586C04]: 0xe
    27/12/2014 02:30:17,371 com.apple.xpc.launchd[1]: assertion failed: 14B25: launchd + 160118 [55B9FF23-B298-321A-B776-CF7676586C04]: 0xe
    27/12/2014 02:30:18,819 Office365Service[2012]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.1 instead of 10.10.1. Use NSProcessInfo's operatingSystemVersion property to get correct system version number.
    Call location:
    27/12/2014 02:30:18,819 Office365Service[2012]: 0   CarbonCore                          0x901777e7 ___Gestalt_SystemVersion_block_invoke + 135
    27/12/2014 02:30:18,819 Office365Service[2012]: 1   libdispatch.dylib                   0x960dc130 _dispatch_client_callout + 50
    27/12/2014 02:30:18,819 Office365Service[2012]: 2   libdispatch.dylib                   0x960dc0b5 dispatch_once_f + 251
    27/12/2014 02:30:18,819 Office365Service[2012]: 3   libdispatch.dylib                   0x960dd0d8 dispatch_once + 31
    27/12/2014 02:30:18,819 Office365Service[2012]: 4   CarbonCore                          0x90109fb8 _Gestalt_SystemVersion + 1050
    27/12/2014 02:30:18,819 Office365Service[2012]: 5   CarbonCore                          0x90109b69 Gestalt + 150
    27/12/2014 02:30:18,819 Office365Service[2012]: 6   Office365Service                    0x000589a3 Office365Service + 358819
    27/12/2014 02:30:29,794 warmd[36]: [_bootcachectl_playlist_for_file:3197] Unable to generate playlist for file: 2 No such file or directory
    27/12/2014 02:30:29,794 warmd[36]: [_bootcachectl_playlist_for_file:3197] Unable to generate playlist for file: 2 No such file or directory
    27/12/2014 02:30:29,797 warmd[36]: [_bootcachectl_playlist_for_file:3197] Unable to generate playlist for file: 2 No such file or directory
    27/12/2014 02:30:29,797 warmd[36]: [_bootcachectl_playlist_for_file:3197] Unable to generate playlist for file: 2 No such file or directory
    27/12/2014 02:30:29,797 warmd[36]: [_bootcachectl_playlist_for_file:3197] Unable to generate playlist for file: 2 No such file or directory
    27/12/2014 02:30:29,799 warmd[36]: [_bootcachectl_playlist_for_file:3197] Unable to generate playlist for file: 2 No such file or directory
    27/12/2014 02:30:29,801 warmd[36]: [_bootcachectl_playlist_for_file:3197] Unable to generate playlist for file: 2 No such file or directory
    27/12/2014 02:30:30,870 xscertd-helper[2020]: ldap_search_ext_s returned -1 - Can't contact LDAP server when searching for bdb suffix, exiting
    27/12/2014 02:30:30,883 com.apple.xpc.launchd[1]: (com.apple.xscertadmin[2020]) Service exited with abnormal code: 1
    27/12/2014 02:30:30,928 coreaudiod[1249]: 2014-12-27 02:30:30.927642 AM [AirPlay] Power: SystemWillSleep
    27/12/2014 02:30:30,928 coreaudiod[1249]: 2014-12-27 02:30:30.927798 AM [AirPlay] BTLE client stopping to browse for AirPlay Solo Target Presence.
    27/12/2014 02:30:30,928 coreaudiod[1249]: 2014-12-27 02:30:30.928007 AM [AirPlay] BTLE discovery removing all devices
    27/12/2014 02:30:30,929 coreaudiod[1249]: 2014-12-27 02:30:30.929458 AM [AirPlay] BTLE client stopped to browse for AirPlay Solo Target Presence.
    27/12/2014 02:30:30,931 watchdogd[162]: [watchdog_daemon] @(         pm_callback) - ref=0x0 msg_type=0xe0000280 msg=0x2a0005
    27/12/2014 02:30:30,931 watchdogd[162]: [watchdog_daemon] @(    wd_daemon_thread) - events buffer: 65r1069 3634s1069
    27/12/2014 02:30:30,965 Office365Service[2012]: System shutdown notification
    27/12/2014 02:30:31,001 WindowServer[185]: device_generate_desktop_screenshot: authw 0x0(0), shield 0x7fbf43423ed0(2001)
    27/12/2014 02:30:31,044 identityservicesd[1311]: <IMMacNotificationCenterManager: 0x7ffac2c4fef0>: notification observer: com.apple.iChat   notification: __CFNotification 0x7ffac2d4efa0 {name = _NSDoNotDisturbEnabledNotification}
    27/12/2014 02:30:31,044 imagent[1305]: <IMMacNotificationCenterManager: 0x7fde8a42c1e0>: notification observer: com.apple.FaceTime   notification: __CFNotification 0x7fde8a54a860 {name = _NSDoNotDisturbEnabledNotification}
    27/12/2014 02:30:31,089 WindowServer[185]: device_generate_lock_screen_screenshot: authw 0x0(0)[inf, inf, 0, 0] shield 0x7fbf43423ed0(2001), dev [1680,1050]
    27/12/2014 02:30:31,000 kernel[0]: PM response took 168 ms (1194, UserEventAgent)
    27/12/2014 02:30:31,105 WindowServer[185]: device_generate_desktop_screenshot: authw 0x0(0), shield 0x7fbf43423ed0(2001)
    27/12/2014 02:30:31,180 apsd[59]: Peer [pid=1203] requested push wake but lacks APSPushWakeEntitlement
    27/12/2014 02:30:31,228 imagent[1305]: <IMMacNotificationCenterManager: 0x7fde8a42c1e0>:    NC Disabled: NO
    27/12/2014 02:30:31,228 identityservicesd[1311]: <IMMacNotificationCenterManager: 0x7ffac2c4fef0>:    NC Disabled: NO
    27/12/2014 02:30:31,237 imagent[1305]: <IMMacNotificationCenterManager: 0x7fde8a42c1e0>:   DND Enabled: YES
    27/12/2014 02:30:31,237 identityservicesd[1311]: <IMMacNotificationCenterManager: 0x7ffac2c4fef0>:   DND Enabled: YES
    27/12/2014 02:30:31,237 imagent[1305]: <IMMacNotificationCenterManager: 0x7fde8a42c1e0>: Updating enabled: NO   (Topics: (null))
    27/12/2014 02:30:31,237 identityservicesd[1311]: <IMMacNotificationCenterManager: 0x7ffac2c4fef0>: Updating enabled: NO   (Topics: (null))
    27/12/2014 02:30:31,237 identityservicesd[1311]: <IMMacNotificationCenterManager: 0x7ffac2e30040>: notification observer: com.apple.iChat   notification: __CFNotification 0x7ffac2c43f40 {name = _NSDoNotDisturbEnabledNotification}
    27/12/2014 02:30:31,244 identityservicesd[1311]: <IMMacNotificationCenterManager: 0x7ffac2e30040>:    NC Disabled: NO
    27/12/2014 02:30:31,249 identityservicesd[1311]: <IMMacNotificationCenterManager: 0x7ffac2e30040>:   DND Enabled: YES
    27/12/2014 02:30:31,249 identityservicesd[1311]: <IMMacNotificationCenterManager: 0x7ffac2e30040>: Updating enabled: NO   (Topics: (null))
    27/12/2014 02:30:31,000 kernel[0]: PM response took 347 ms (71, blued)
    27/12/2014 02:30:49,000 kernel[0]: PM response took 3456 ms (31, powerd)
    27/12/2014 02:30:49,000 kernel[0]: Failed to get hibernate image filename
    27/12/2014 02:30:49,000 kernel[0]: AirPort_Brcm43xx::powerChange: System Sleep
    All that is really chinese for me Do you know where i could get anything to be teached about all that
    Thanks

  • How is the resolution variable or when would we change the resolution of an image and why?

    How is the resolution variable or when would we change the resolution of an image
    and why?

    It all depends on the output:
    * for viewing on screen 90 -120 ppi
    * for printing on a laser printer 180  -300 ppi
    * for printing on a desktop printer 240 - 300 ppi
    Some people claim 360 ppi is optimum but I don't see any difference compaired to 300 ppi at least not with the naked eye...

  • TS1398 What would be the reason why when i try to connect my iphone to a wifi server; it doesn't work? It also doesn't pick up any wifi connections.

    What would be the reason why when i try to connect my iphone to a wifi server; it doesn't work? It also doesn't pick up any wifi connections.

    go to settings>general> reset network connections  and then try again

  • When would Public Group ID not be set to 1?

    When setting up a P6 data connection, when would the public group ID for a database connection be anything other than 1?
    Edited by: Sean Finegan on Jul 9, 2011 1:25 PM

    hello...
    I install the APEX and but
    I cant find modplsql in Apache folder postinstallation.
    I couldnt connect to http://localhost:7778/
    At the end of the installation, it showed:
    Oracle Application Express is installed in the FLOWS_030000 schema.
    The structure of the link to the Application Express administration
    services is as follows:
    http://host:port/pls/apex/apex_admin
    The structure of the link to the Application Express development
    interface is as follows:
    http://host:port/pls/apex
    I cant understand what is the problem...
    thank you...

  • Why when trying to set up my gmail, it keeps telling me imap username

    Why when trying to setup my gmail account on this supposedly incredible iPhone 4S it keeps telling me that imap username and or password is wrong?  I have tried everything I was told and still same problem    PLEASE SOMEONE HELP  ME. 
    I have been working on this for 2 weeks.  It used to work.  I don't know what happened!!!

    I have done that I think.  How do I know if smpt is turned on?  When I try to create the gmail account, I put my first and last name, then I put my [email protected], then my password &amp; then hit next, it then searches my account and another page pops up and on the top left it says IMAP and then I follow the directions from there.  I put in imap.gmail.com and then I put in the same info as the first page as in username and password, then I put in smpt.gmail.com and my username and password.  I know my username &amp; password are 100% correct, then I hit next and that is when it pops up imap username and or password are incorrect.  What am I missing ?

  • Why when I plug my earphone on my ipod, I hear nothing just the beat and the singer, sing make noise, and to have heard correctly I have to keep taking the listener connection, I would like to know how to repair it? srry google traduc .

    pourquoi quand je branche mes ecouteur sur mon ipod, je entend rien juste le beat et le chanteur , chanter en bruit de font , et pour avoir entendre correctement je dois maintenir la prise de connection des écouteur , j'aimerais savoir comment reparer sa ?
    why when I plug my earphone on my ipod, I hear nothing just the beat and the singer, singmake noise, and to have heard correctly I have to keep taking the listener connection, Iwould like to know how to repair it?

    - Sure sounds like the headphone jack is defective and requires replacement. Try cleaning out/blowing out the headphone jack first.
    - Apple will only replace your iPod for a refurbished one for this price
    Apple - Support - iPod - Repair pricing
    - Google to find a third-party place in yuor country.
    - Replace the jack yourself
    iPod Touch Repair – iFixit

Maybe you are looking for

  • No longer able to connect to any computer with iPhone 4s

    I have a iPhone 4s. I connected it to my Macbook Air today and instead of changing the battery icon to green and appearing in iphoto, nothing happens. Same for iTunes. When I plug the phone into my charger, the charger works. So its not the USB conne

  • HELP! my 2gb ipod nano can olny hold around 90 songs. what can i do?!?!

    i got an 2gb ipod nano not long ao and was told it could hold more than 100 songs. i put all my music onto it and it barely holds 90. ive been told that i can remove the games and things that are taking up all the space. does anyone know how to do th

  • Cisco APs not joining WLC

    Hi guys, I am in the process of configuring a WLC and got stuck due to APs are not joining the WLC. I have configure DHCP server on the Gateway router and the WLC management interface is pointing to the Gateway as DHCP Server. I have multiple Dynamic

  • RSUPDINFO does not contain transfer rules CODEID's

    I did the following: 1)  Go into table RSAABAP and got all the CODEID's for my search string.   2)  Take those CODEID values and use them as a filter for table RSUPDROUT.  No entries came back which tells me that these CODEID's are NOT for update rul

  • Process, Block & Container Operation

    Hi all, What is the difference between process and block containers?? Where would a container operation step be adptly used? I am trying to do a BPM scenario with a send step inside a block and I can't set multiline for a block container. I am little