File | Code |
---|---|
ELIZABETH/Sys-Hostname…/README.md :17: |
Attempts several methods of getting the system hostname and then caches the result. It tries the first available of the C library's gethostname(), uname(2), syscall(SYS_gethostname), `hostname`, `uname -n`, and the file /com/host. If all that fails it dies. |
ELIZABETH/Sys-Hostname…/Hostname.pm6 :6: |
#my sub gethostname(Str $name, size_t $len --> int32) is native {*} |
ELIZABETH/Sys-Hostname…/Hostname.pm6 :40: |
result. It tries the first available of the C library's gethostname(), |
ELIZABETH/Sys-Hostname…/Hostname.pm6 :41: |
uname(2), syscall(SYS_gethostname), `hostname`, `uname -n`, and the file |
cosimo/perl6-facter…/ipaddress.rb :116: |
IPSocket.getaddress(Socket.gethostname) |
cosimo/perl6-facter…/macaddress.rb :64: |
host = Socket.gethostname |
retupmoca/P6-Net-SMTP…/README.md :44: |
`$hostname` defaults to calling `gethostname()`, and determines the hostname |
retupmoca/P6-Net-SMTP…/README.md :127: |
- `ehlo($hostname = gethostname())` |
retupmoca/P6-Net-SMTP…/README.md :128: |
- `helo($hostname = gethostname())` |
retupmoca/P6-Net-SMTP…/SMTP.pm6 :37: |
$self.hostname = $hostname // gethostname; |
retupmoca/P6-Net-SMTP…/Raw.pm6 :25: |
method ehlo($hostname = gethostname()) { |
retupmoca/P6-Net-SMTP…/Raw.pm6 :29: |
method helo($hostname = gethostname()) { |
retupmoca/p6-Email-MIME…/MIME.pm6 :523: |
return self!create-boundary ~ '@' ~ gethostname; |
Created
February 27, 2018 09:30
-
-
Save Whateverable/efd256be2c9c28e8f5103044d0dd5830 to your computer and use it in GitHub Desktop.
greppable6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gethostname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment