/illumos-gate/usr/src/test/zfs-tests/tests/functional/cachefile/ |
H A D | cachefile_001_pos.ksh | 5 # The contents of this file are subject to the terms of the 7 # You may not use this file except in compliance with the License. 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 52 typeset file 57 for file in $CPATH1 $CPATH2 ; do 58 if [[ -f $file ]] ; then 59 log_must rm $file
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmap/ |
H A D | mmap_write_001_pos.ksh | 5 # The contents of this file are subject to the terms of the 7 # You may not use this file except in compliance with the License. 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 36 # Writing to a file and mmaping that file at the 42 # 3. wait 30s and make sure the test file existed. 47 log_assert "write()s to a file and mmap() that file at the same time does not "\ 54 mmapwrite $TESTDIR/test-write-file [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_debug.h | 24 # define Aerror(statp, file, string, error, address) /*empty*/ 25 # define Perror(statp, file, string, error) /*empty*/ 35 /*! \file */
|
/illumos-gate/usr/src/lib/libc/common/sys/ |
H A D | setreid.s | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 26 .file "setreid.s"
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ovprintf.c | 4 * The contents of this file are subject to the terms of the 6 * (the "License"). You may not use this file except in compliance 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 47 _strout(string, count, adjust, file, fillch) 51 register struct _iobuf *file;
|
/illumos-gate/usr/src/grub/grub-0.97/util/ |
H A D | grub-set-default.in | 6 # This file is free software; you can redistribute it and/or modify it 91 file=${grubdir}/default 92 if test -f ${file}; then 93 chmod 0600 ${file} 94 rm -f ${file} 96 cat <<EOF > $file 108 # WARNING: If you want to edit this file directly, do not remove any line 109 # from this file, including this warning. Using \`grub-set-default\' is
|
/illumos-gate/usr/src/lib/libcontract/common/ |
H A D | device_dump.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 48 event_device(FILE *file, ct_evthdl_t ev, int verbose) argument 62 (void) fprintf(file, dgettext(TEXT_DOMAIN, "[bad contract]\n")); 67 (void) fprintf(file, dgettext(TEXT_DOMAIN, "[status error]\n")); 72 (void) fprintf(file, dgettext(TEXT_DOMAIN, "[bad status]\n")); 88 contract_negend_dump(file, ev); 98 (void) fprintf(file, [all...] |
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/io/ |
H A D | tst.fds.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 48 const char *file = "/dev/null"; local 67 * With all of our file descriptors closed, wait here spinning in bogus 76 * To test the fds[] array, we open /dev/null (a file with reliable 79 fds[n++] = open(file, O_RDONLY); 80 fds[n++] = open(file, O_WRONLY); 81 fds[n++] = open(file, O_RDW [all...] |
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pragma/ |
H A D | tst.temporal2.ksh | 5 # This file and its contents are supplied under the terms of the 7 # You may only use this file in accordance with the terms of version 40 file=/tmp/out.$$ 42 rm -f $file 44 $dtrace -o $file -s /dev/stdin <<EOF 93 head -n -1 $file > $file.2 95 sort -n $file.2 | diff $file.2 -
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_tar_001_pos.ksh | 5 # The contents of this file are subject to the terms of the 7 # You may not use this file except in compliance with the License. 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 41 # 1. Create file and directory in zfs filesystem 42 # 2. Add new ACE in ACL of file and directory 43 # 3. Use tar to archive file and directory 44 # 4. Extract the archive file 45 # 5. Verify that the restored ACLs of file and directory identify 69 file [all...] |
/illumos-gate/usr/src/boot/lib/libz/ |
H A D | gzlib.c | 77 /* Reset gzip file state */ 83 state->eof = 0; /* not at end of file */ 93 /* Open a gzip file either by name or file descriptor. */ 190 state->direct = 1; /* for empty file */ 243 /* open the file with the appropriate flags (or just use fd) */ 317 int ZEXPORT gzbuffer(file, size) 318 gzFile file; 324 if (file == NULL) 326 state = (gz_statep)file; [all...] |
/illumos-gate/usr/src/cmd/filesync/ |
H A D | rename.c | 4 * The contents of this file are subject to the terms of the 6 * (the "License"). You may not use this file except in compliance 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 34 * find_oldname . (static) find the file we were renamed from 44 * have been created beneath other directories (i.e. a file has been 51 * we still detect file renames, so that the user will see them 65 static struct file *find_oldname(struct file *, struct file *, side_ [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | gtcfile.c | 4 * The contents of this file are subject to the terms of the 6 * (the "License"). You may not use this file except in compliance 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 59 wfremove(csave[i].file); 68 /* make new file name for for the job */ 72 (void) sprintf(cmfile, "%c.%.*s%c%.4x", *csave[i].file, 76 (void) strncpy(cmfile, csave[i].file, NAMESIZE-1); 86 wfcommit(csave[i].file, cmfile, csave[i].sys); 87 (void) strncpy(csave[i].file, cmfil [all...] |
/illumos-gate/usr/src/test/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_negative.ksh | 4 # This file and its contents are supplied under the terms of the 6 # You may only use this file in accordance with the terms of version 27 # 1. The file in the origin ds is written without compression or sha256. 28 # 2. The file in the origin ds is written before sha256 checksum is turned on. 46 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \ 47 >/dev/null 2>&1 || log_fail "dd of $TESTDIR/file failed." 51 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \ 55 log_must rm -f $TESTDIR/file 59 dd if=/dev/urandom of=$TESTDIR/file b [all...] |
/illumos-gate/usr/src/lib/libipsecutil/common/ |
H A D | ipsec_util.c | 5 * The contents of this file are subject to the terms of the 7 * You may not use this file except in compliance with the License. 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 54 * This file contains support functions that are shared by the ipsec 59 #define EFD(file) (((file) == stdout) ? stderr : (file)) 69 boolean_t readfile = B_FALSE; /* cmds are being read from a file */ 70 uint_t lineno = 0; /* track location if reading cmds from file */ 1633 print_diagnostic(FILE *file, uint16_t diagnostic) argument 1645 print_sadb_msg(FILE *file, struct sadb_msg *samsg, time_t wallclock, boolean_t vflag) argument 1758 print_sa(FILE *file, char *prefix, struct sadb_sa *assoc) argument 1847 printsatime(FILE *file, int64_t lt, const char *msg, const char *pfx, const char *pfx2, boolean_t vflag) argument 1874 print_lifetimes(FILE *file, time_t wallclock, struct sadb_lifetime *current, struct sadb_lifetime *hard, struct sadb_lifetime *soft, struct sadb_lifetime *idle, boolean_t vflag) argument 2121 print_address(FILE *file, char *prefix, struct sadb_address *addr, boolean_t ignore_nss) argument 2176 print_key(FILE *file, char *prefix, struct sadb_key *key) argument 2199 print_ident(FILE *file, char *prefix, struct sadb_ident *id) argument 2298 print_sens(FILE *file, char *prefix, const struct sadb_sens *sens, boolean_t ignore_nss) argument 2354 print_prop(FILE *file, char *prefix, struct sadb_prop *prop) argument 2431 print_eprop(FILE *file, char *prefix, struct sadb_prop *eprop) argument 2531 print_supp(FILE *file, char *prefix, struct sadb_supported *supp) argument 2577 print_spirange(FILE *file, char *prefix, struct sadb_spirange *range) argument 2590 print_kmc(FILE *file, char *prefix, struct sadb_x_kmc *kmc) argument 2608 print_replay(FILE *file, char *prefix, sadb_x_replay_ctr_t *repl) argument 2630 print_pair(FILE *file, char *prefix, struct sadb_x_pair *pair) argument 2641 print_samsg(FILE *file, uint64_t *buffer, boolean_t want_timestamp, boolean_t vflag, boolean_t ignore_nss) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfnew.c | 32 Sfio_t* sfnew(Sfio_t* oldf, Void_t* buf, size_t size, int file, int flags) argument 34 Sfio_t* sfnew(oldf,buf,size,file,flags) 38 int file; /* file descriptor to read/write from */ 39 int flags; /* type of file stream */ 85 if(!(flags&SF_STRING) && file >= 0 && file <= 2) 86 { f = file == 0 ? sfstdin : file == 1 ? sfstdout : sfstderr; 111 f->file [all...] |
H A D | sftmp.c | 26 ** When this memory is exceeded, a real temp file will be created. 27 ** The temp file creation sequence is somewhat convoluted so that 35 /* File not removable while there is an open file descriptor. 37 ** 1. A discipline to remove a file when the corresponding stream is closed. 38 ** Care must be taken to close the file descriptor before removing the 39 ** file because systems such as NT do not allow file removal while 40 ** there is an open file handle. 50 char name[1]; /* temp file name */ 84 (*_Sfnotify)(f,SF_CLOSING,f->file); 119 _rmtmp(Sfio_t* f, char* file) argument 206 reg char* file; local [all...] |
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | util.h | 52 gboolean hal_util_get_int_from_file (const gchar *directory, const gchar *file, gint *result, gint base); 54 gboolean hal_util_set_int_from_file (HalDevice *d, const gchar *key, const gchar *directory, const gchar *file, gint base); 56 gboolean hal_util_get_uint64_from_file (const gchar *directory, const gchar *file, guint64 *result, gint base); 58 gboolean hal_util_set_uint64_from_file (HalDevice *d, const gchar *key, const gchar *directory, const gchar *file, gint base); 60 gchar *hal_util_get_string_from_file (const gchar *directory, const gchar *file); 62 gboolean hal_util_set_string_from_file (HalDevice *d, const gchar *key, const gchar *directory, const gchar *file); 64 gboolean hal_util_get_bcd2_from_file (const gchar *directory, const gchar *file, gint *result); 66 gboolean hal_util_set_bcd2_from_file (HalDevice *d, const gchar *key, const gchar *directory, const gchar *file); 74 gchar *hal_util_grep_file (const gchar *directory, const gchar *file, const gchar *linestart, gboolean reuse_file); 76 gint hal_util_grep_int_elem_from_file (const gchar *directory, const gchar *file, [all...] |
/illumos-gate/usr/src/lib/udapl/libdat/include/ |
H A D | dat_osd.h | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 182 /* DAT_RETURN dat_os_fgetpos(DAT_OS_FILE *file, DAT_OS_FILE_POS *pos) */ 183 #define dat_os_fgetpos(file, pos) ((DAT_RETURN)( \ 184 (0 == fgetpos((file), (pos))) ? DAT_SUCCESS : \ 187 /* DAT_RETURN dat_os_fsetpos(DAT_OS_FILE *file, DAT_OS_FILE_POS *pos) */ 188 #define dat_os_fsetpos(file, pos) ((DAT_RETURN)( \ 189 (0 == fsetpos((file), (po [all...] |
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | cksum.c | 26 * sum -- list file checksum and size 32 "[+NAME?cksum,md5sum,sum - print file checksum and block count]" 34 " count, for each file argument. The standard input is read if there are" 59 " compared with the current value and a warning is issued for each file" 61 " then the file mode, user and group are also checked. Empty lines," 73 "[p:permissions?If \b--check\b is not specified then list the file" 78 " printed on the standard error for each changed file.]" 106 "\n[ file ... ]\n" 126 int list; /* list file name too */ 174 * compute and print sum on an open file 178 pr(State_t* state, Sfio_t* op, Sfio_t* ip, char* file, int perm, struct stat* st, Sfio_t* check) argument 262 char* file; local 408 register char* file; local 445 char* file; local [all...] |
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | find.c | 4 * The contents of this file are subject to the terms of the 6 * (the "License"). You may not use this file except in compliance 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 59 char lastfilepath[PATHLEN + 1]; /* last file that full path was */ 72 static void putref(char *file, char *function); 73 static void findcalledbysub(char *file); 79 static char *filepath(char *file); 86 char file[PATHLEN + 1]; /* source file nam local 252 char file[PATHLEN + 1]; /* source file name */ local 364 char file[PATHLEN + 1]; /* source file name */ local 396 char file[PATHLEN + 1]; /* source file name */ local 443 findcalledbysub(char *file) argument 483 char file[PATHLEN + 1]; /* source file name */ local 550 char file[PATHLEN + 1]; /* source file name */ local 664 char *file = filepath(srcfiles[i]); local 701 char file[PATHLEN + 1]; /* source file name */ local 1055 putref(char *file, char *function) argument 1265 filepath(char *file) argument [all...] |
/illumos-gate/usr/src/tools/depcheck/ |
H A D | get_depend_info | 5 # The contents of this file are subject to the terms of the 7 # (the "License"). You may not use this file except in compliance 16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 48 analyzed. By default, the program will report the file 143 # make sure file exists 145 print STDERR "Could not open file $entry\n"; 150 $file = $FTYPE{$entry}; 154 if ($file eq "d") { 155 print("Input file i [all...] |
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | pcom.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 29 * read an ELF file. pcom will open an ELF file using 30 * elf_begin(ELF_C_READ) and examine search the ELF file 47 print_comment(Elf *elf, const char *file) argument 55 (void) printf("%s .comment:\n", file); 59 file, elf_errms 108 process_elf(Elf *elf, char *file, int fd, int member) argument [all...] |
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/ |
H A D | print.c | 77 int file = -1; local 79 /* last arg is the print file. */ 108 file = 0; /* stdin */ 111 file = open(filename, O_RDONLY, 0); 112 if (file < 0) { 113 smb_error("could not open file %s\n", errno, filename); 152 * Print the file. 157 error = print_file(ctx, titlebuf, file); 161 /* don't close stdin (file=0) */ 162 if (file > 186 print_file(smb_ctx_t *ctx, char *title, int file) argument [all...] |
/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | rwlock_emul.c | 5 void eMrwlock_read_enter(rw, file, line) 7 char *file; 22 rw->eMrw_heldin = file; 27 void eMrwlock_write_enter(rw, file, line) 29 char *file; 44 rw->eMrw_heldin = file; 49 void eMrwlock_downgrade(rw, file, line) 51 char *file; 67 rw->eMrw_heldin = file;
|