/macosx-10.9.5/gpatch-3/patch/ |
H A D | dirname.h | 40 char *base_name PARAMS ((char const *path)); 41 char *dir_name PARAMS ((char const *path)); 42 size_t base_len PARAMS ((char const *path)); 43 size_t dir_len PARAMS ((char const *path)); 45 int strip_trailing_slashes PARAMS ((char *path));
|
H A D | dirname.c | 1 /* dirname.c -- return all but the last element in a path 33 dir_len (char const *path) argument 35 size_t prefix_length = FILESYSTEM_PREFIX_LEN (path); 39 for (length = base_name (path) - path; prefix_length < length; length--) 40 if (! ISSLASH (path[length - 1])) 44 return prefix_length + ISSLASH (path[prefix_length]); 53 dir_name (char const *path) argument 55 size_t length = dir_len (path); 56 int append_dot = (length == FILESYSTEM_PREFIX_LEN (path)); 95 char path[MAX_BUFF_LEN]; local [all...] |
/macosx-10.9.5/ruby-104/ruby/ext/tk/lib/tk/ |
H A D | textimage.rb | 16 @path = TkTextMark.new(@t, tk_call(@t.path, 'index', 'end - 1 chars')) 18 if tk_call_without_enc(@t.path,'index',index.path) == tk_call_without_enc(@t.path,'index','end') 19 @path = TkTextMark.new(@t, tk_call_without_enc(@t.path, 'index', 22 @path = TkTextMark.new(@t, tk_call_without_enc(@t.path, 'index', 23 index.path)) [all...] |
/macosx-10.9.5/srm-7/srm/src/ |
H A D | tree_walker.c | 39 int check_perms(const char *path) { argument 42 if ( ((fd = open(path, O_WRONLY)) == -1) && (errno == EACCES) ) { 43 if ( chmod(path, S_IRUSR | S_IWUSR) == -1 ) { 45 "... skipping", path); 54 int prompt_file(const char *path, int fts_flag) { argument 56 size_t bufsize = strlen(path) + 80; 66 printf("removing %s\n", path); 69 return check_perms(path); 72 if ( (fts_flag != FTS_SL) && ((fd = open(path, O_WRONLY)) == -1) && 76 snprintf(buf, bufsize, "Remove write protected file %s? ", path); 96 process_file(char *path, int flag) argument 175 char *path = (char *)alloca(path_size); local [all...] |
/macosx-10.9.5/ksh-20/ksh/src/lib/libast/path/ |
H A D | pathprog.c | 27 * return the full path of the current program in path 41 prog(const char* command, char* path, size_t size) argument 55 if ((n = readlink(_PROC_PROG, path, size)) > 0 && *path == '/') 58 path[n] = 0; 67 strcpy(path, s); 76 t = path; 77 e = path + size - 1; 93 return (t - path) 106 pathprog(const char* command, char* path, size_t size) argument [all...] |
H A D | pathaccess.c | 27 * return path to file a/b with access mode using : separated dirs 30 * if (mode&PATH_REGULAR) then path must not be a directory 31 * if (mode&PATH_ABSOLUTE) then path must be rooted 32 * path returned in path buffer 40 pathaccess(char* path, const char* dirs, const char* a, const char* b, int mode) argument 42 return pathaccess_20100601(dirs, a, b, mode, path, PATH_MAX); 50 pathaccess_20100601(register const char* dirs, const char* a, const char* b, register int mode, register char* path, size_t size) argument 58 dirs = pathcat(dirs, sep, a, b, path, size); 59 pathcanon(path, siz [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/bwidget/bwidget/ |
H A D | separator.tcl | 31 proc Separator::create { path args } { 34 eval [list frame $path] $maps(:cmd) -class Separator 35 Widget::initFromODB Separator $path $maps(Separator) 37 if { [Widget::cget $path -orient] == "horizontal" } { 38 $path configure -borderwidth 1 -height 2 40 $path configure -borderwidth 1 -width 2 43 if { [string equal [Widget::cget $path -relief] "groove"] } { 44 $path configure -relief sunken 46 $path configure -relief raised 49 return [Widget::create Separator $path] [all...] |
H A D | notebook.tcl | 113 proc NoteBook::create { path args } { 114 variable $path 115 upvar 0 $path data 117 Widget::init NoteBook $path $args 126 _compute_height $path 129 set w [expr {[Widget::cget $path -width]+4}] 130 set h [expr {[Widget::cget $path -height]+$data(hpage)+4}] 132 frame $path -class NoteBook -borderwidth 0 -highlightthickness 0 \ 134 eval [list canvas $path.c] [Widget::subcget $path [all...] |
H A D | combobox.tcl | 89 # path name of the new widget. 93 # path name of the new widget. 95 proc ComboBox::create { path args } { 99 eval [list frame $path] $maps(:cmd) \ 101 Widget::initFromODB ComboBox $path $maps(ComboBox) 103 bindtags $path [list $path BwComboBox [winfo toplevel $path] all] 105 set entry [eval [list Entry::create $path.e] $maps(.e) \ 108 ::bind $path [all...] |
H A D | tree.tcl | 154 proc Tree::create { path args } { 155 variable $path 156 upvar 0 $path data 158 Widget::init Tree $path $args 159 set ::Tree::sentinal($path.c) 0 161 if {[Widget::cget $path -crossopenbitmap] == ""} { 163 Widget::configure $path [list -crossopenbitmap @$file] 165 if {[Widget::cget $path -crossclosebitmap] == ""} { 167 Widget::configure $path [list -crossclosebitmap @$file] 180 frame $path [all...] |
H A D | arrow.tcl | 88 proc ArrowButton::create { path args } { 94 frame $path -class ArrowButton -borderwidth 0 -highlightthickness 0 95 Widget::initFromODB ArrowButton $path $submaps(ArrowButton) 98 eval [list canvas $path.c] $submaps(.c) 102 set w [Widget::getMegawidgetOption $path -width] 103 set h [Widget::getMegawidgetOption $path -height] 104 set bd [Widget::cget $path -borderwidth] 105 set ht [Widget::cget $path -highlightthickness] 108 $path.c configure -width [expr {$w-$pad}] -height [expr {$h-$pad}] 109 bindtags $path [lis [all...] |
/macosx-10.9.5/OpenSSH-186/openssh/openbsd-compat/ |
H A D | mktemp.c | 47 mktemp_internal(char *path, int slen, int mode) argument 56 len = strlen(path); 61 ep = path + len - slen; 64 for (start = ep; start > path && start[-1] == 'X'; start--) { 78 if (lstat(path, &sb) != 0) 82 fd = open(path, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR); 87 if (mkdir(path, S_IRUSR|S_IWUSR|S_IXUSR) == 0) 103 _mktemp(char *path) 105 if (mktemp_internal(path, 0, MKTEMP_NAME) == -1) 107 return(path); 121 mkstemp(char *path) argument 127 mkstemps(char *path, int slen) argument 133 mkdtemp(char *path) argument [all...] |
/macosx-10.9.5/Libc-997.90.3/gen/FreeBSD/ |
H A D | basename.c | 47 basename(path) 48 const char *path; 60 if (path == NULL || *path == '\0') { 66 endp = path + strlen(path) - 1; 67 while (endp > path && *endp == '/') 71 if (endp == path && *endp == '/') { 78 while (startp > path && *(startp - 1) != '/')
|
/macosx-10.9.5/dyld-239.4/unit-tests/test-cases/dlopen-local-and-global/ |
H A D | main.c | 33 static void* openWithModeGetSymbol(const char* path, int mode, const char* symbol) argument 35 void* handle = dlopen(path, mode); 39 XFAIL("dlopen(\"%s\") failed: %s", path, msg); 41 FAIL("dlopen(\"%s\") failed: %s", path, msg); 53 static void trySO(const char* path) argument 56 void* symLocal = openWithModeGetSymbol(path, RTLD_LOCAL, "foo"); 57 void* symGlobal = openWithModeGetSymbol(path, RTLD_GLOBAL, "foo"); 59 void* symGlobal = openWithModeGetSymbol(path, RTLD_GLOBAL, "foo"); 60 void* symLocal = openWithModeGetSymbol(path, RTLD_LOCAL, "foo");
|
/macosx-10.9.5/kext_tools-326.95.1/ |
H A D | safecalls.h | 40 int sopen(int fdvol, const char *path, int flags, mode_t mode); 43 int schdir(int fdvol, const char *path, int *olddir); 44 int schdirparent(int fdvol, const char *path, int *olddir, char childname[PATH_MAX]); 48 int smkdir(int fdvol, const char *path, mode_t mode); 49 int srmdir(int fdvol, const char *path); 50 int sunlink(int fdvol, const char *path); 55 int sdeepunlink(int fdvol, char *path); // fts_open won't take const char* 57 int szerofile(int fdvol, const char *path); 59 int sdeepmkdir(int fdvol, const char *path, mode_t mode);
|
/macosx-10.9.5/postfix-252/postfix/src/global/ |
H A D | mail_trigger.c | 74 char *path; local 81 path = mail_pathname(class, service); 82 if ((status = stat(path, &st)) < 0) { 83 msg_warn("unable to look up %s: %m", path); 85 status = fifo_trigger(path, req_buf, req_len, var_trigger_timeout); 87 status = LOCAL_TRIGGER(path, req_buf, req_len, var_trigger_timeout); 89 status = LOCAL_TRIGGER(path, req_buf, req_len, var_trigger_timeout); 91 msg_warn("%s is not a socket or a fifo", path); 94 myfree(path);
|
/macosx-10.9.5/pyobjc-42/2.5/pyobjc/pyobjc-core/Lib/objc/ |
H A D | _dyld.py | 17 os.path.expanduser(u"~/Library/Frameworks"), 24 os.path.expanduser(u"~/lib"), 41 for path in iterator: 42 if path.endswith(u'.dylib'): 43 yield path[:-6] + suffix + u'.dylib' 45 yield path + suffix 46 yield path 58 for path in spath.split(u':'): 60 yield os.path.join( 61 path, framework_nam [all...] |
/macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-core/Lib/objc/ |
H A D | _dyld.py | 17 os.path.expanduser(u"~/Library/Frameworks"), 24 os.path.expanduser(u"~/lib"), 41 for path in iterator: 42 if path.endswith(u'.dylib'): 43 yield path[:-6] + suffix + u'.dylib' 45 yield path + suffix 46 yield path 58 for path in spath.split(u':'): 60 yield os.path.join( 61 path, framework_nam [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/mk4tcl/metakit/python/test/ |
H A D | all.py | 9 def canonicalPath(path): 10 """Do everything but resolve symbolic links to create an absolute path.""" 11 return os.path.abspath(os.path.expanduser(os.path.expandvars(path))) 19 testdir = os.path.dirname(file) or os.curdir 26 sys.path.insert(0, os.path.dirname(testdir)) 32 sys.path [all...] |
/macosx-10.9.5/ruby-104/ruby/ext/tk/lib/tkextlib/iwidgets/ |
H A D | optionmenu.rb | 28 tk_call(@path, 'delete', first, last) 30 tk_call(@path, 'delete', first) 36 tk_call(@path, 'disable', idx) 41 tk_call(@path, 'enable', idx) 47 simplelist(tk_call(@path, 'get', first, last)) 49 tk_call(@path, 'get', first) 51 tk_call(@path, 'get') 62 number(tk_call(@path, 'index', idx)) 66 tk_call(@path, 'insert', idx, *args) 71 tk_call(@path, 'selec [all...] |
/macosx-10.9.5/postfix-252/postfix/src/util/ |
H A D | sane_basename.c | 9 /* char *sane_basename(buf, path) 11 /* const char *path; 13 /* char *sane_dirname(buf, path) 15 /* const char *path; 41 /* .IP path 69 char *sane_basename(VSTRING *bp, const char *path) argument 87 if (path == 0 || *path == 0) 94 last = path + strlen(path) 113 sane_dirname(VSTRING *bp, const char *path) argument [all...] |
/macosx-10.9.5/ruby-104/ruby/lib/rubygems/ |
H A D | test_utilities.rb | 40 def find_data(path) 41 if URI === path and "URI::#{path.scheme.upcase}" != path.class.name then 43 "mismatch for scheme #{path.scheme} and class #{path.class}" 46 path = path.to_s 47 @paths << path 48 raise ArgumentError, 'need full URI' unless path [all...] |
/macosx-10.9.5/RubyCocoa-80/RubyCocoa/sample/Scripts/ |
H A D | speak2.rb | 4 path = '/System/Library/Frameworks/ApplicationServices.framework/Frameworks/SpeechSynthesis.framework' 6 unless File.exist?(File.join(path, 'Resources/BridgeSupport/SpeechSynthesis.bridgesupport')) 11 OSX.require_framework(path)
|
/macosx-10.9.5/bash-92/bash-3.2/examples/scripts.noah/ |
H A D | require.bash | 23 # The search path comes from a colon-separated `FPATH' variable. It has no 122 local path="$2" 126 file=$(fpath_search "${feature}" "${path}") && source "${file}" 141 # Usage: fpath_search filename {path ...} 143 # Search $FPATH for `filename' or, if `path' (a list) is specified, search 144 # those directories instead of $FPATH. First the path is searched for an 153 local path="$2" 157 if [ -z "${path}" ]; then path="${FPATH}"; fi 161 set -- ${path} [all...] |
/macosx-10.9.5/ipsec-258.100.1/ipsec-tools/racoon/Sample/Embedded/ |
H A D | racoon.conf | 3 # "path" must be placed before it is used. 5 path include "/etc/racoon" ; 8 path pre_shared_key "/etc/racoon/psk.txt" ; 12 path certificate "/etc/cert" ;
|