Source stringclasses 1
value | Date int64 2k 2.01k | Text stringlengths 20 19M | Token_count int64 7 8.91M |
|---|---|---|---|
freebsd_cvs_archive | 2,002 | d44 1
a44 1
extern int fflag, iflag, pflag; | 21 |
freebsd_cvs_archive | 2,002 | d38 3
a40 3
char *p_end; /* pointer to NULL at end of path */
char *target_end; /* pointer to end of target base */
char p_path[PATH_MAX]; /* pointer to the start of a path */
d44 1
a44 1
extern int iflag, pflag, fflag; | 78 |
freebsd_cvs_archive | 2,002 | d38 3
a40 3
char *p_end; /* pointer to NULL at end of path */
char *target_end; /* pointer to end of target base */
char p_path[PATH_MAX]; /* pointer to the start of a path */
d44 1
a44 3
extern int iflag, pflag, fflag, vflag;
#include <sys/cdefs.h> | 89 |
freebsd_cvs_archive | 2,001 | d34 1
a34 1
* $FreeBSD: src/bin/cp/extern.h,v 1.10 2001/05/16 19:10:40 imp Exp $
d49 6
a54 6
int copy_fifo __P((struct stat *, int));
int copy_file __P((FTSENT *, int));
int copy_link __P((FTSENT *, int));
int copy_special __P((struct stat *, int));
int setfile __P((struct stat *, int));
void usage __P((void)); | 115 |
freebsd_cvs_archive | 2,001 | d34 1
a34 1
* $FreeBSD: src/bin/cp/extern.h,v 1.9 1999/08/27 23:13:39 peter Exp $
d44 1
a44 2
extern uid_t myuid;
extern int iflag, pflag, fflag, vflag, myumask; | 77 |
freebsd_cvs_archive | 2,001 | d34 1
a34 1
* $FreeBSD: src/bin/cp/extern.h,v 1.9 1999/08/27 23:13:39 peter Exp $
d44 2
a45 1
extern int iflag, pflag, fflag, vflag; | 67 |
freebsd_cvs_archive | 2,002 | d34 1
a34 1
* $FreeBSD$
d44 1
a44 1
extern int fflag, iflag, nflag, pflag, vflag; | 42 |
freebsd_cvs_archive | 2,013 | /*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. 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 abov... | 4,621 |
freebsd_cvs_archive | 2,013 | a0 525
/*-
* Copyright (c) 1991, 1993, 1994
* The Regents of the University of California. 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 t... | 4,534 |
freebsd_cvs_archive | 2,012 | d36 1
a36 1
__FBSDID("$FreeBSD: head/bin/cp/utils.c 205793 2010-03-28 13:16:08Z ed $");
d107 1
a107 1
return (0); | 59 |
freebsd_cvs_archive | 2,009 | a379 1
struct acl *aclp;
d381 2
d384 20
a403 2
if (fpathconf(source_fd, _PC_ACL_EXTENDED) != 1 ||
fpathconf(dest_fd, _PC_ACL_EXTENDED) != 1)
d405 2
a406 1
acl = acl_get_fd(source_fd);
d411 7
a417 2
aclp = &acl->ats_acl;
if (aclp->acl_cnt == 3)
d419 2
a420 1
if (acl_set_fd(dest_fd, acl) < 0) {
d422 1
d425 1
d... | 462 |
freebsd_cvs_archive | 2,010 | d380 1
a381 2
acl_type_t acl_type;
int acl_supported = 0, ret, trivial;
d383 2
a384 20
ret = fpathconf(source_fd, _PC_ACL_NFS4);
if (ret > 0 ) {
acl_supported = 1;
acl_type = ACL_TYPE_NFS4;
} else if (ret < 0 && errno != EINVAL) {
warn("fpathconf(..., _PC_ACL_NFS4) failed for %s", to.p_path);
return (1);
... | 979 |
freebsd_cvs_archive | 2,008 | d60 11
d74 2
a75 1
static char buf[MAXBSIZE];
d189 15
d205 1
a205 1
while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) { | 58 |
freebsd_cvs_archive | 2,008 | d140 2
d145 26
a170 3
fs->st_size <= 8 * 1048576) {
if ((p = mmap(NULL, (size_t)fs->st_size, PROT_READ,
MAP_SHARED, from_fd, (off_t)0)) == MAP_FAILED) {
a172 27
} else {
wtotal = 0;
for (bufp = p, wresid = fs->st_size; ;
bufp += wcount, wresid -= (size_t)wcount) {
wcount = write(... | 323 |
freebsd_cvs_archive | 2,009 | a139 2
* Some filesystems, such as smbnetfs, don't support mmap,
* so this is a best-effort attempt.
d143 3
a145 26
fs->st_size <= 8 * 1024 * 1024 &&
(p = mmap(NULL, (size_t)fs->st_size, PROT_READ,
MAP_SHARED, from_fd, (off_t)0)) != MAP_FAILED) {
wtotal = 0;
for (bufp = p, wresid = fs-... | 324 |
freebsd_cvs_archive | 2,006 | a64 1
int ch, checkch, from_fd = 0, rcount, rval, to_fd = 0;
d68 1
d159 3
a161 4
"%s -> %s %3d%%\n",
entp->fts_path, to.p_path,
cp_pct(wtotal, fs->st_size));
d190 3
a192 4
"%s -> %s %3d%%\n",
entp->fts_path, to.p_path,
cp_pct(wtotal, fs->st_size)); | 125 |
freebsd_cvs_archive | 2,005 | d64 1
a64 1
int ch, checkch, from_fd, rcount, rval, to_fd;
d112 14
a125 9
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
fs->st_mode & ~(S_ISUID | S_ISGID));
} else
/* overwrite existing destination file name */
to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
} else
to_fd = open(to.... | 975 |
freebsd_cvs_archive | 2,005 | a37 2
#include <sys/types.h>
#include <sys/acl.h>
a206 2
if (pflag && preserve_fd_acls(from_fd, to_fd) != 0)
rval = 1;
a328 76
int
preserve_fd_acls(int source_fd, int dest_fd)
{
struct acl *aclp;
acl_t acl;
if (fpathconf(source_fd, _PC_ACL_EXTENDED) != 1 ||
fpathconf(dest_fd, _PC_ACL_EXTENDED) != 1)
retur... | 666 |
freebsd_cvs_archive | 2,006 | d64 1
a64 1
int ch, checkch, from_fd = 0, rcount, rval, to_fd = 0;
d112 9
a120 14
if (!lflag)
to_fd = open(to.p_path, O_WRONLY | O_TRUNC | O_CREAT,
fs->st_mode & ~(S_ISUID | S_ISGID));
} else {
if (!lflag)
/* overwrite existing destination file name */
to_fd = open(to.p_path, O_WRO... | 1,080 |
freebsd_cvs_archive | 2,006 | d57 1
a57 2
#define cp_pct(x, y) ((y == 0) ? 0 : (int)(100.0 * (x) / (y)))
d64 1
d67 1
a67 2
off_t wtotal;
int ch, checkch, from_fd = 0, rcount, rval, to_fd = 0;
a151 2
if (wcount <= 0)
break;
d156 4
a159 3
"%s -> %s %3d%%\n",
entp->fts_path, to.p_path,
cp_pct(wtotal, fs->st_... | 258 |
freebsd_cvs_archive | 2,003 | d236 1
a236 1
return (0);
d250 1
a250 1
return (pflag ? setfile(from_stat, 0) : 0);
d264 1
a264 1
return (pflag ? setfile(from_stat, 0) : 0);
d272 1
a272 2
int rval;
int gotstat;
d275 2
d282 2
a283 2
if (utimes(to.p_path, tv)) {
warn("utimes: %s", to.p_path);
d286 2
a287 1
if (fd ? fstat(fd, &ts) : stat(to.p_p... | 279 |
freebsd_cvs_archive | 2,002 | d90 5
a94 1
if (iflag) {
d307 2
a308 2
"usage: cp [-R [-H | -L | -P]] [-f | -i] [-pv] src target",
" cp [-R [-H | -L | -P]] [-f | -i] [-pv] src1 ... srcN directory"); | 84 |
freebsd_cvs_archive | 2,002 | d65 3
a67 1
int ch, checkch, from_fd, rcount, rval, to_fd, wcount, wresid;
d137 1
a137 1
bufp += wcount, wresid -= wcount) { | 59 |
freebsd_cvs_archive | 2,002 | a43 1
#include <sys/time.h>
d117 1
a117 1
return (1);;
d193 1
a193 1
char link[PATH_MAX];
d195 1
a195 1
if ((len = readlink(p->fts_path, link, sizeof(link) - 1)) == -1) {
d199 1
a199 1
link[len] = '\0';
d204 2
a205 2
if (symlink(link, to.p_path)) {
warn("symlink: %s", link);
a237 3
#define RETAINBITS \
(S_ISU... | 168 |
freebsd_cvs_archive | 2,001 | d62 1
a62 3
copy_file(entp, dne)
FTSENT *entp;
int dne;
d191 1
a191 3
copy_link(p, exists)
FTSENT *p;
int exists;
d213 1
a213 3
copy_fifo(from_stat, exists)
struct stat *from_stat;
int exists;
d227 1
a227 3
copy_special(from_stat, exists)
struct stat *from_stat;
int exists;
d244 1
a244 3
setfile(fs, fd)
regist... | 143 |
freebsd_cvs_archive | 2,001 | d39 1
a39 1
"$FreeBSD: src/bin/cp/utils.c,v 1.28 2000/10/10 01:48:18 wollman Exp $";
d66 1
a66 1
struct stat to_stat, *fs;
a182 16
/*
* If the source was setuid or setgid, lose the bits unless the
* copy is owned by the same user and group.
*/
#define RETAINBITS \
(S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_I... | 258 |
freebsd_cvs_archive | 2,000 | d39 1
a39 1
"$FreeBSD: src/bin/cp/utils.c,v 1.27 2000/01/23 03:04:49 mharo Exp $";
a43 1
#include <sys/time.h> | 56 |
freebsd_cvs_archive | 2,001 | d39 1
a39 1
"$FreeBSD: src/bin/cp/utils.c,v 1.27.2.1 2000/10/27 16:24:22 asmodai Exp $";
d65 1
a65 1
struct stat *fs;
d182 16
a261 2
#define RETAINBITS \
(S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) | 110 |
freebsd_cvs_archive | 2,001 | d39 1
a39 1
"$FreeBSD: src/bin/cp/utils.c,v 1.27.2.2 2001/07/12 11:58:02 bde Exp $";
a52 1
#include <limits.h>
d196 1
a196 1
char link[PATH_MAX]; | 74 |
freebsd_cvs_archive | 2,001 | d39 1
a39 1
"$FreeBSD: src/bin/cp/utils.c,v 1.27.2.3 2001/08/01 01:35:51 obrien Exp $";
a54 1
#include <stdlib.h> | 58 |
freebsd_cvs_archive | 2,002 | d91 1
a91 5
if (nflag) {
if (vflag)
printf("%s not overwritten\n", to.p_path);
return (0);
} else if (iflag) {
d315 2
a316 2
"usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target",
" cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory"); | 123 |
freebsd_cvs_archive | 2,004 | d218 1
a218 1
return (pflag ? setfile(p->fts_statp, -1) : 0);
d234 1
a234 1
return (pflag ? setfile(from_stat, -1) : 0);
d250 1
a250 1
return (pflag ? setfile(from_stat, -1) : 0);
d263 2
a264 1
int rval, gotstat, islink, fdval;
a266 2
fdval = fd != -1;
islink = !fdval && S_ISLNK(fs->st_mode);
d272 2
a273 2
if (i... | 418 |
freebsd_cvs_archive | 2,012 | /* $FreeBSD: head/bin/csh/config.h 231990 2012-02-22 03:36:15Z mp $ */
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Define to the type of elements in the array set by `getgroups'. Usually
this is either `int' or `gid_t'. */
#define GET... | 2,394 |
freebsd_cvs_archive | 2,013 | a0 277
/* $FreeBSD: releng/8.4/bin/csh/config.h 232635 2012-03-07 01:31:29Z mp $ */
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Define to the type of elements in the array set by `getgroups'. Usually
this is either `int' or `gid_t'. *... | 2,404 |
freebsd_cvs_archive | 2,006 | d15 14
d33 4
d44 3
d59 1
a59 1
/* Define to 1 if you have the iconv () interface */
d68 3
d107 4
d176 6
a196 6
/* Define to 1 if the C compiler supports function prototypes. */
#define PROTOTYPES 1
/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void
a208 3
/* Define like PROT... | 136 |
freebsd_cvs_archive | 2,005 | d1 1
d3 97
a99 7
/*
* config.h -- configure various defines for tcsh
*
* All source files should #include this FIRST.
*
* Edit this to match your system type.
*/
d101 91
a191 1
/* $FreeBSD$ */
d193 2
a194 110
#ifndef _h_config
#define _h_config
/****************** System dependant compilation flags **************... | 1,246 |
freebsd_cvs_archive | 2,012 | /* $FreeBSD: head/bin/csh/config_p.h 231990 2012-02-22 03:36:15Z mp $ */
/*
* config.h -- configure various defines for tcsh
*
* All source files should #include this FIRST.
*
* Edit this to match your system type.
*/
#ifndef _h_config
#define _h_config
/****************** System dependant compilation flags ****... | 858 |
freebsd_cvs_archive | 2,013 | a0 110
/* $FreeBSD: releng/8.4/bin/csh/config_p.h 232635 2012-03-07 01:31:29Z mp $ */
/*
* config.h -- configure various defines for tcsh
*
* All source files should #include this FIRST.
*
* Edit this to match your system type.
*/
#ifndef _h_config
#define _h_config
/****************** System dependant compilati... | 855 |
freebsd_cvs_archive | 2,005 | d1 1
a1 1
/* config.h. Generated by configure. */
a9 2
/* $FreeBSD$ */
d27 1
a27 1
/* #undef POSIXSIGS */
d30 1
a30 1
* VFORK This machine has a vfork().
d33 2
a34 2
* If you think you still need it, but you don't have vfork,
* define this anyway and then do #define vfork fork.
d37 1
a37 1
* and on the iris4d... | 474 |
freebsd_cvs_archive | 2,012 | /*-
* Copyright (c) 2006 Hajimu UMEMOTO <ume@FreeBSD.org>
* 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,... | 694 |
freebsd_cvs_archive | 2,013 | a0 80
/*-
* Copyright (c) 2006 Hajimu UMEMOTO <ume@FreeBSD.org>
* 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... | 704 |
freebsd_cvs_archive | 2,009 | a63 2
if (iconv_open == NULL)
goto dlfunc_err;
a64 2
if (dl_iconv == NULL)
goto dlfunc_err;
a66 2
if (dl_iconv_close == NULL)
goto dlfunc_err;
a68 5
dlfunc_err:
dlclose(iconvlib);
iconvlib = NULL;
return (iconv_t)-1; | 91 |
freebsd_cvs_archive | 2,009 | a63 2
if (iconv_open == NULL)
goto dlfunc_err;
a64 2
if (dl_iconv == NULL)
goto dlfunc_err;
a66 2
if (dl_iconv_close == NULL)
goto dlfunc_err;
a68 5
dlfunc_err:
dlclose(iconvlib);
iconvlib = NULL;
return (iconv_t)-1; | 91 |
freebsd_cvs_archive | 2,009 | a63 2
if (iconv_open == NULL)
goto dlfunc_err;
a64 2
if (dl_iconv == NULL)
goto dlfunc_err;
a66 2
if (dl_iconv_close == NULL)
goto dlfunc_err;
a68 5
dlfunc_err:
dlclose(iconvlib);
iconvlib = NULL;
return (iconv_t)-1; | 91 |
freebsd_cvs_archive | 2,012 | /*-
* Copyright (c) 2006 Hajimu UMEMOTO <ume@FreeBSD.org>
* 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,... | 449 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1983, 1991, 1993
* The Regents of the University of California. 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 abov... | 953 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 5,099 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 1,419 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. 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 copy... | 3,238 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 10,321 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 4,914 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 6,841 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 517 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 7,014 |
freebsd_cvs_archive | 2,000 | d39 1
a39 1
"$FreeBSD: src/bin/csh/dol.c,v 1.8.2.1 1999/08/29 14:11:42 peter Exp $";
a42 1
#include <sys/time.h>
a852 1
struct timeval tv;
d854 4
a857 3
again:
tmp = short2str(shtemp);
if (open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0600) < 0) {
d859 1
a859 8
if (errno == EEXIST) {
if (unlink(tmp) == -... | 209 |
freebsd_cvs_archive | 2,000 | d33 1
a33 1
* $FreeBSD: src/bin/csh/dol.c,v 1.3.6.2 1999/09/05 10:59:32 peter Exp $
a39 1
#include <sys/times.h>
a849 1
struct timeval tv;
d851 4
a854 3
again:
tmp = short2str(shtemp);
if (open(tmp, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0600) < 0) {
d856 1
a856 8
if (errno == EEXIST) {
if (unlink(tmp) == -1... | 209 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 3,023 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 5,745 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 4,690 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. 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 copy... | 2,937 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 4,978 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 10,184 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 6,608 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 1,383 |
freebsd_cvs_archive | 2,011 | /*-
* Copyright (c) 2006 Hajimu UMEMOTO <ume@FreeBSD.org>
* 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,... | 450 |
freebsd_cvs_archive | 2,013 | a0 44
/*-
* Copyright (c) 2006 Hajimu UMEMOTO <ume@FreeBSD.org>
* 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... | 458 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 1,780 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 10,663 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 2,267 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 4,773 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 10,187 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 1,221 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 5,531 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 5,670 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. 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 copy... | 2,892 |
freebsd_cvs_archive | 2,000 | /* $FreeBSD: src/bin/csh/tc.defs.c,v 1.1 2000/04/18 07:31:36 obrien Exp $ */
/* Do not edit this file, make creates it */
/* $Header: /src/pub/tcsh/host.defs,v 1.25 1999/04/20 07:48:41 christos Exp $ */
/*
* host.defs: Hosttype/Machtype etc.
*/
/*-
* Copyright (c) 1980, 1991 The Regents of the University of Califor... | 16,501 |
freebsd_cvs_archive | 2,000 | /*-
* Copyright (c) 1980, 1991, 1993
* The Regents of the University of California. 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 abov... | 2,901 |
freebsd_cvs_archive | 2,012 | /*-
* Copyright (c) 1985, 1987, 1988, 1993
* The Regents of the University of California. 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 th... | 2,460 |
freebsd_cvs_archive | 2,013 | a0 304
/*-
* Copyright (c) 1985, 1987, 1988, 1993
* The Regents of the University of California. 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 re... | 2,418 |
freebsd_cvs_archive | 2,010 | d140 1
a140 1
if (set_timezone && settimeofday((struct timeval *)NULL, &tz))
d276 1
a276 1
gettimeofday(&utx.ut_tv, NULL);
d280 1
a280 1
if (settimeofday(&tv, (struct timezone *)NULL))
d283 1
a283 1
gettimeofday(&utx.ut_tv, NULL); | 92 |
freebsd_cvs_archive | 2,014 | d43 1
a43 1
__FBSDID("$FreeBSD: stable/9/bin/date/date.c 265266 2014-05-03 14:04:04Z dumbbell $");
a71 2
static const char *rfc2822_format = "%a, %d %b %Y %T %z";
d77 1
a77 1
int jflag, nflag, Rflag;
d92 1
a92 1
jflag = nflag = Rflag = 0;
d94 1
a94 1
while ((ch = getopt(argc, argv, "d:f:jnRr:t:uv:")) != -1)
a110 3
... | 283 |
freebsd_cvs_archive | 2,008 | a50 1
#include <libutil.h>
d55 2
d185 1
d276 3
a278 1
logwtmp("|", "date", "");
d283 3
a285 1
logwtmp("{", "date", ""); | 61 |
freebsd_cvs_archive | 2,003 | d237 1
a237 1
else { /* hack for 2000 ;-} */
d239 1
a239 1
if (lt->tm_year < 69) | 45 |
freebsd_cvs_archive | 2,002 | d53 2
a59 1
#include <locale.h>
a74 2
int logwtmp(char *, char *, char *);
d81 2
a82 1
char *format, buf[1024]; | 49 |
freebsd_cvs_archive | 2,001 | d70 3
a72 3
static void setthetime __P((const char *, const char *, int, int));
static void badformat __P((void));
static void usage __P((void));
d74 1
a74 1
int logwtmp __P((char *, char *, char *));
d77 1
a77 3
main(argc, argv)
int argc;
char **argv;
d183 1
a183 4
setthetime(fmt, p, jflag, nflag)
const char *fmt;
... | 172 |
freebsd_cvs_archive | 2,000 | d45 1
a45 1
"$FreeBSD: src/bin/date/date.c,v 1.33 2000/05/19 18:02:25 dbaker Exp $";
a80 2
extern int optind;
extern char *optarg; | 59 |
freebsd_cvs_archive | 2,012 | /*-
* Copyright (c) 1993
* The Regents of the University of California. 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
... | 391 |
freebsd_cvs_archive | 2,012 | /*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. 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 copy... | 1,521 |
freebsd_cvs_archive | 2,013 | a0 183
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. 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 abo... | 1,533 |
freebsd_cvs_archive | 2,006 | a57 2
extern int retval; | 9 |
freebsd_cvs_archive | 2,002 | d34 1
a35 1
#if 0
d37 1
d39 1
a39 1
#endif /* not lint */
d85 1
a85 1
warnx("udp/timed: unknown service"); | 56 |
freebsd_cvs_archive | 2,002 | d79 2
a80 1
int s, length, port, timed_ack, found, lerr; | 25 |
freebsd_cvs_archive | 2,002 | d76 1
a76 1
struct sockaddr_in sin, dest, from;
d79 1
a79 1
int s, length, port, timed_ack, found, err;
d97 2
a98 2
memset(&sin, 0, sizeof(sin));
sin.sin_family = AF_INET;
d100 2
a101 2
sin.sin_port = htons((u_short)port);
if (bind(s, (struct sockaddr *)&sin, sizeof(sin)) >= 0)
d145 1
a145 1
length = sizeof(er... | 181 |
freebsd_cvs_archive | 2,012 | /*-
* Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
* 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... | 3,564 |
freebsd_cvs_archive | 2,013 | a0 506
/*-
* Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
* 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
* ... | 3,574 |
freebsd_cvs_archive | 2,002 | d27 2
a28 4
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
a29 1
#include <sys/cdefs.h> | 44 |
freebsd_cvs_archive | 2,000 | d29 1
a29 1
"$FreeBSD: src/bin/date/vary.c,v 1.12 2000/05/23 23:58:18 brian Exp $";
d32 1
d41 1
a41 1
char *str;
d207 1
a207 1
int mdays;
d212 3
a214 3
mdays = daysinmonth(t);
if (val > mdays - t->tm_mday) {
val -= mdays - t->tm_mday + 1;
d417 1
a417 1
int len; | 142 |
freebsd_cvs_archive | 2,000 | d29 1
a29 1
"$FreeBSD: src/bin/date/vary.c,v 1.11 2000/04/12 21:28:51 brian Exp $";
d32 1
d97 2
a98 1
*nextp = (struct vary *)malloc(sizeof(struct vary)); | 73 |
freebsd_cvs_archive | 2,000 | d29 1
a29 1
"$FreeBSD: src/bin/date/vary.c,v 1.10 2000/04/12 13:35:17 brian Exp $";
d260 1
a260 1
return !val || adjday(t, '+', val, 0);
d269 1
a269 1
return !val || adjday(t, '-', val, 0);
d272 1
a272 1
return adjday(t, '-', t->tm_wday - val, 0);
d276 1
a276 1
return adjday(t, '+', val - ... | 152 |
freebsd_cvs_archive | 2,000 | d29 1
a29 1
"$FreeBSD: src/bin/date/vary.c,v 1.8 2000/02/18 23:41:45 alfred Exp $";
d56 1
a56 1
static int adjhour(struct tm *, char, int);
d61 1
a61 1
int ret;
d63 3
a65 12
/*
* Don't let mktime have a specific tm_isdst value. If we do,
* it gets confused when we ``vary'' in and out of Summer time
*/
... | 1,243 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.