Source stringclasses 1
value | Date int64 2k 2.01k | Text stringlengths 20 19M | Token_count int64 7 8.91M |
|---|---|---|---|
freebsd_cvs_archive | 2,005 | d71 2
a72 1
int len,i;
a349 1
char retrybuf[MAXHOSTNAMELEN]; | 27 |
freebsd_cvs_archive | 2,005 | d72 1
a72 1
struct in_addr addr;
d77 4
a80 1
len = 16 + strlen(hp->h_name);
d89 1
a89 4
bcopy(hp->h_addr, &addr, sizeof(struct in_addr));
snprintf(result, sizeof(result), "%s %s", inet_ntoa(addr), hp->h_name);
d98 1
a98 1
#define MAXPACKET 1024
d119 3
a121 1
struct in_addr addr;
d391 3
a393 2
hent->h_addr = (... | 358 |
freebsd_cvs_archive | 2,003 | d349 1
a350 1
int len;
d414 2
a415 1
int type, len;
d418 2
a419 1
type = -1; len = sizeof(type);
d470 1
d472 1
a472 1
int type, len;
d475 2
a476 1
type = -1; len = sizeof(type); | 88 |
freebsd_cvs_archive | 2,005 | d72 1
a72 1
char addr[46];
d77 1
a77 4
if (inet_ntop(hp->h_addrtype, hp->h_addr, addr, sizeof(addr)) == NULL)
return(NULL);
len = strlen(addr) + 1 + strlen(hp->h_name);
d86 4
a89 1
snprintf(result, sizeof(result), "%s %s", addr, hp->h_name);
d98 1
a98 1
#define MAXPACKET (64*1024)
d119 1
a119 3
int addrtype;
i... | 636 |
freebsd_cvs_archive | 2,002 | d33 2
a34 4
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */ | 32 |
freebsd_cvs_archive | 2,002 | d179 1
a179 1
yp_error("res_mkquery failed");
d389 1
a389 18
/*
* If the lookup failed, try appending one of the domains
* from resolv.conf. If we have no domains to test, the
* query has failed.
*/
if (hent == NULL) {
if ((h_errno == TRY_AGAIN || h_errno == NO_RECOVERY)
&& q->domain && *q->domain) {... | 196 |
freebsd_cvs_archive | 2,002 | d69 2
a70 2
static char *parse(hp)
struct hostent *hp;
d127 2
a128 1
int yp_init_resolver()
d146 2
a147 1
static struct circleq_dnsentry *yp_malloc_dnsent()
d164 2
a165 3
static unsigned long yp_send_dns_query(name, type)
char *name;
int type;
d199 2
a200 3
static struct circleq_dnsentry *yp_find_dnsqent(id, type)
... | 277 |
freebsd_cvs_archive | 2,001 | d35 1
a35 1
"$FreeBSD: src/usr.sbin/ypserv/yp_dnslookup.c,v 1.19 2000/12/29 20:33:28 phk Exp $";
d106 1
a106 1
extern struct hostent *__dns_getanswer __P((char *, int, char *, int));
d205 1
a205 1
switch(type) {
d235 1
a235 1
switch(q->ypvers) {
d322 1
a322 1
while(q != NULL) {
d500 1
a500 1
if (type == SOCK_DGR... | 144 |
freebsd_cvs_archive | 2,000 | d35 1
a35 1
"$FreeBSD: src/usr.sbin/ypserv/yp_dnslookup.c,v 1.17 2000/05/23 20:41:01 jake Exp $";
d108 1
a108 1
static CIRCLEQ_HEAD(dns_qhead, circleq_dnsentry) qhead;
d122 1
a122 1
CIRCLEQ_ENTRY(circleq_dnsentry) links;
d129 1
a129 1
CIRCLEQ_INIT(&qhead);
d204 1
a204 1
for (q = qhead.cqh_first; q != (void *)&qhea... | 294 |
freebsd_cvs_archive | 2,000 | d35 1
a35 1
"$FreeBSD: src/usr.sbin/ypserv/yp_dnslookup.c,v 1.16 1999/08/28 01:21:12 peter Exp $";
d108 1
a108 1
static CIRCLEQ_HEAD(dns_qhead, struct circleq_dnsentry) qhead;
d122 1
a122 1
CIRCLEQ_ENTRY(struct circleq_dnsentry) links; | 100 |
freebsd_cvs_archive | 2,002 | d106 1
a106 1
extern struct hostent *__dns_getanswer(char *, int, char *, int);
d205 1
a205 1
switch (type) {
d235 1
a235 1
switch (q->ypvers) {
d322 1
a322 1
while (q != (void *)&qhead) {
d500 1
a500 1
if (type == SOCK_DGRAM && | 98 |
freebsd_cvs_archive | 2,012 | /*
* Copyright (c) 1995
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* noti... | 606 |
freebsd_cvs_archive | 2,013 | a0 73
/*
* Copyright (c) 1995
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 616 |
freebsd_cvs_archive | 2,002 | d34 2
a35 4
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */ | 32 |
freebsd_cvs_archive | 2,001 | d36 1
a36 1
"$FreeBSD: src/usr.sbin/ypserv/yp_error.c,v 1.7 1999/08/28 01:21:12 peter Exp $";
d44 1
d46 1
a46 1
#include <sys/types.h>
d55 1
a55 11
#if __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
static void __verr(const char *fmt, _BSD_VA_LIST_ ap) __printflike(1, 0);
static void __verr(fmt, ap)... | 211 |
freebsd_cvs_archive | 2,012 | /*
* Copyright (c) 1995
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* noti... | 993 |
freebsd_cvs_archive | 2,013 | a0 115
/*
* Copyright (c) 1995
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 1,003 |
freebsd_cvs_archive | 2,002 | d114 2
a115 2
extern ypstat yp_async_lookup_name(struct svc_req *, char *);
extern ypstat yp_async_lookup_addr(struct svc_req *, char *); | 39 |
freebsd_cvs_archive | 2,005 | d114 2
a115 2
extern ypstat yp_async_lookup_name(struct svc_req *, char *, int);
extern ypstat yp_async_lookup_addr(struct svc_req *, char *, int); | 42 |
freebsd_cvs_archive | 2,001 | d32 1
a32 1
* $FreeBSD: src/usr.sbin/ypserv/yp_extern.h,v 1.14 1999/08/28 01:21:12 peter Exp $
d74 1
a74 1
extern void yp_error __P((const char *, ...)) __printflike(1, 2);
d76 1
a76 1
extern int yp_get_record __P(( DB *, const DBT *, DBT *, int));
d78 1
a78 1
extern int yp_get_record __P(( const char *, const char *,... | 602 |
freebsd_cvs_archive | 2,002 | d32 1
a32 1
* $FreeBSD$
d74 1
a74 1
extern void yp_error(const char *, ...) __printflike(1, 2);
d76 1
a76 1
extern int yp_get_record(DB *, const DBT *, DBT *, int);
d78 1
a78 1
extern int yp_get_record(const char *, const char *, const DBT *, DBT *, int);
d80 4
a83 4
extern int yp_first_record(const DB *, DBT *, DBT *... | 479 |
freebsd_cvs_archive | 2,013 | /*
* Copyright (c) 1995
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* noti... | 4,212 |
freebsd_cvs_archive | 2,012 | d34 1
a34 1
__FBSDID("$FreeBSD: head/usr.sbin/ypserv/yp_main.c 244538 2012-12-21 15:54:13Z kevlo $");
d332 2
a333 3
memcpy(&slep->sle_ss,
(struct sockaddr *)(res->ai_addr),
sizeof(res->ai_addr)); | 88 |
freebsd_cvs_archive | 2,013 | a0 391
/*
* Copyright (c) 1995
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 2,884 |
freebsd_cvs_archive | 2,012 | a43 1
#include <sys/mman.h>
a528 3
if (madvise(NULL, 0, MADV_PROTECT) != 0)
_msgout("madvise(): %s", strerror(errno)); | 51 |
freebsd_cvs_archive | 2,009 | d306 12
a317 7
if (bind(s, res->ai_addr,
res->ai_addrlen) == -1) {
_msgout("cannot bind %s socket: %s",
nconf->nc_netid, strerror(errno));
freeaddrinfo(res0);
close(sock);
return -1; | 74 |
freebsd_cvs_archive | 2,009 | d43 4
d53 1
a57 1
#include <rpc/pmap_clnt.h> /* for pmap_unset */
a60 1
#include <sys/socket.h>
d62 1
a62 1
#include <sys/wait.h>
d64 1
d66 1
d76 3
d85 2
a86 2
extern void ypprog_1(struct svc_req *, register SVCXPRT *);
extern void ypprog_2(struct svc_req *, register SVCXPRT *);
d95 4
a98 3
struct socktype {
const cha... | 1,390 |
freebsd_cvs_archive | 2,005 | d87 10
d200 1
a200 1
fprintf(stderr, "usage: ypserv [-h] [-d] [-n] [-p path]\n");
d243 3
d247 1
a247 1
while ((ch = getopt(argc, argv, "hdnp:")) != -1) {
d258 8
d301 33 | 82 |
freebsd_cvs_archive | 2,008 | a86 10
struct socktype {
const char *st_name;
int st_type;
};
static struct socktype stlist[] = {
{ "tcp", SOCK_STREAM },
{ "udp", SOCK_DGRAM },
{ NULL, 0 }
};
d190 1
a190 1
fprintf(stderr, "usage: ypserv [-h] [-d] [-n] [-p path] [-P port]\n");
a232 3
in_port_t yp_port = 0;
char *errstr;
struct socktype *s... | 509 |
freebsd_cvs_archive | 2,005 | a108 1
extern int forked; | 10 |
freebsd_cvs_archive | 2,003 | d232 1
a232 1
int asize = sizeof (saddr); | 19 |
freebsd_cvs_archive | 2,002 | d33 2
a34 4
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */ | 32 |
freebsd_cvs_archive | 2,002 | d104 1
a104 1
yp_svc_run()
d155 2
a156 1
static void unregister()
d162 2
a163 2
static void reaper(sig)
int sig;
d190 2
a191 1
static void usage()
d228 1
a228 3
main(argc, argv)
int argc;
char *argv[]; | 84 |
freebsd_cvs_archive | 2,000 | d35 1
a35 1
"$FreeBSD: src/usr.sbin/ypserv/yp_main.c,v 1.22 2000/04/29 12:28:44 asmodai Exp $";
d79 3
a81 3
extern void ypprog_1 __P((struct svc_req *, register SVCXPRT *));
extern void ypprog_2 __P((struct svc_req *, register SVCXPRT *));
extern int _rpc_dtablesize __P((void));
d238 1
a238 1
switch(ch) { | 125 |
freebsd_cvs_archive | 2,002 | d79 3
a81 3
extern void ypprog_1(struct svc_req *, register SVCXPRT *);
extern void ypprog_2(struct svc_req *, register SVCXPRT *);
extern int _rpc_dtablesize(void);
d238 1
a238 1
switch (ch) { | 67 |
freebsd_cvs_archive | 2,012 | /*
* Copyright (c) 1995
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* noti... | 7,364 |
freebsd_cvs_archive | 2,013 | a0 982
/*
* Copyright (c) 1995
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 7,362 |
freebsd_cvs_archive | 2,003 | d169 1
a169 1
(strstr(argp->map, "hosts") && do_dns))) {
d171 2
a172 1
if (do_dns && result.stat != YP_TRUE && strstr(argp->map, "hosts")) {
d184 2
a185 1
result.stat = yp_async_lookup_name(rqstp, nbuf);
d187 8
a194 1
result.stat = yp_async_lookup_addr(rqstp, nbuf); | 108 |
freebsd_cvs_archive | 2,005 | d169 1
a169 1
((strstr(argp->map, "hosts") || strstr(argp->map, "ipnodes")) && do_dns))) {
d171 1
a171 2
if (do_dns && result.stat != YP_TRUE &&
(strstr(argp->map, "hosts") || strstr(argp->map, "ipnodes"))) {
d183 1
a183 2
result.stat = yp_async_lookup_name(rqstp, nbuf,
AF_INET);
d185 1
a185 8
... | 212 |
freebsd_cvs_archive | 2,002 | d34 2
a35 4
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */ | 32 |
freebsd_cvs_archive | 2,002 | d288 1
a288 1
if (clnt_control(clnt, CLSET_TIMEOUT, (char *)&timeout) == FALSE)
d306 1
a306 1
svc_sendreply(rqstp->rq_xprt, xdr_ypresp_xfr, (char *)&result); \
d381 1
a381 1
(char *)NULL);
d389 1
a389 1
(char *)NULL);
d553 1
a553 1
svc_sendreply(rqstp->rq_xprt, xdr_my_ypresp_all, (char *)&result);
... | 350 |
freebsd_cvs_archive | 2,002 | d59 2
a60 1
static pid_t yp_fork()
d263 3
a265 6
static void ypxfr_callback(rval,addr,transid,prognum,port)
ypxfrstat rval;
struct sockaddr_in *addr;
unsigned int transid;
unsigned int prognum;
unsigned long port;
d656 1
a656 2
static void yp_maplist_free(yp_maplist)
struct ypmaplist *yp_maplist;
d669 2
a670 2
st... | 129 |
freebsd_cvs_archive | 2,001 | d36 1
a36 1
"$FreeBSD: src/usr.sbin/ypserv/yp_server.c,v 1.32 2001/07/09 09:24:06 brian Exp $";
d175 1
a175 1
d363 1
a363 1
switch(yp_fork()) {
d525 1
a525 1
switch(yp_fork()) {
d635 1
a635 1
d663 1
a663 1
while(yp_maplist) {
d739 1
a739 1 | 130 |
freebsd_cvs_archive | 2,012 | /*
* Copyright (c) 1996
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* noti... | 634 |
freebsd_cvs_archive | 2,013 | a0 71
/*
* Copyright (c) 1996
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 644 |
freebsd_cvs_archive | 2,002 | d33 2
a34 4
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */ | 32 |
freebsd_cvs_archive | 2,012 | /*
* Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, ... | 1,258 |
freebsd_cvs_archive | 2,013 | a0 150
/*
* Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* n... | 1,268 |
freebsd_cvs_archive | 2,004 | a44 1
struct dom_binding{}; | 10 |
freebsd_cvs_archive | 2,002 | d30 2
a31 4
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */ | 32 |
freebsd_cvs_archive | 2,002 | d53 1
a53 1
usage()
d60 1
a60 3
bind_tohost(sin, dom, server)
struct sockaddr_in *sin;
char *dom, *server;
d114 1
a114 2
main(argc, argv)
char **argv; | 64 |
freebsd_cvs_archive | 2,001 | d32 1
a32 1
"$FreeBSD: src/usr.sbin/ypset/ypset.c,v 1.7 2001/03/01 06:20:51 imp Exp $";
d72 1
a72 1
if( (port=htons(getrpcport(server, YPPROG, YPPROC_NULL, IPPROTO_UDP))) == 0)
d77 1
a77 1
if( (hp = gethostbyname (server)) != NULL ) {
d82 1
a82 1
} else if( (long)(server_addr = inet_addr (server)) == -1) {
d98 1
a... | 325 |
freebsd_cvs_archive | 2,001 | d32 1
a32 1
"$FreeBSD: src/usr.sbin/ypset/ypset.c,v 1.5 1999/08/28 01:21:16 peter Exp $";
a120 2
extern char *optarg;
extern int optind; | 64 |
freebsd_cvs_archive | 2,002 | d32 1
a32 1
"$FreeBSD$";
d72 1
a72 1
if ((port = htons(getrpcport(server, YPPROG, YPPROC_NULL, IPPROTO_UDP))) == 0)
d77 1
a77 1
if ((hp = gethostbyname (server)) != NULL) {
d82 1
a82 1
} else if ((long)(server_addr = inet_addr (server)) == -1) {
d98 1
a98 1
if (client == NULL) {
d100 1
a100 1
return (YPERR_YPBI... | 291 |
freebsd_cvs_archive | 2,010 | /*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
*/
#ifndef lint
#ifndef NOID
static const char elsieid[] = "@(#)ialloc.c 8.30";
#endif /* !defined NOID */
#endif /* !defined lint */
#ifndef lint
static const char rcsid[] =
"$FreeBSD: src/usr.sbin/zic/ialloc.c,v 1.7 2... | 486 |
freebsd_cvs_archive | 2,013 | a0 91
/*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
*/
#ifndef lint
#ifndef NOID
static const char elsieid[] = "@(#)ialloc.c 8.30";
#endif /* !defined NOID */
#endif /* !defined lint */
#ifndef lint
static const char rcsid[] =
"$FreeBSD: releng/8.4/usr.sbin/zic/ial... | 494 |
freebsd_cvs_archive | 2,010 | #ifndef PRIVATE_H
#define PRIVATE_H
/*
** This file is in the public domain, so clarified as of
** 1996-06-05 by Arthur David Olson.
*/
/*
* FreeBSD modifications: separate libc's privates from zic's.
* This makes it easier when we need to update one but not the other.
* I have removed all of the ifdef spaghetti ... | 1,825 |
freebsd_cvs_archive | 2,013 | a0 272
#ifndef PRIVATE_H
#define PRIVATE_H
/*
** This file is in the public domain, so clarified as of
** 1996-06-05 by Arthur David Olson.
*/
/*
* FreeBSD modifications: separate libc's privates from zic's.
* This makes it easier when we need to update one but not the other.
* I have removed all of the ifdef spa... | 1,831 |
freebsd_cvs_archive | 2,004 | d7 1
a7 1
** 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
d33 1
a33 1
static const char privatehid[] = "@(#)private.h 7.53";
d37 2
a47 4
#ifndef HAVE_STRERROR
#define HAVE_STRERROR 1
#endif /* !defined HAVE_STRERROR */
d72 1
a72 1
#include "limits.h" /* for CHAR_BIT */
d76 1
a76 1
#if HAVE_GETTEXT -... | 539 |
freebsd_cvs_archive | 2,009 | d7 1
a7 1
** 1996-06-05 by Arthur David Olson.
d33 1
a33 1
static const char privatehid[] = "@(#)private.h 8.6";
a36 2
#define GRANDPARENTED "Local time zone must be set--see zic manual page"
d46 4
d74 1
a74 1
#include "limits.h" /* for CHAR_BIT et al. */
d78 1
a78 1
#if HAVE_GETTEXT
d80 1
a80 1
#endif /* HAVE_GETTEXT... | 1,132 |
freebsd_cvs_archive | 2,004 | d24 1
a24 1
static char privatehid[] = "@(#)private.h 7.53";
a40 4
#ifndef HAVE_INCOMPATIBLE_CTIME_R
#define HAVE_INCOMPATIBLE_CTIME_R 0
#endif /* !defined INCOMPATIBLE_CTIME_R */
d46 1
a46 1
#define HAVE_STRERROR 1
a52 8
#ifndef HAVE_SYS_STAT_H
#define HAVE_SYS_STAT_H 1
#endif /* !defined HAVE_SYS_STAT_H */
#ifnde... | 382 |
freebsd_cvs_archive | 2,010 | /*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
*/
#ifndef lint
#ifndef NOID
static const char elsieid[] = "@(#)scheck.c 8.19";
#endif /* !defined lint */
#endif /* !defined NOID */
#ifndef lint
static const char rcsid[] =
"$FreeBSD: src/usr.sbin/zic/scheck.c,v 1.8 2... | 460 |
freebsd_cvs_archive | 2,013 | a0 68
/*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
*/
#ifndef lint
#ifndef NOID
static const char elsieid[] = "@(#)scheck.c 8.19";
#endif /* !defined lint */
#endif /* !defined NOID */
#ifndef lint
static const char rcsid[] =
"$FreeBSD: releng/8.4/usr.sbin/zic/sch... | 468 |
freebsd_cvs_archive | 2,010 | /*
** This file is in the public domain, so clarified as of
** 2009-05-17 by Arthur David Olson.
*/
#ifndef lint
static const char rcsid[] =
"$FreeBSD: src/usr.sbin/zic/zdump.c,v 1.13 2009/11/02 23:02:11 edwin Exp $";
static char elsieid[] = "@(#)zdump.c 8.10";
#endif /* not lint */
/*
** This code has been made in... | 5,242 |
freebsd_cvs_archive | 2,013 | a0 675
/*
** This file is in the public domain, so clarified as of
** 2009-05-17 by Arthur David Olson.
*/
#ifndef lint
static const char rcsid[] =
"$FreeBSD: releng/8.4/usr.sbin/zic/zdump.c 199077 2009-11-09 11:32:18Z edwin $";
static char elsieid[] = "@(#)zdump.c 8.10";
#endif /* not lint */
/*
** This code has b... | 5,250 |
freebsd_cvs_archive | 2,009 | d9 1
a9 1
static char elsieid[] = "@(#)zdump.c 8.9";
d155 1
a155 1
static void usage(const char *progname, FILE *stream, int status);
d276 1
a276 1
usage(progname, stdout, EXIT_SUCCESS);
d286 1
a286 1
usage(progname, stderr, EXIT_FAILURE);
d471 1
a471 1
usage(const char *progname, FILE *stream, int status) | 118 |
freebsd_cvs_archive | 2,009 | d9 1
a9 1
static char elsieid[] = "@(#)zdump.c 8.10";
d155 1
a155 1
static void usage(FILE *stream, int status);
d276 1
a276 1
usage(stdout, EXIT_SUCCESS);
d286 1
a286 1
usage(stderr, EXIT_FAILURE);
d471 1
a471 1
usage(FILE *stream, int status) | 100 |
freebsd_cvs_archive | 2,008 | a0 2
static const char elsieid[] = "@(#)zdump.c 7.31";
d4 1
d20 13
d83 1
a83 1
#define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
d86 15
a100 1
#if HAVE_GETTEXT - 0
d103 1
a103 1
#endif /* HAVE_GETTEXT - 0 */
d108 1
a108 2
#endif /* defined lint */
#ifndef lint
d118 1
a118 2
#endif /* defined... | 1,523 |
freebsd_cvs_archive | 2,009 | d1 1
a1 4
/*
** This file is in the public domain, so clarified as of
** 2009-05-17 by Arthur David Olson.
*/
a5 1
static char elsieid[] = "@(#)zdump.c 8.9";
a20 13
#include <float.h> /* for FLT_MAX and DBL_MAX */
#include <ctype.h> /* for isalpha et al. */
#ifndef isascii
#define isascii(x) 1
#endif /* !defined isasci... | 4,025 |
freebsd_cvs_archive | 2,009 | d9 1
a9 1
static char elsieid[] = "@(#)zdump.c 8.10";
d155 1
a155 1
static void usage(FILE *stream, int status);
d276 1
a276 1
usage(stdout, EXIT_SUCCESS);
d286 1
a286 1
usage(stderr, EXIT_FAILURE);
d471 1
a471 1
usage(FILE *stream, int status) | 100 |
freebsd_cvs_archive | 2,000 | d1 1
a1 5
#ifndef lint
#ifndef NOID
static const char elsieid[] = "@(#)zdump.c 7.28";
#endif /* !defined NOID */
#endif /* !defined lint */
d5 1
a5 1
"$FreeBSD: src/usr.sbin/zic/zdump.c,v 1.7 1999/08/28 01:21:19 peter Exp $";
d163 4
d276 2
a277 1
fprintf(stderr, _("usage: zdump [-v] [-c cutoff] zonename ...\n")); | 131 |
freebsd_cvs_archive | 2,004 | d1 5
a5 1
static char elsieid[] = "@(#)zdump.c 7.31";
a164 5
for (i = 1; i < argc; ++i)
if (strcmp(argv[i], "--version") == 0) {
(void) printf("%s\n", elsieid);
(void) exit(EXIT_SUCCESS);
}
d174 1
a174 1
_("%s: usage is %s [ --version ] [ -v ] [ -c cutoff ] zonename ...\n"),
d266 3
a268 2
(void) fprintf(st... | 159 |
freebsd_cvs_archive | 2,010 | /*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
*/
static const char elsieid[] = "@(#)zic.c 8.20";
#ifndef lint
static const char rcsid[] =
"$FreeBSD: src/usr.sbin/zic/zic.c,v 1.20 2009/08/27 12:36:15 edwin Exp $";
#endif /* not lint */
#include "private.h"
#include... | 21,499 |
freebsd_cvs_archive | 2,013 | a0 2723
/*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
*/
static const char elsieid[] = "@(#)zic.c 8.19";
#ifndef lint
static const char rcsid[] =
"$FreeBSD: releng/8.4/usr.sbin/zic/zic.c 192625 2009-05-23 06:31:50Z edwin $";
#endif /* not lint */
#include "private... | 21,498 |
freebsd_cvs_archive | 2,007 | d1 6
a6 1
static const char elsieid[] = "@(#)zic.c 7.116";
d21 8
d33 1
a33 1
** only if isascii(C) || C == EOF. Modern hosts obey the C Standard,
d44 5
d57 2
d75 1
a75 1
time_t r_temp; /* used in outzone */
d101 1
a101 1
time_t z_untiltime;
d104 41
a144 38
static void addtt P((time_t starttime, int type));
static... | 4,600 |
freebsd_cvs_archive | 2,007 | d1993 1
a1993 4
else {
error(_("odd number of quotation marks"));
(void) exit(EXIT_FAILURE);
} | 35 |
freebsd_cvs_archive | 2,007 | d1993 1
a1993 4
else {
error(_("odd number of quotation marks"));
(void) exit(EXIT_FAILURE);
} | 35 |
freebsd_cvs_archive | 2,007 | d1993 1
a1993 4
else {
error(_("odd number of quotation marks"));
exit(EXIT_FAILURE);
} | 32 |
freebsd_cvs_archive | 2,009 | d1 1
a1 6
/*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
*/
static const char elsieid[] = "@(#)zic.c 8.20";
a15 8
#define ZIC_VERSION '2'
typedef int_fast64_t zic_t;
#ifndef ZIC_MAX_ABBR_LEN_WO_WARN
#define ZIC_MAX_ABBR_LEN_WO_WARN 6
#endif /* !defined ZIC_MAX_ABBR_L... | 8,547 |
freebsd_cvs_archive | 2,003 | d1 1
a1 5
#ifndef lint
#ifndef NOID
static const char elsieid[] = "@(#)zic.c 7.96";
#endif /* !defined NOID */
#endif /* !defined lint */
d16 2
d438 1
a438 1
_("usage: zic [-s] [-v] [-l localtime] [-p posixrules] [-d directory]"),
d474 4
d573 2
a574 1
for (i = 0; i < nlinks; ++i)
d576 3
a578 1
if (lcltime != NULL)
d5... | 585 |
freebsd_cvs_archive | 2,001 | d9 1
a9 1
"$FreeBSD: src/usr.sbin/zic/zic.c,v 1.12 2000/11/28 18:18:56 charnier Exp $";
a91 1
static int atcomp P((const void * avp, const void * bvp));
a131 1
static void warning P((const char * const string));
d1363 2
a1364 2
const void * avp;
const void * bvp;
d1366 1
a1366 2
if (((const struct attype *) avp)->at... | 185 |
freebsd_cvs_archive | 2,000 | d9 1
a9 1
"$FreeBSD: src/usr.sbin/zic/zic.c,v 1.11 1999/08/28 01:21:20 peter Exp $";
d92 1
d133 1
d1365 2
a1366 2
void * avp;
void * bvp;
d1368 2
a1369 1
if (((struct attype *) avp)->at < ((struct attype *) bvp)->at)
d1371 2
a1372 1
else if (((struct attype *) avp)->at > ((struct attype *) bvp)->at) | 146 |
freebsd_cvs_archive | 2,004 | d1 5
a5 1
static char elsieid[] = "@(#)zic.c 7.116";
d10 3
a12 9
#if HAVE_SYS_STAT_H
#include "sys/stat.h"
#endif
#ifdef S_IRUSR
#define MKDIR_UMASK (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)
#else
#define MKDIR_UMASK 0755
#endif
d443 1
a443 1
(void) fprintf(stderr, _("%s: usage is %s [ --version ] [ -... | 914 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.