/freebsd-9.3-release/ |
H A D | Makefile | 92 TGTS= all all-man buildenv buildenvvars buildkernel buildworld \\ macro 109 BITGTS= files includes macro 110 BITGTS:=${BITGTS} ${BITGTS:S/^/build/} ${BITGTS:S/^/install/} macro 121 PATH= /sbin:/bin:/usr/sbin:/usr/bin macro 122 MAKEOBJDIRPREFIX?= /usr/obj macro 130 MAKEPATH= ${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE} macro 131 BINMAKE= \\ macro 137 _MAKE= PATH=${PATH} MAKEFLAGS="${MAKEFLAGS:N-J:N1*,1*}" ${BINMAKE} -f Makefile.inc1 TARGET=${_TARGET} TARGET_ARCH=${_TARGET_ARCH} macro 139 _MAKE= PATH=${PATH} ${BINMAKE} -f Makefile.inc1 TARGET=${_TARGET} TARGET_ARCH=${_TARGET_ARCH} macro 144 _TARGET_ARCH= ${TARGET:S/pc98/i386/:S/mips/mipsel/} macro 147 _TARGET= ${TARGET_ARCH:C/mips.*e[lb]/mips/:C/armeb/arm/} macro 154 _TARGET_ARCH=mipseb macro 156 _TARGET_ARCH=mipsel macro 162 _TARGET_ARCH=armeb macro 165 _TARGET=${TARGET} macro 168 _TARGET_ARCH=${TARGET_ARCH} macro 171 _TARGET?= ${MACHINE} macro 172 _TARGET_ARCH?= ${MACHINE_ARCH} macro 202 BW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} macro 314 MMAKEENV= MAKEOBJDIRPREFIX=${MAKEPATH} \\ macro 317 MMAKE= ${MMAKEENV} ${MAKE} \\ macro 347 TARGETS?=amd64 arm i386 ia64 mips pc98 powerpc sparc64 macro 348 TARGET_ARCHES_arm?= arm armeb macro 349 TARGET_ARCHES_mips?= mipsel mipseb mips64el mips64eb mipsn32eb macro 350 TARGET_ARCHES_powerpc?= powerpc powerpc64 macro 351 TARGET_ARCHES_pc98?= i386 macro 357 MAKE_JUST_WORLDS= YES macro 359 UNIVERSE_TARGET?= buildworld macro 361 KERNSRCDIR?= ${.CURDIR}/sys macro 372 FAILFILE=${.CURDIR}/_.tinderbox.failed macro 373 MAKEFAIL=tee -a ${FAILFILE} macro 375 MAKEFAIL=cat macro [all...] |
/freebsd-9.3-release/bin/ |
H A D | Makefile | 6 SUBDIR= cat \\ macro 56 SUBDIR:= ${SUBDIR:O} macro 58 SUBDIR_PARALLEL= macro [all...] |
/freebsd-9.3-release/bin/cat/ |
H A D | Makefile | 4 PROG= cat macro [all...] |
H A D | cat.c | 67 static int bflag, eflag, lflag, nflag, sflag, tflag, vflag; variable 68 static int rval; variable 69 static const char *filename; variable 84 #define PHYSPAGES_THRESHOLD macro 87 #define BUFSIZE_MAX macro 93 #define BUFSIZE_SMALL macro 96 main(int argc, char *argv[]) argument 98 int ch; local 99 struct flock stdout_lock; local 154 usage(void) function 162 scanfiles(char *argv[], int cooked) argument 164 int fd, i; local 165 char *path; local 166 FILE *fp; local 204 cook_cat(FILE *fp) argument 206 int ch, gobble, line, prev; local 265 raw_cat(int rfd) argument 267 int off, wfd; local 268 ssize_t nr, nw; local 269 static size_t bsize; local 270 static char *buf = NULL; local 271 struct stat sbuf; local 302 udom_open(const char *path, int flags) argument 304 struct sockaddr_un sou; local 305 int fd; local 306 unsigned int len; local [all...] |
/freebsd-9.3-release/bin/chflags/ |
H A D | Makefile | 4 PROG= chflags macro [all...] |
H A D | chflags.c | 59 main(int argc, char *argv[]) argument 61 FTS *ftsp; local 62 FTSENT *p; local 63 u_long clear, newflags, set; local 64 long val; local 65 int Hflag, Lflag, Rflag, fflag, hflag, vflag; local 66 int ch, fts_options, oct, rval; local 67 char *flags, *ep; local 200 usage(void) function [all...] |
/freebsd-9.3-release/bin/chio/ |
H A D | Makefile | 4 PROG= chio macro [all...] |
H A D | chio.c | 89 #define CHET_VT macro 93 const struct element_type elements[] = { variable in typeref:struct:element_type 103 const struct changer_command commands[] = { variable in typeref:struct:changer_command 118 const struct special_word specials[] = { variable in typeref:struct:special_word 125 static int changer_fd; variable 126 static const char *changer_name; variable 129 main(int argc, char **argv) argument 131 int ch, i; local 182 do_move(const char *cname, int argc, char **argv) argument 184 struct changer_move cmd; local 185 int val; local 260 do_exchange(const char *cname, int argc, char **argv) argument 262 struct changer_exchange cmd; local 263 int val; local 369 do_position(const char *cname, int argc, char **argv) argument 371 struct changer_position cmd; local 372 int val; local 430 do_params(const char *cname, int argc, char **argv) argument 432 struct changer_params data; local 433 int picker; local 473 do_getpicker(const char *cname, int argc, char **argv) argument 475 int picker; local 500 do_setpicker(const char *cname, int argc, char **argv) argument 502 int picker; local 528 do_status(const char *cname, int argc, char **argv) argument 530 struct changer_params cp; local 531 struct changer_element_status_request cesr; local 532 int i; local 533 u_int16_t base, count, chet, schet, echet; local 534 const char *description; local 535 int pvoltag = 0; local 536 int avoltag = 0; local 537 int sense = 0; local 538 int scsi = 0; local 539 int source = 0; local 540 int intaddr = 0; local 541 int c; local 688 struct changer_element_status *ces = local 749 do_ielem(const char *cname, int argc, char **argv) argument 751 int timeout = 0; local 772 do_voltag(const char *cname, int argc, char **argv) argument 774 int force = 0; local 775 int clear = 0; local 776 int alternate = 0; local 777 int c; local 778 struct changer_set_voltag_request csvr; local 857 parse_element_type(char *cp) argument 859 int i; local 870 element_type_name(int et) argument 872 int i; local 882 parse_element_unit(char *cp) argument 884 int i; local 885 char *p; local 895 parse_special(char *cp) argument 897 int val; local 908 is_special(char *cp) argument 910 int i; local 920 bits_to_string(ces_status_flags v, const char *cp) argument 922 const char *np; local 923 char f, sep, *bp; local 924 static char buf[128]; local 951 do_return(const char *cname, int argc, char **argv) argument 953 struct changer_element_status *ces; local 954 struct changer_move cmd; local 955 uint16_t type, element; local 1015 get_element_status(unsigned int type, unsigned int element, int use_voltags) argument 1017 struct changer_element_status_request cesr; local 1018 struct changer_element_status *ces; local 1053 find_element(char *voltag, uint16_t *et, uint16_t *eu) argument 1055 struct changer_params cp; local 1056 struct changer_element_status_request cesr; local 1057 struct changer_element_status *ch_ces, *ces; local 1058 int found = 0; local 1059 size_t elem, total_elem; local 1174 cleanup(void) function 1181 usage(void) function 1188 #define UTF8CODESET macro 1191 print_designator(const char *designator, u_int8_t code_set, u_int8_t designator_length) argument 1204 char *cs_native; local 1217 int i; local 1238 int i; local [all...] |
H A D | defs.h | 35 struct element_type { struct 36 const char *et_name; /* name; i.e. "picker, "slot", etc. */ member in struct:element_type 37 int et_type; /* type number */ member in struct:element_type 40 struct changer_command { struct 41 const char *cc_name; /* command name */ member in struct:changer_command 43 int (*cc_handler)(const char *, int, char **); member in struct:changer_command 46 struct special_word { struct 47 const char *sw_name; /* special word */ member in struct:special_word 48 int sw_value; /* token value */ member in struct:special_word 52 #define SW_INVERT macro 53 #define SW_INVERT1 macro 54 #define SW_INVERT2 macro 57 #define CHANGER_ENV_VAR macro [all...] |
H A D | pathnames.h | 35 #define _PATH_CH macro [all...] |
/freebsd-9.3-release/bin/chmod/ |
H A D | Makefile | 4 PROG= chmod macro [all...] |
H A D | chmod.c | 60 main(int argc, char *argv[]) argument 62 FTS *ftsp; local 63 FTSENT *p; local 64 mode_t *set; local 65 int Hflag, Lflag, Rflag, ch, error, fflag, fts_options, hflag, rval; local 66 int vflag; local 67 char *mode; local 68 mode_t newmode; local 199 char m1[12], m2[12]; local 219 usage(void) function 227 may_have_nfs4acl(const FTSENT *ent, int hflag) argument 229 int ret; local 230 static dev_t previous_dev = NODEV; local 231 static int supports_acls = -1; local [all...] |
/freebsd-9.3-release/bin/cp/ |
H A D | Makefile | 4 PROG= cp macro 5 SRCS= cp.c utils.c macro [all...] |
H A D | cp.c | 77 #define STRIP_TRAILING_SLASH macro 82 static char emptystring[] = ""; variable 84 PATH_T to = { to.p_path, emptystring, "" }; variable 86 int fflag, iflag, lflag, nflag, pflag, vflag; variable 87 static int Rflag, rflag; variable 88 volatile sig_atomic_t info; variable 90 enum op { FILE_TO_FILE, FILE_TO_DIR, DIR_TO_DNE }; enumerator in enum:op 97 main(int argc, char *argv[]) argument 99 struct stat to_stat, tmp_stat; local 100 enum op type; local 101 int Hflag, Lflag, ch, fts_options, r, have_trailing_slash; local 102 char *target; local 260 copy(char *argv[], enum op type, int fts_options) argument 262 struct stat to_stat; local 263 FTS *ftsp; local 264 FTSENT *curr; local 265 int base = 0, dne, badcp, rval; local 266 size_t nlen; local 267 char *p, *target_mid; local 268 mode_t mask, mode; local 500 mastercmp(const FTSENT * const *a, const FTSENT * const *b) argument 502 int a_info, b_info; local 518 siginfo(int sig __unused) argument [all...] |
H A D | extern.h | 34 char *p_end; /* pointer to NULL at end of path */ member in struct:__anon1 35 char *target_end; /* pointer to end of target base */ member in struct:__anon1 36 char p_path[PATH_MAX]; /* pointer to the start of a path */ member in struct:__anon1 37 } PATH_T; typedef in typeref:struct:__anon1 [all...] |
H A D | utils.c | 58 #define cp_pct macro 62 #define PHYSPAGES_THRESHOLD macro 65 #define BUFSIZE_MAX macro 69 #define BUFSIZE_SMALL macro 72 copy_file(const FTSENT *entp, int dne) argument 74 static char *buf = NULL; local 75 static size_t bufsize; local 76 struct stat *fs; local 77 ssize_t wcount; local 78 size_t wresid; local 79 off_t wtotal; local 80 int ch, checkch, from_fd = 0, rcount, rval, to_fd = 0; local 81 char *bufp; local 83 char *p; local 102 #define YESNO macro 264 copy_link(const FTSENT *p, int exists) argument 266 int len; local 267 char llink[PATH_MAX]; local 286 copy_fifo(struct stat *from_stat, int exists) argument 300 copy_special(struct stat *from_stat, int exists) argument 314 setfile(struct stat *fs, int fd) argument 316 static struct timeval tv[2]; local 317 struct stat ts; local 318 int rval, gotstat, islink, fdval; local 378 preserve_fd_acls(int source_fd, int dest_fd) argument 380 acl_t acl; local 381 acl_type_t acl_type; local 382 int acl_supported = 0, ret, trivial; local 430 preserve_dir_acls(struct stat *fs, char *source_dir, char *dest_dir) argument 434 struct acl *aclp; local 435 acl_t acl; local 436 acl_type_t acl_type; local 437 int acl_supported = 0, ret, trivial; local 517 usage(void) function [all...] |
/freebsd-9.3-release/bin/csh/ |
H A D | Makefile | 11 TCSHDIR= ${.CURDIR}/../../contrib/tcsh macro 14 PROG= csh macro 16 DFLAGS= -D_PATH_TCSHELL='"/rescue/${PROG}"' macro 18 DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"' macro 21 WARNS?= 1 macro 22 SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \\ macro 35 GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c macro 38 MLINKS= csh.1 tcsh.1 macro 43 DPADD= ${LIBTERMCAP} ${LIBCRYPT} macro 44 LDADD= -ltermcap -lcrypt macro 46 LINKS= ${BINDIR}/csh ${BINDIR}/tcsh macro 48 CLEANFILES= ${GENHDRS} gethost csh.1 macro 51 FILESDIR= ${SHAREDIR}/examples/tcsh macro 52 FILES= complete.tcsh csh-mode.el macro 55 CATALOGS= et:et_EE.ISO8859-15 \\ macro 66 NLSLINKS_fi_FI.ISO8859-1= fi_FI.ISO8859-15 macro 67 NLSLINKS_fr_FR.ISO8859-1= fr_BE.ISO8859-1 fr_BE.ISO8859-15 \\ macro 70 NLSLINKS_de_DE.ISO8859-1= de_AT.ISO8859-1 de_AT.ISO8859-15 de_CH.ISO8859-1 \\ macro 72 NLSLINKS_it_IT.ISO8859-1= it_CH.ISO8859-1 it_CH.ISO8859-15 it_IT.ISO8859-15 macro 73 NLSLINKS_es_ES.ISO8859-1= es_ES.ISO8859-15 macro 81 NLSLINKS_el_GR.ISO8859-7 = el_GR.UTF-8 macro 83 NLSLINKS_et_EE.ISO8859-15 = et_EE.UTF-8 macro 87 NLSLINKS_ja_JP.eucJP = ja_JP.SJIS ja_JP.UTF-8 macro 88 NLSLINKS_ru_RU.KOI8-R = ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 ru_RU.UTF-8 macro 89 NLSLINKS_uk_UA.KOI8-U = uk_UA.ISO8859-5 uk_UA.UTF-8 macro 101 NLSNAME= tcsh macro [all...] |
H A D | config.h | 7 #define GETGROUPS_T macro 10 #define GETPGRP_VOID macro 20 #define HAVE_DECL_CRYPT macro 24 #define HAVE_DECL_ENVIRON macro 28 #define HAVE_DECL_GETHOSTNAME macro 32 #define HAVE_DECL_GETPGRP macro 36 #define HAVE_DIRENT_H macro 39 #define HAVE_DUP2 macro 48 #define HAVE_GETCWD macro 51 #define HAVE_GETHOSTNAME macro 54 #define HAVE_GETPWENT macro 60 #define HAVE_GETUTXENT macro 66 #define HAVE_INTTYPES_H macro 69 #define HAVE_LONG_LONG macro 75 #define HAVE_MBRTOWC macro 78 #define HAVE_MEMMOVE macro 81 #define HAVE_MEMORY_H macro 84 #define HAVE_MEMSET macro 87 #define HAVE_MKSTEMP macro 93 #define HAVE_NICE macro 96 #define HAVE_NL_LANGINFO macro 99 #define HAVE_PATHS_H macro 102 #define HAVE_SBRK macro 105 #define HAVE_SETPGID macro 108 #define HAVE_SETPRIORITY macro 114 #define HAVE_STDINT_H macro 117 #define HAVE_STDLIB_H macro 121 #define HAVE_STRCOLL macro 124 #define HAVE_STRERROR macro 127 #define HAVE_STRINGS_H macro 130 #define HAVE_STRING_H macro 133 #define HAVE_STRSTR macro 136 #define HAVE_STRUCT_DIRENT_D_INO macro 139 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY macro 142 #define HAVE_STRUCT_UTMPX_UT_HOST macro 145 #define HAVE_STRUCT_UTMPX_UT_TV macro 148 #define HAVE_STRUCT_UTMPX_UT_USER macro 154 #define HAVE_STRUCT_UTMP_UT_HOST macro 157 #define HAVE_STRUCT_UTMP_UT_TV macro 160 #define HAVE_STRUCT_UTMP_UT_USER macro 166 #define HAVE_SYSCONF macro 177 #define HAVE_SYS_STAT_H macro 180 #define HAVE_SYS_TYPES_H macro 183 #define HAVE_UNISTD_H macro 186 #define HAVE_UTMPX_H macro 192 #define HAVE_WCHAR_H macro 195 #define HAVE_WCTYPE_H macro 198 #define HAVE_WCWIDTH macro 201 #define ICONV_CONST macro 204 #define NLS macro 207 #define NLS_CATALOGS macro 210 #define PACKAGE_BUGREPORT macro 213 #define PACKAGE_NAME macro 216 #define PACKAGE_STRING macro 219 #define PACKAGE_TARNAME macro 222 #define PACKAGE_URL macro 225 #define PACKAGE_VERSION macro 231 #define SIZEOF_WCHAR_T macro 237 #define STDC_HEADERS macro 277 #define SYSMALLOC macro [all...] |
H A D | config_p.h | 11 #define _h_config macro 16 #define POSIX macro 22 #define POSIXJOBS macro 37 #define VFORK macro 43 #define BSDJOBS macro 50 #define BSDTIMES macro 55 #define BSDLIMIT macro 63 #define TERMIO macro 72 #define SYSVREL macro 78 #undef YPBUGS macro 83 #define NLS_BUGS macro 84 #define BSD_STYLE_COLORLS macro 86 #define MCLoadBySet macro 87 #define BUFSIZE macro 88 #define UTMPX_FILE macro 97 # define _PATH_TCSHELL macro 98 # undef SYSMALLOC macro 99 # define SYSMALLOC macro 101 # define _PATH_TCSHELL macro 104 # undef NLS macro 105 # undef NLS_CATALOGS macro 108 # define SYSMALLOC macro [all...] |
H A D | iconv_stub.c | 34 #undef iconv_open macro 35 #undef iconv macro 36 #undef iconv_close macro 38 #define ICONVLIB macro 39 #define ICONV_ENGINE macro 40 #define ICONV_OPEN macro 41 #define ICONV_CLOSE macro 43 typedef iconv_t iconv_open_t(const char *, const char *); typedef 45 dl_iconv_t *dl_iconv; variable 46 dl_iconv_close_t *dl_iconv_close; variable 48 static int initialized; variable 49 static void *iconvlib; variable 50 static iconv_open_t *iconv_open; variable 53 dl_iconv_open(const char *tocode, const char *fromcode) argument [all...] |
H A D | iconv_stub.h | 30 #define _ICONV_H_ macro 32 typedef void *iconv_t; typedef 33 typedef size_t dl_iconv_t(iconv_t, const char **, size_t *, char **, size_t *); typedef 34 typedef int dl_iconv_close_t(iconv_t); typedef 40 #define iconv_open macro 41 #define iconv macro 42 #define iconv_close macro [all...] |
/freebsd-9.3-release/bin/date/ |
H A D | Makefile | 4 PROG= date macro 5 SRCS= date.c netdate.c vary.c macro [all...] |
H A D | date.c | 31 static char const copyright[] = variable 62 #define TM_YEAR_BASE macro 65 static time_t tval; variable 66 int retval; variable 72 static const char *rfc2822_format = "%a, %d %b %Y %T %z"; variable 75 main(int argc, char *argv[]) argument 77 struct timezone tz; local 78 int ch, rflag; local 79 int jflag, nflag, Rflag; local 80 const char *format; local 81 char buf[1024]; local 82 char *endptr, *fmt; local 83 char *tmp; local 84 int set_timezone; local 85 struct vary *v; local 86 const struct vary *badv; local 87 struct tm lt; local 195 #define ATOI2 macro 198 setthetime(const char *fmt, const char *p, int jflag, int nflag) argument 200 struct utmpx utx; local 201 struct tm *lt; local 202 struct timeval tv; local 203 const char *dot, *t; local 204 int century; local 310 badformat(void) function 317 usage(void) function [all...] |
H A D | netdate.c | 45 #define TSPTYPES macro 55 #define WAITACK macro 56 #define WAITDATEACK macro 68 netsettime(time_t tval) argument 70 struct timeval tout; local 71 struct servent *sp; local 72 struct tsp msg; local 73 struct sockaddr_in lsin, dest, from; local 74 fd_set ready; local 75 long waittime; local 76 int s, port, timed_ack, found, lerr; local 77 socklen_t length; local 78 char hostname[MAXHOSTNAMELEN]; local [all...] |
H A D | vary.c | 36 struct trans { struct 37 int val; member in struct:trans 38 const char *str; member in struct:trans 41 static struct trans trans_mon[] = { variable in typeref:struct:trans 48 static struct trans trans_wday[] = { variable in typeref:struct:trans 54 static char digits[] = "0123456789"; variable 58 domktime(struct tm *t, char type) argument 60 time_t ret; local 70 trans(const struct trans t[], const char *arg) argument 72 int f; local 83 vary_append(struct vary *v, char *arg) argument 85 struct vary *result, **nextp; local 102 static int mdays[12] = { 31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; variable 105 daysinmonth(const struct tm *t) argument 107 int year; local 128 adjyear(struct tm *t, char type, int val, int mk) argument 149 adjmon(struct tm *t, char type, int val, int istext, int mk) argument 151 int lmdays; local 209 adjday(struct tm *t, char type, int val, int mk) argument 211 int lmdays; local 253 adjwday(struct tm *t, char type, int val, int istext, int mk) argument 289 adjhour(struct tm *t, char type, int val, int mk) argument 297 int days; local 310 int days; local 334 adjmin(struct tm *t, char type, int val, int mk) argument 375 adjsec(struct tm *t, char type, int val, int mk) argument 416 vary_apply(const struct vary *v, struct tm *t) argument 418 char type; local 419 char which; local 420 char *arg; local 421 size_t len; local 422 int val; local 497 vary_destroy(struct vary *v) argument 499 struct vary *n; local [all...] |