Searched refs:gethostname (Results 1 - 25 of 208) sorted by relevance

123456789

/macosx-10.9.5/curl-78.94.1/curl/tests/libtest/
H A Dsethostname.c30 int gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen) function
H A Dsethostname.h44 gethostname(char *name, GETHOSTNAME_TYPE_ARG2 namelen);
/macosx-10.9.5/curl-78.94.1/curl/lib/
H A Dcurl_gethostname.c28 * Curl_gethostname() is a wrapper around gethostname() which allows
43 * mechanism which intercepts, and might override, the gethostname()
74 err = gethostname(name, namelen);
79 /* The call to system's gethostname() might get intercepted by the
83 err = gethostname(name, namelen);
/macosx-10.9.5/Heimdal-323.92.1/lib/roken/
H A Dgethostname.c47 * interface is identical to gethostname(2).)
51 gethostname(char *name, int namelen) function
/macosx-10.9.5/postfix-252/postfix/src/util/
H A Dget_hostname.c12 /* via gethostname() or its moral equivalent. This routine
60 * The gethostname() call is not (or not yet) in ANSI or POSIX, but it is
74 if (gethostname(namebuf, sizeof(namebuf)) < 0)
75 msg_fatal("gethostname: %m");
/macosx-10.9.5/bind9-45.100/bind9/contrib/nslint-2.1a3/lbl/
H A Dos-solaris2.h30 int gethostname(char *, int);
/macosx-10.9.5/dcerpc-58/dcerpc/perf/
H A Dperfb.c123 gethostname(name, 256);
152 gethostname(name, 256);
/macosx-10.9.5/Libc-997.90.3/gen/FreeBSD/
H A Dgethostname.c31 static char sccsid[] = "@(#)gethostname.c 8.1 (Berkeley) 6/4/93";
34 __FBSDID("$FreeBSD: src/lib/libc/gen/gethostname.c,v 1.8 2007/01/09 00:27:54 imp Exp $");
45 gethostname(name, namelen) function
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/
H A Dnetdb.h90 /* $Copyright: * * Copyright 1998-2000 by the Massachusetts Institute of Technology. * * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation, and that the name of M.I.T. not be used in * advertising or publicity pertaining to distribution of the software * without specific, written prior permission. Furthermore if you modify * this software you must label your software as modified software and not * distribute it in such a fashion that it might be confused with the * original MIT software. M.I.T. makes no representations about the * suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * Individual source code files are copyright MIT, Cygnus Support, * OpenVision, Oracle, Sun Soft, FundsXpress, and others. * * Project Athena, Athena, Athena MUSE, Discuss, Hesiod, Kerberos, Moira, * and Zephyr are trademarks of the Massachusetts Institute of Technology * (MIT). No commercial use of these trademarks may be made without prior * written permission of MIT. * * "Commercial use" means use of a name in a product or other for-profit * manner. It does NOT prevent a commercial firm from referring to the MIT * trademarks in order to convey information (although in doing so, * recognition of their trademark status should be given). * $ */ /* $Header: /Volumes/backup/dsmigrate/Dumps/../CVS/passwordserver_sasl/cyrus_sasl/mac/CommonKClient/mac_kclient3/Headers/KerberosSupport/netdb.h,v 1.4 2005/01/10 19:10:48 snsimon Exp $ */ /* MIT Sockets Library * netdb.h * macdev@mit.edu */ #ifndef _NETDB_H #define _NETDB_H #include <stdlib.h> #ifdef __cplusplus extern "C" { #endif struct hostent { char *h_name; /* official (cannonical) name of host */ char **h_aliases; /* pointer to array of pointers of alias names */ int h_addrtype; /* host address type: AF_INET or AF_INET6 */ int h_length; /* length of address: 4 or 16 */ char **h_addr_list; /* pointer to array of pointers with IPv4 or IPv6 addresses */ }; #define h_addr h_addr_list[0] /* first address in list */ struct servent { char *s_name; /* official service name */ char **s_aliases; /* alias list */ int s_port; /* port number, network-byte order */ char *s_proto; /* protocol to use */ }; #if defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__) # pragma import on #endif #if !TARGET_RT_MAC_CFM # pragma d0_pointers on #endif struct hostent *gethostbyname(const char *hostname); struct hostent *gethostbyaddr(const char *addr, size_t len, int family); /* Gets the local host's hostname. If namelen isn't long enough, it puts in as much of the name as possible, without a terminating null. This is done so it is compatible with the unix version. This is, admittedly, the wrong way to write a code, but my excuse is compatibility. It should really dynamically allocate space. Oh well. It also assert()'s if you don't pass it a reasonably sized buffer. */ int gethostname(char *name, size_t namelen); /* Opens the service database if needed and gets the next service en (…)
/macosx-10.9.5/procmail-14/procmail/src/
H A Dacommon.c26 gethostname(name,MAXHOSTNAMELEN),name[MAXHOSTNAMELEN-1]='\0';
/macosx-10.9.5/shell_cmds-175/hostname/
H A Dhostname.c87 if (gethostname(hostname, (int)sizeof(hostname)))
88 err(1, "gethostname");
/macosx-10.9.5/ksh-20/ksh/src/lib/libcmd/
H A Duname.c72 __STDPP__directive pragma pp:hide getdomainname gethostid gethostname sethostname
76 #define gethostname ______gethostname
95 __STDPP__directive pragma pp:nohide getdomainname gethostid gethostname sethostname
99 #undef gethostname
110 extern int gethostname(char*, size_t);
169 if (gethostname(ut->nodename, sizeof(ut->nodename) - 1))
387 if (sizeof(ut.nodename) > 9 || gethostname(s, sizeof(buf)))
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/include/
H A Dconfig.h61 #define gethostname xxx_sasl_gethostname macro
85 #define gethostname xxx_sasl_gethostname macro
86 int gethostname(char *dest,int destlen);
/macosx-10.9.5/libutil-34/
H A Dtrimdomain.c66 if (gethostname(domain, sizeof(domain) - 1) == 0 &&
/macosx-10.9.5/ntp-88/libntp/
H A Dfindconfig.c30 if (gethostname(hostname, BUFSIZ) >= 0) {
/macosx-10.9.5/remote_cmds-41.90.1/talk.tproj/
H A Dget_names.c87 gethostname(hostname, sizeof (hostname));
/macosx-10.9.5/tcl-102/tcl/tcl/unix/
H A DtclUnixSock.c84 * Uname doesn't exist; try gethostname instead.
104 if (gethostname(buffer, sizeof(buffer)) > -1) { /* INTL: Native. */
/macosx-10.9.5/tcl-102/tcl84/tcl/unix/
H A DtclUnixSock.c111 * Uname doesn't exist; try gethostname instead.
114 if (gethostname(buffer, sizeof(buffer)) > -1) { /* INTL: Native. */
/macosx-10.9.5/uucp-11/uucp/contrib/
H A Duutraf124 $thishost = &gethostname();
198 sub gethostname {
/macosx-10.9.5/bash-92/bash-3.2/lib/sh/
H A Doslib.c194 gethostname (name, namelen) function
211 gethostname (name, namelen) function
/macosx-10.9.5/llvmCore-3425.0.33/lib/Support/
H A DLockFileManager.cpp56 gethostname(MyHostname, 255);
97 gethostname(hostname, 255);
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/mac_lib/
H A Dxxx_mac_lib.c3 * on the macintosh. these have common names like strdrup gethostname etc. defining
82 int gethostname(char *dest,int destlen) function
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/saslauthd/
H A Dauth_sasldb.c145 ret = gethostname(realm_buf,MAXHOSTNAMELEN);
/macosx-10.9.5/remote_cmds-41.90.1/talkd.tproj/
H A Dtalkd.c99 if (gethostname(hostname, sizeof(hostname) - 1) < 0) {
100 syslog(LOG_ERR, "gethostname: %m");
/macosx-10.9.5/tcl-102/tcl_ext/tclx/tclx/win/
H A DtclXwinId.c90 if (gethostname (hostName, sizeof (hostName)) < 0) {

Completed in 413 milliseconds

123456789