Thread: Errno codes vs Win32 Error codes

  1. #1
    Registered User awsdert's Avatar
    Join Date
    Jan 2015

    Errno codes vs Win32 Error codes

    Trying to map as many error codes that closely match as possible for general usage without the #ifdefs (beyond what is used for the mappings), currently trying to identify the equivalent of EBADE, so far I've tried just doing a search for EXCHANGE in the win32 error codes with nothing to show for it, so I thought about trying different search terms but to do that I need to clearly understand what linux views as an exchange for this code to be returned, nothing I've found on the net so far actually explains this, anyone here able to?

  2. #2
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Haven't found a suitable match yet but since I'm doing custom semaphores that use more general error codes I decided to use the originals for a different purpose, anyone think there might be an issue with this?
    	/* Never gonna use these for their intended purpose anyways so might as
    	 * well use them as substitutes :) */

  3. #3
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Okay, I think I found the closest equivalent of EBADE, ERROR_EXCEPTION_IN_SERVICE, after finding identifier - Linux source code (v6.2.7) - Bootlin I looked up what it's used in and noticed in the bluetooth header it's used to indicate a kind of communication error, since there are already dedicated codes to communication errors I had to find something that is similar but subtly different, this is the closest I've identified thus far, anyone think something else is more suitable?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 07-31-2017, 10:14 AM
  2. What mean filedescriptor error-codes?
    By lilcoder in forum C Programming
    Replies: 33
    Last Post: 09-26-2007, 07:39 AM
  3. really odd error codes
    By dead_cell in forum C++ Programming
    Replies: 4
    Last Post: 12-28-2002, 09:39 PM
  4. why comu up error about this codes??
    By wymin in forum C Programming
    Replies: 2
    Last Post: 12-20-2002, 07:52 AM
  5. converting scan codes to ascii codes
    By stupid_mutt in forum C Programming
    Replies: 11
    Last Post: 01-25-2002, 04:06 PM

Tags for this Thread