jnr.constants.platform.Errno.intValue()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中jnr.constants.platform.Errno.intValue()方法的一些代码示例,展示了Errno.intValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Errno.intValue()方法的具体详情如下:
包路径:jnr.constants.platform.Errno
类名称:Errno
方法名:intValue

Errno.intValue介绍

暂无

代码示例

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Address already in use
 */
public static int EADDRINUSE() {
  return Errno.EADDRINUSE.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Device or resource busy
 */
public static int EBUSY() {
  return Errno.EBUSY.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Connection refused
 */
public static int ECONNREFUSED() {
  return Errno.ECONNREFUSED.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * File too large
 */
public static int EFBIG() {
  return Errno.EFBIG.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * No route to host
 */
public static int EHOSTUNREACH() {
  return Errno.EHOSTUNREACH.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Illegal byte sequence
 */
public static int EILSEQ() {
  return Errno.EILSEQ.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Too many symbolic links encountered
 */
public static int ELOOP() {
  return Errno.ELOOP.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * No buffer space available
 */
public static int ENOBUFS() {
  return Errno.ENOBUFS.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * No record locks available
 */
public static int ENOLCK() {
  return Errno.ENOLCK.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Out of memory
 */
public static int ENOMEM() {
  return Errno.ENOMEM.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Out of streams resources
 */
public static int ENOSR() {
  return Errno.ENOSR.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Protocol wrong type for socket
 */
public static int EPROTOTYPE() {
  return Errno.EPROTOTYPE.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Cannot send after transport endpoint shutdown
 */
public static int ESHUTDOWN() {
  return Errno.ESHUTDOWN.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * No such process
 */
public static int ESRCH() {
  return Errno.ESRCH.intValue();
}

代码示例来源:origin: com.github.serceman/jnr-fuse

/**
 * Stale file handle
 */
public static int ESTALE() {
  return Errno.ESTALE.intValue();
}

代码示例来源:origin: com.github.jnr/jnr-posix

public long sysconf(Sysconf name) {
  switch (name) {
    case _SC_CLK_TCK:
      return JavaTimes.HZ;
    default:
      errno(Errno.EOPNOTSUPP.intValue());
      return -1;
  }
}

代码示例来源:origin: org.jruby/jruby-complete

public RaiseException newErrnoFromInt(int errno, String methodName, String message) {
  if (Platform.IS_WINDOWS && ("stat".equals(methodName) || "lstat".equals(methodName))) {
    if (errno == 20047) return newErrnoENOENTError(message); // boo:bar UNC stat failure
    if (errno == Errno.ESRCH.intValue()) return newErrnoENOENTError(message); // ESRCH on stating ""
  }
  return newErrnoFromInt(errno, message);
}

代码示例来源:origin: org.jruby/jruby-complete

public RaiseException newErrnoFromErrno(Errno errno, String message) {
  if (errno == null || errno == Errno.__UNKNOWN_CONSTANT__) {
    return newSystemCallError(message);
  }
  return newErrnoFromInt(errno.intValue(), message);
}

代码示例来源:origin: org.jruby/jruby-core

public RaiseException newErrnoFromInt(int errno, String methodName, String message) {
  if (Platform.IS_WINDOWS && ("stat".equals(methodName) || "lstat".equals(methodName))) {
    if (errno == 20047) return newErrnoENOENTError(message); // boo:bar UNC stat failure
    if (errno == Errno.ESRCH.intValue()) return newErrnoENOENTError(message); // ESRCH on stating ""
  }
  return newErrnoFromInt(errno, message);
}

代码示例来源:origin: org.python/jython

private static PyException fromIOException(IOException ioe, PyObject err) {
  String message = ioe.getMessage();
  if (message == null) {
    message = ioe.getClass().getName();
  }
  if (ioe instanceof FileNotFoundException) {
    PyTuple args = new PyTuple(Py.newInteger(Errno.ENOENT.intValue()),
                  Py.newString("File not found - " + message));
    return new PyException(err, args);
  }
  return new PyException(err, message);
}

相关文章