public String getlogin() { return posix().getlogin(); }
public String getlogin() { return posix().getlogin(); }
public String getlogin() { try { return posix.getlogin(); } catch (UnsatisfiedLinkError ule) { return unimplementedNull(); } }
public String getlogin() { try { return posix.getlogin(); } catch (UnsatisfiedLinkError ule) { return unimplementedNull(); } }
public String getlogin() { return posix().getlogin(); }
public String getlogin() { try { return posix.getlogin(); } catch (UnsatisfiedLinkError ule) { return unimplementedNull(); } }
public String getlogin() { return posix().getlogin(); }
public String getlogin() { try { return posix.getlogin(); } catch (UnsatisfiedLinkError ule) { return unimplementedNull(); } }
@Hide(value=OS.NT, posixImpl = PosixImpl.JAVA) public static PyObject getlogin() { return new PyString(posix.getlogin()); }
@JRubyMethod(module = true) public static synchronized IRubyObject getlogin(IRubyObject recv) { Ruby runtime = recv.getRuntime(); try { String login = runtime.getPosix().getlogin(); if (login != null) { return runtime.newString(login); } login = System.getenv("USER"); if (login != null) { return runtime.newString(login); } return runtime.getNil(); } catch (Exception e) { // fall back on env entry for USER return runtime.newString(System.getProperty("user.name")); } }
@JRubyMethod(module = true) public static synchronized IRubyObject getlogin(IRubyObject recv) { Ruby runtime = recv.getRuntime(); try { String login = runtime.getPosix().getlogin(); if (login != null) { return runtime.newString(login); } login = System.getenv("USER"); if (login != null) { return runtime.newString(login); } return runtime.getNil(); } catch (Exception e) { // fall back on env entry for USER return runtime.newString(System.getProperty("user.name")); } }
@JRubyMethod(name = "getlogin", module = true) public static IRubyObject getlogin(IRubyObject recv) { Ruby runtime = recv.getRuntime(); try { String login = runtime.getPosix().getlogin(); if (login != null) { return runtime.newString(login); } login = System.getenv("USER"); if (login != null) { return runtime.newString(login); } return runtime.getNil(); } catch (Exception e) { // fall back on env entry for USER return runtime.newString(System.getProperty("user.name")); } }
@JRubyMethod(name = "getlogin", module = true) public static IRubyObject getlogin(IRubyObject recv) { Ruby runtime = recv.getRuntime(); try { String login = runtime.getPosix().getlogin(); if (login != null) { return runtime.newString(login); } login = System.getenv("USER"); if (login != null) { return runtime.newString(login); } return runtime.getNil(); } catch (Exception e) { // fall back on env entry for USER return runtime.newString(System.getProperty("user.name")); } }