Searched refs:host (Results 1 - 25 of 39) sorted by relevance

12

/ast/src/cmd/INIT/
H A Dhurl.sh95 host=$url
96 path=/${host#*/}
97 host=${host%%/*}
98 case $host in
100 port=${host##*:}
101 host=${host%:*}
106 test 0 != $verbose && echo "$command: prot=$prot host=$host por
[all...]
H A Dditto.sh36 if \auser@\a is omitted, the local host is used if \ahost\a: is
84 parse() # id user@host:dir
86 typeset id dir user host
99 host=${dir%%:*}
100 dir=${dir#${host}:}
102 host=
107 if [[ ! $host ]]
109 host=$(hostname)
113 eval ${id}_host='$host'
H A Dpackage.sh162 to the hosts. Output for \aaction\a is saved per-host in the
175 The remaining line type is a host description consisting of 6
180 [+hosttype?The host type as reported by
182 [+[user@]]host?The host name and optionally user name
191 then the host is ignored. If this field contains \b:\b
195 host. If \amaster\a is omitted (two :) then the sync is
222 [+host\b [ \aattribute\a ... ]]?List
223 architecture/implementation dependent host information on the
228 [+canon \aname\a?An external host typ
[all...]
/ast/src/lib/libcs/
H A Dgenlocal.sh20 : generate local host info
22 # genlocal [options] [host ...]
75 '-?') print -u2 "Usage: $0 [-hnv] [-f share-file] [-r rsh-path] [-t timeout] [host ...]"; exit 1 ;;
106 for host in $(egrep -v '^#' $file)
108 "") server=$host ;;
109 *) server="$server|$host" ;;
112 hostname=$(package host name)
154 for host
155 do case $host in
156 local|localhost) host
[all...]
H A Dcsattr.c25 * return the local attr attributes for host name
137 return csaddr(state, ip->name) ? state->host : ip->name;
138 if (streq(attr, "addr") || streq(attr, "host"))
141 return *attr == 'a' ? csntoa(state, addr) : state->host;
153 if (!streq(ip->name, state->host))
154 b += sfsprintf(b, x - b, " host=%s", state->host);
158 else if (streq(attr, "addr") || streq(attr, "host"))
159 b += sfsprintf(b, x - b, " %s", (addr = csaddr(state, ip->name)) ? (*attr == 'a' ? csntoa(state, addr) : state->host) : CS_HOST_UNKNOWN);
H A Dcsfrom.c46 addr->addr[0] = udp.host;
51 else messagef((state->id, NiL, -8, "from(%d,*,%d) = %d, data = `%-.*s', addr = %s, port = %u", fd, siz, n, n, buf, csntoa(state, udp.host), udp.port));
H A Dcsopen.c27 * /dev/<type>/<host>/<service>[/<qualifier>][/<perm>][/#option][/#/path]
30 * host: open={<hostname>}, create={share,local}
46 * create the state->mount <type>/<host>/<service>/<perm> subdirs
109 remote(register Cs_t* state, const char* host, const char* user, const char* path, int agent, register char** av, register char* fv) argument
114 *av++ = (char*)host;
149 * initiate service named by path on state->host w/state->flags
171 sfsprintf(buf, sizeof(buf), "%s\n", state->host);
186 if (streq(state->host, CS_HOST_SHARE))
189 sfsprintf(buf, sizeof(buf), "%s\n%s\n%s\n", state->host, CS_HOST_SHARE, CS_HOST_LOCAL);
297 agent(register Cs_t* state, const char* host, cons argument
610 char* host; local
[all...]
H A Dcsto.c38 udp.host = addr->addr[0];
/ast/src/lib/libast/comp/
H A Dsysloglib.h47 char host[64]; /* openlog host name */ member in struct:__anon255
H A Dsyslog.c329 if (!*log.host && gethostname(log.host, sizeof(log.host)-1))
330 strcpy(log.host, "localhost");
331 sfprintf(sp, " %s", log.host);
/ast/src/cmd/cs/
H A Dcs.c42 "[a:attribute?List the attribute \aname\a for each host. If \aname\a is \b-\b"
53 " standard output for the named \ahost\a operand or the local host if"
73 " standard input is read for host names, one per line.]"
82 "\n[ [ - ] host | path [ command ... ] ]\n"
87 " file provides information for a single host. The syntax is:"
88 " \ahost-name\a [ \aattribute\a=\avalue\a ... ]]. Attributes for the host"
91 " [+addr?The host IP address in dot notation.]"
92 " [+bias?The \bcoshell\b(1) multiplies the host load by \bbias\b"
93 " to prioritize host availability. \bbias\b > 1 makes"
94 " the host les
397 char* host; local
[all...]
/ast/src/cmd/cs/vcs_src/
H A Difs_agent.c185 char *host, *ptr, *pass; local
187 /* url format: "proto:/user:pass@host:port/remote-path" */
188 /* split proto & user:pass@host:port, and remote-path */
190 if( (host = strchr( proto, '/' )) == NULL || host[-1] != ':' ) {
193 host[-1] = '\0';
194 *host++ = '\0';
207 if( (ptr = strchr( host, '/' )) != NULL ) {
214 /* split "user:pass" & "host:port" */
215 if( (ptr = strchr( host, '
[all...]
H A Difs_agent.h70 char *host; member in struct:mount_item
H A Difs_network.c231 * make a socket connection to host:port.
235 NetConnect( srv, host, port )
237 char *host;
246 if ((srv->flags & IFS_PROXY) || !(addr = csaddr(host)) && srv->proxy) {
251 host, port, csname(0) );
H A Difs_ftp.c304 char host[ STRLEN ]; local
318 sfsprintf( host, sizeof(host), "%s.%s.%s.%s", arg[0], arg[1], arg[2], arg[3] );
320 return NetConnect( srv, host, port );
427 * create a connection to remote host,
447 if( (nFile = NetConnect( srv, mitem->host, port )) == NULL ) {
501 * get a file/directory from remote host
536 * put a file from local file system to remote host
H A Difs_gopher.c45 if( (nFile = NetConnect( srv, mitem->host, port )) == NULL ) {
54 strmatch( buf, "*\terror.host\t*" ) ) {
H A Difs_rsh.c33 * get a file/directory from remote host
49 hostid = mitem->host;
101 * put a file/directory to remote host
/ast/src/cmd/coshell/
H A Dcommand.c309 a host ... change host shell attributes\n\
310 c host ... close host shell\n\
317 l host list matching host names\n\
318 o host ... open host shell\n\
320 r host [cmd] run cmd [hostname] on host\
[all...]
H A DCOSHELL.mk24 else if I == "host=*"
25 H := $(I:/host=//)
/ast/src/cmd/mailx/
H A Dsmtp.c89 * send the message in fp to the SMTP server on host
97 sendsmtp(Sfio_t* fp, char* host, char** argv, off_t original) argument
115 sfsprintf(svc, sizeof(svc), "/dev/tcp/%s/inet.smtp", host);
227 if (sfprintf(sp, "From: <%s@%s>\n", state.var.user, host) < 0)
H A Dimap.c197 char* host; /* IMAP server host */ member in struct:__anon128
1511 if (!imap->host || !imap->user || !imap->meth)
1513 register char* host; local
1519 * get the host and authentication info from the imap file
1521 * <host> [ <user> [ <meth> [ <arg> ... ] ] ]
1526 while (host = sfgetr(fp, '\n', 1))
1528 for (; isspace(*host); host++);
1529 if (!*host || *hos
[all...]
H A Dmisc.c289 * shorten host if it is part of the local domain
293 localize(char* host) argument
299 hx = strchr(host, '.');
304 if (!strcasecmp(lp, host)) {
313 return host;
319 return host;
424 * of "host-phrase."
/ast/src/lib/libast/uwin/
H A Drcmd.c124 2, "unknown host"));
126 fprintf(stderr, "%s: unknown host\n", *ahost);
410 /* enable all host for + entry */
418 /* disable all host for - entry */
428 /* disable host from -hostname entry */
432 /* disable host from -@netgroup entry for host */
444 /* enable host from +@netgroup entry for host */
509 char *host, *use local
541 char *host, *user, *domain; local
[all...]
H A Drlib.h77 extern void ruserpass(const char *host, char **aname, char **apass);
/ast/src/lib/libtksh/tcl/
H A DtclUnixChan.c94 int port, char *host, int server,
98 char *host, int port));
1971 CreateSocket(interp, port, host, server, myaddr, myport, async)
1974 char *host; /* Name of host on which to open port.
1991 if (! CreateSocketAddress(&sockaddr, host, port)) {
2121 * This function initializes a sockaddr structure for a host and port.
2124 * 1 if the host was valid, 0 if the host could not be converted to
2134 CreateSocketAddress(sockaddrPtr, host, por
[all...]

Completed in 106 milliseconds

12