/freebsd-13-stable/contrib/tcsh/ |
H A D | dotlock.h | 29 * fname -- Pathname to lock 32 int dot_lock(const char *fname, int pollinterval); 33 void dot_unlock(const char *fname);
|
H A D | dotlock.c | 47 create_exclusive(const char *fname) argument 67 if ((ptr = strrchr(fname, '/')) == NULL) 68 ptr = fname; 73 (int)(ptr - fname), fname, hostname, (u_long)cookie); 93 if (link(path, fname) == -1) 123 * fname -- Pathname to lock 127 dot_lock(const char *fname, int pollinterval) argument 143 (void)snprintf(path, sizeof(path), "%s.lock", fname); 173 dot_unlock(const char *fname) argument [all...] |
/freebsd-13-stable/bin/pax/ |
H A D | ftree.h | 46 char *fname; /* file tree name */ member in struct:ftree
|
/freebsd-13-stable/sys/contrib/openzfs/lib/libuutil/ |
H A D | uu_open.c | 44 char *fname = uu_zalloc(PATH_MAX); local 46 if (fname == NULL) 50 (void) snprintf(fname, PATH_MAX, "%s/uu%lld", dir, gethrtime()); 52 f = open(fname, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC, 0600); 59 (void) unlink(fname); 61 uu_free(fname);
|
/freebsd-13-stable/lib/libc/posix1e/ |
H A D | mac_exec.c | 40 extern int __mac_execve(char *fname, char **argv, char **envv, 44 mac_execve(char *fname, char **argv, char **envv, struct mac *label) argument 47 return (__mac_execve(fname, argv, envv, label));
|
/freebsd-13-stable/usr.sbin/manctl/ |
H A D | manctl.sh | 58 local fname 70 fname=$1 ; shift 72 fname=$fname.$1 84 mv $pname $fname.$ext # link 93 mv $pname $fname.$sect 154 local fname 168 fname=$1; 169 echo replacing $fname with a hard link 170 set `cat $fname`; [all...] |
/freebsd-13-stable/contrib/serf/build/ |
H A D | gen_def.py | 54 def extract_exports(fname): 55 content = open(fname).read() 74 for fname in sys.argv[1:]: 75 funclist = extract_exports(fname)
|
/freebsd-13-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | dso.c | 76 svn_dso_load_internal(apr_dso_handle_t **dso, const char *fname) argument 78 *dso = svn_hash_gets(dso_cache, fname); 92 apr_status_t status = apr_dso_load(dso, fname, dso_pool); 99 fname, 105 svn_hash_sets(dso_cache, apr_pstrdup(dso_pool, fname), NOT_THERE); 111 svn_hash_sets(dso_cache, apr_pstrdup(dso_pool, fname), *dso); 118 svn_dso_load(apr_dso_handle_t **dso, const char *fname) argument 122 SVN_MUTEX__WITH_LOCK(dso_mutex, svn_dso_load_internal(dso, fname));
|
/freebsd-13-stable/sys/contrib/zstd/examples/ |
H A D | simple_decompression.c | 16 static void decompress(const char* fname) argument 19 void* const cBuff = mallocAndLoadFile_orDie(fname, &cSize); 27 CHECK(rSize != ZSTD_CONTENTSIZE_ERROR, "%s: not compressed by zstd!", fname); 28 CHECK(rSize != ZSTD_CONTENTSIZE_UNKNOWN, "%s: original size unknown!", fname); 43 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize);
|
H A D | dictionary_decompression.c | 30 static void decompress(const char* fname, const ZSTD_DDict* ddict) argument 33 void* const cBuff = mallocAndLoadFile_orDie(fname, &cSize); 41 CHECK(rSize != ZSTD_CONTENTSIZE_ERROR, "%s: not compressed by zstd!", fname); 42 CHECK(rSize != ZSTD_CONTENTSIZE_UNKNOWN, "%s: original size unknown!", fname); 70 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize);
|
/freebsd-13-stable/contrib/nvi/ex/ |
H A D | ex_mkexrc.c | 41 char *fname; local 46 fname = _PATH_EXRC; 50 fname, flen); 51 set_alt_name(sp, fname); 57 if (!FL_ISSET(cmdp->iflags, E_C_FORCE) && !stat(fname, &sb)) { 58 msgq_str(sp, M_ERR, fname, 64 if ((fd = open(fname, O_CREAT | O_TRUNC | O_WRONLY, 66 msgq_str(sp, M_SYSERR, fname, "%s"); 89 msgq_str(sp, M_INFO, fname, "138|New exrc file: %s"); 95 msgq_str(sp, M_SYSERR, fname, " [all...] |
/freebsd-13-stable/contrib/netbsd-tests/dev/scsipi/ |
H A D | t_cd.c | 54 static char fname[] = "/dev/rcd0_"; local 58 fname[strlen(fname)-1] = 'a' + part; 66 RL(fd = rump_sys_open(fname, O_RDWR));
|
/freebsd-13-stable/contrib/unbound/contrib/ |
H A D | unbound_cache.cmd | 13 set fname="unbound_cache.dmp"
variable 30 echo Loading cache from %program_path%\%fname%
31 dir /a %program_path%\%fname%
32 type %program_path%\%fname%|%uc% load_cache
41 echo Saving cache to %program_path%\%fname%
42 %uc% dump_cache>%program_path%\%fname%
43 dir /a %program_path%\%fname%
49 echo Loading cache from %program_path%\%fname%
50 dir /a %program_path%\%fname%
51 type %program_path%\%fname [all...] |
/freebsd-13-stable/bin/sh/ |
H A D | redir.c | 177 const char *fname; local 184 fname = redir->nfile.expfname; 185 if ((f = open(fname, O_RDONLY)) < 0) 186 error("cannot open %s: %s", fname, strerror(errno)); 189 fname = redir->nfile.expfname; 190 if ((f = open(fname, O_RDWR|O_CREAT, 0666)) < 0) 191 error("cannot create %s: %s", fname, strerror(errno)); 195 fname = redir->nfile.expfname; 196 if (stat(fname, &sb) == -1) { 197 if ((f = open(fname, O_WRONL [all...] |
/freebsd-13-stable/usr.bin/sed/ |
H A D | main.c | 77 char *s; /* Pointer to string or fname */ 90 char *fname; member in struct:s_flist 115 const char *fname; /* File name. */ variable 246 fname = "stdin"; 250 fname = script->s; 260 fname = string_ident; 340 if (files->fname == NULL) { 344 fname = "stdin"; 370 if ((link(fname, oldfname) != 0) && 371 (rename(fname, oldfnam [all...] |
/freebsd-13-stable/contrib/ntp/sntp/libopts/ |
H A D | file.c | 43 char const * fname = pOD->optArg.argString; local 50 if ((stat(fname, &sb) == 0) || (errno != ENOENT)) { 53 fserr_exit(pOpts->pzProgName, "stat", fname); 61 char * p = strrchr(fname, DIRCH); 71 l = (size_t)(p - fname); 72 p = AGALOC(l + 1, "fname"); 73 memcpy(p, fname, l); 85 if ( (stat(fname, &sb) != 0) 87 fserr_exit(pOpts->pzProgName, "stat", fname);
|
/freebsd-13-stable/contrib/mandoc/ |
H A D | dbm_map.c | 60 dbm_map(const char *fname) argument 65 if ((ifd = open(fname, O_RDONLY)) == -1) 70 warnx("dbm_map(%s): File too short", fname); 86 fname, be32toh(*magic), MANDOCDB_MAGIC); 90 fname); 97 fname, be32toh(*magic), MANDOCDB_VERSION); 104 fname, (long long)st.st_size, max_offset); 114 fname, be32toh(*magic), MANDOCDB_MAGIC);
|
/freebsd-13-stable/usr.sbin/cron/cron/ |
H A D | database.c | 160 char fname[MAXNAMLEN+1], local 171 (void) strncpy(fname, dp->d_name, sizeof(fname)); 172 fname[sizeof(fname)-1] = '\0'; 173 (void) snprintf(tabname, sizeof tabname, CRON_TAB(fname)); 175 process_crontab(fname, fname, tabname, 251 process_crontab(uname, fname, tabname, statbuf, new_db, old_db) 253 char *fname; [all...] |
/freebsd-13-stable/usr.bin/truncate/ |
H A D | truncate.c | 60 char *fname, *rname; local 122 while ((fname = *argv++) != NULL) { 125 if ((fd = open(fname, oflags, omode)) == -1) { 127 warn("%s", fname); 134 warn("%s", fname); 141 warn("%s", fname); 149 warn("%s", fname); 170 warn("%s", fname);
|
/freebsd-13-stable/usr.bin/msgs/ |
H A D | msgs.c | 114 static char fname[MAXPATHLEN]; variable 246 snprintf(fname, sizeof(fname), "%s/%s", _PATH_MSGS, BOUNDS); 256 if (stat(fname, &buf) < 0) { 258 err(errno, "%s", fname); 264 bounds = fopen(fname, "r"); 332 bounds = fopen(fname, "w"); 334 err(errno, "%s", fname); 335 chmod(fname, CMODE); 345 bounds = fopen(fname, " [all...] |
/freebsd-13-stable/contrib/unbound/dynlibmod/ |
H A D | dynlibmod.c | 40 static HMODULE open_library(const char* fname) { argument 41 return LoadLibrary(fname); 44 static void close_library(const char* fname, __DYNMOD handle) { argument 45 (void)fname; 57 static void* open_library(const char* fname) { argument 58 return dlopen(fname, RTLD_LAZY | RTLD_GLOBAL); 61 static void close_library(const char* fname, __DYNMOD handle) { argument 64 log_err("dlclose %s: %s", fname, strerror(errno)); 86 de->fname = NULL; 95 de->fname [all...] |
/freebsd-13-stable/contrib/wpa/hostapd/ |
H A D | config_file.h | 12 struct hostapd_config * hostapd_config_read(const char *fname);
|
/freebsd-13-stable/lib/libc/db/db/ |
H A D | db.c | 54 dbopen(const char *fname, int flags, int mode, DBTYPE type, const void *openinfo) argument 65 return (__bt_open(fname, flags & USE_OPEN_FLAGS, 68 return (__hash_open(fname, flags & USE_OPEN_FLAGS, 71 return (__rec_open(fname, flags & USE_OPEN_FLAGS,
|
/freebsd-13-stable/lib/libc/tests/gen/ |
H A D | dlopen_empty_test.c | 61 char *fname; local 66 fname = mktemp(tempname); 67 ATF_REQUIRE_MSG(fname != NULL, "mktemp failed; errno=%d", errno); 68 asprintf(&soname, "%s.so", fname);
|
/freebsd-13-stable/contrib/ntp/lib/isc/ |
H A D | assertions.c | 111 const char *fname; local 126 fname = NULL; 127 result = isc_backtrace_getsymbol(tracebuf[i], &fname, 131 tracebuf[i], fname, offset);
|