/haiku-fatelf/src/add-ons/kernel/network/ppp/shared/libppp/ |
H A D | _libppputils.cpp | 15 char *path; local 17 // user-defined stack driver path? 18 path = getenv("NET_STACK_DRIVER_PATH"); 19 if (path) 20 return path; 22 // use the default stack driver path
|
/haiku-fatelf/src/tools/stubgen/ |
H A D | pathname.h | 36 * path name, basename() returns a pointer to the last element of path. 38 * null byte in the path name after the next to last element, so the 39 * content of path must be disposable. 41 * If path or *path is zero, pointer to a static constant ``.'' is 44 * If path consists entirely of ``/'' characters, the empty string is 47 char * basename(char *path); 51 * file system path name, dirname() returns a string that is the parent 53 * the path nam [all...] |
H A D | pathname.c | 41 strip_trailing_slashes(char *path) argument 43 int last = strlen (path) - 1; 44 while ((last > 0) && (path[last] == PATH_SEPARATOR_CHAR)) 45 path[last--] = '\0'; 49 basename(char *path) argument 53 if ((path == NULL) || (path[0] == '\0')) 56 strip_trailing_slashes(path); 57 if (path[0] == '\0') 60 slash = strrchr(path, PATH_SEPARATOR_CHA 65 dirname(char *path) argument [all...] |
/haiku-fatelf/src/bin/findutils/lib/ |
H A D | nextelem.h | 1 /* Return the next element of a path. 24 char *next_element (const char *path, int curdir_ok);
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/fs_shell/ |
H A D | path_util.cpp | 14 get_last_path_component(const char *path, char *buffer, int bufferLen) argument 16 int len = strlen(path); 21 while (len > 0 && path[len - 1] == '/') 25 // path is `/' 30 while (pos > 0 && path[pos] != '/') 32 if (path[pos] == '/') 35 path += pos; 42 memcpy(buffer, path, len); 56 // allocate the path 57 char *path local [all...] |
/haiku-fatelf/src/tools/fs_shell/ |
H A D | path_util.cpp | 18 get_last_path_component(const char *path, char *buffer, int bufferLen) argument 20 int len = strlen(path); 25 while (len > 0 && path[len - 1] == '/') 29 // path is `/' 34 while (pos > 0 && path[pos] != '/') 36 if (path[pos] == '/') 39 path += pos; 46 memcpy(buffer, path, len); 60 // allocate the path 61 char *path local [all...] |
/haiku-fatelf/src/documentation/docbook-xsl/slides/browser/ |
H A D | xbLibrary.js | 55 function xbLibrary(path) 57 if (path.charAt(path.length-1) == '/') 59 path = path.substr(0, path.length-1) 61 this.path = path; 73 document.write('<script language="javascript" src="' + this.path + '/' + scriptName + '"><\/script>');
|
/haiku-fatelf/src/tests/kits/storage/ |
H A D | PathTest.cpp | 57 BPath path; local 58 CPPUNIT_ASSERT( path.InitCheck() == B_NO_INIT ); 59 CPPUNIT_ASSERT( path.Path() == NULL ); 63 // absolute existing path (root dir), no leaf, no normalization 67 BPath path(pathName); 68 CPPUNIT_ASSERT( path.InitCheck() == B_OK ); 69 CPPUNIT_ASSERT( string(pathName) == path.Path() ); 71 // absolute existing path, no leaf, no normalization 75 BPath path(pathName); 76 CPPUNIT_ASSERT( path 531 BPath path; local 992 BPath path; local 1042 BPath path; local 1075 BPath path; local 1142 BPath path; local 1234 BPath path; local 1253 BPath path; local 1261 BPath path; local 1303 BPath path; local [all...] |
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/AuthLib/ |
H A D | besure_auth.c | 100 char path[B_PATH_NAME_LENGTH]; local 106 find_directory(B_COMMON_SYSTEM_DIRECTORY, 0, false, path, sizeof(path)); 107 strcat(path, "/domains/default/users/"); 108 strcat(path, user); 113 SetKeyValue(path, "Password", password); 114 SetKeyInt(path, "Flags", 0); 115 SetKeyValue(path, "Home", "/boot/home"); 116 SetKeyValue(path, "Group", "everyone"); 117 SetKeyInt(path, "UI 128 char path[B_PATH_NAME_LENGTH]; local 154 char path[B_PATH_NAME_LENGTH], groupPath[B_PATH_NAME_LENGTH]; local 191 char path[B_PATH_NAME_LENGTH]; local 206 char path[B_PATH_NAME_LENGTH]; local 218 char path[B_PATH_NAME_LENGTH]; local 230 char path[B_PATH_NAME_LENGTH], code[35]; local 245 char path[B_PATH_NAME_LENGTH]; local 257 char path[B_PATH_NAME_LENGTH]; local 269 char path[B_PATH_NAME_LENGTH]; local 281 char path[B_PATH_NAME_LENGTH]; local 296 char path[B_PATH_NAME_LENGTH]; local 309 char path[B_PATH_NAME_LENGTH]; local 321 char path[B_PATH_NAME_LENGTH]; local 333 char path[B_PATH_NAME_LENGTH]; local 345 char path[B_PATH_NAME_LENGTH]; local 357 char path[B_PATH_NAME_LENGTH]; local 371 char path[B_PATH_NAME_LENGTH]; local 383 char path[B_PATH_NAME_LENGTH]; local 395 char path[B_PATH_NAME_LENGTH]; local 442 char path[B_PATH_NAME_LENGTH]; local 472 char path[B_PATH_NAME_LENGTH]; local 508 char path[B_PATH_NAME_LENGTH]; local 544 char path[B_PATH_NAME_LENGTH]; local 581 char path[B_PATH_NAME_LENGTH]; local 597 char path[B_PATH_NAME_LENGTH]; local [all...] |
/haiku-fatelf/src/build/libroot/ |
H A D | find_directory.cpp | 28 create_path(const char *path, mode_t mode) argument 34 if (path == NULL || ((pathLength = strlen(path)) > B_PATH_NAME_LENGTH)) 38 const char *slash = strchr(&path[i], '/'); 43 else if (i != slash - path) 44 i = slash - path; 48 strlcpy(buffer, path, i + 1); 65 const char* path; local 68 path = HAIKU_BUILD_GENERATED_DIRECTORY "/tmp"; 71 path [all...] |
H A D | remapped_functions.h | 13 int _haiku_build_fchmodat(int fd, const char* path, mode_t mode, int flag); 15 int _haiku_build_fstatat(int fd, const char* path, struct stat* st, 17 int _haiku_build_mkdirat(int fd, const char* path, mode_t mode); 18 int _haiku_build_mkfifoat(int fd, const char* path, mode_t mode); 19 int _haiku_build_utimensat(int fd, const char* path, 22 int _haiku_build_faccessat(int fd, const char* path, int accessMode, 29 const char* path, int flag); 30 int _haiku_build_unlinkat(int fd, const char* path, int flag); 31 ssize_t _haiku_build_readlinkat(int fd, const char* path, char* buffer, 37 int _haiku_build_fchownat(int fd, const char* path, uid_ [all...] |
/haiku-fatelf/src/system/libroot/posix/sys/ |
H A D | mkfifo.c | 16 mkfifo(const char *path, mode_t mode) argument 18 RETURN_AND_SET_ERRNO(_kern_create_fifo(-1, path, mode)); 23 mkfifoat(int fd, const char *path, mode_t mode) argument 25 RETURN_AND_SET_ERRNO(_kern_create_fifo(fd, path, mode));
|
/haiku-fatelf/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | device_manager.cpp | 16 devfs_unpublish_partition(const char *path) argument 18 printf("unpublish partition: %s\n", path); 24 devfs_publish_partition(const char *path, const partition_info *info) argument 29 printf("publish partition: %s (device \"%s\", size %Ld)\n", path, info->device, info->size);
|
/haiku-fatelf/src/apps/debugger/user_interface/cli/ |
H A D | CliDebugReportCommand.cpp | 31 BPath path; local 33 path.SetTo(argv[1]); 34 if (path.InitCheck() != B_OK) { 35 printf("Invalid report path %s given.\n", argv[1]); 41 find_directory(B_DESKTOP_DIRECTORY, &path); 42 path.Append(buffer); 46 if (get_ref_for_path(path.Path(), &ref) == B_OK) { 47 printf("Saving debug information report to %s...\n", path.Path());
|
/haiku-fatelf/src/bin/diffutils/lib/ |
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));
|
/haiku-fatelf/src/system/libroot/posix/stdlib/ |
H A D | mktemp.c | 55 mkstemps(char *path, int slen) 58 return _gettemp(path, &fd, 0, slen) ? fd : -1; 64 mkstemp(char *path) argument 67 if (_gettemp(path, &fd, 0, 0)) 75 mkdtemp(path) 76 char *path; 78 return (_gettemp(path, (int *)NULL, 1, 0) ? path : (char *)NULL); 83 mktemp(char *path) argument 85 if (_gettemp(path, (in 93 _gettemp(char *path, int *doopen, int domkdir, int slen) argument [all...] |
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | eaccess.c | 62 path_is_devfd (path) 63 const char *path; 65 if (path[0] == '/' && path[1] == 'd' && strncmp (path, "/dev/fd/", 8) == 0) 67 else if (STREQN (path, "/dev/std", 8)) 69 if (STREQ (path+8, "in") || STREQ (path+8, "out") || STREQ (path+8, "err")) 81 sh_stat (path, finf [all...] |
/haiku-fatelf/src/apps/debugger/types/ |
H A D | ArrayIndexPath.cpp | 35 ArrayIndexPath::SetTo(const char* path) argument 39 if (path == NULL) 42 while (*path != '\0') { 44 int64 index = strtoll(path, &numberEnd, 0); 45 if (numberEnd == path) 47 path = numberEnd; 52 if (*path == '\0') 55 if (*path != kIndexSeparator) 57 path++; 72 ArrayIndexPath::GetPathString(BString& path) cons [all...] |
/haiku-fatelf/src/libs/icon/shape/ |
H A D | PathContainer.cpp | 51 PathContainer::AddPath(VectorPath* path) argument 53 return AddPath(path, CountPaths()); 58 PathContainer::AddPath(VectorPath* path, int32 index) argument 60 if (!path) 63 // prevent adding the same path twice 64 if (HasPath(path)) 67 if (fPaths.AddItem((void*)path, index)) { 69 _NotifyPathAdded(path, index); 80 PathContainer::RemovePath(VectorPath* path) argument 82 if (fPaths.RemoveItem((void*)path)) { 96 VectorPath* path = (VectorPath*)fPaths.RemoveItem(index); local 178 VectorPath* path = PathAtFast(i); local 196 _NotifyPathAdded(VectorPath* path, int32 index) const argument [all...] |
/haiku-fatelf/src/libs/ncurses/ncurses/tinfo/ |
H A D | access.c | 42 _nc_rootname(char *path) argument 44 char *result = _nc_basename(path); 71 _nc_pathlast(const char *path) argument 73 const char *test = strrchr(path, '/'); 76 test = strrchr(path, '\\'); 79 test = path; 82 return (test - path); 86 _nc_basename(char *path) argument 88 return path + _nc_pathlast(path); 92 _nc_access(const char *path, int mode) argument [all...] |
/haiku-fatelf/src/servers/input/ |
H A D | PathList.cpp | 22 path = strdup(_path); 27 free((char*)path); 30 const char* path; member in struct:PathList::path_entry 48 PathList::HasPath(const char* path, int32* _index) const argument 51 if (!strcmp(fPaths.ItemAt(i)->path, path)) { 63 PathList::AddPath(const char* path) argument 65 if (path == NULL) 69 if (HasPath(path, &index)) { 74 path_entry* entry = new(std::nothrow) path_entry(path); 85 RemovePath(const char* path) argument [all...] |
/haiku-fatelf/headers/private/kernel/fs/ |
H A D | devfs.h | 19 status_t devfs_unpublish_file_device(const char* path); 20 status_t devfs_publish_file_device(const char* path, const char* filePath); 22 status_t devfs_unpublish_partition(const char* path); 27 status_t devfs_unpublish_device(const char* path, bool disconnect); 28 status_t devfs_publish_device(const char* path, device_hooks* calls); 29 status_t devfs_publish_directory(const char* path);
|
/haiku-fatelf/src/tests/kits/storage/testapps/ |
H A D | PathMonitorTest.cpp | 25 Looper(const char* path); 35 Looper::Looper(const char* path) argument 36 : BLooper("path monitor test"), 37 fPath(path) 39 status_t status = BPathMonitor::StartWatching(path, B_WATCH_ALL, this); 41 fprintf(stderr, "Could not watch path \"%s\": %s.\n", path, strerror(status)); 67 create_file(const char* path) argument 69 printf("******* create file %s *******\n", path); 71 status_t status = file.SetTo(path, B_CREATE_FIL 79 remove_file(const char* path) argument 87 create_directory(const char* path) argument 95 remove_directory(const char* path) argument [all...] |
/haiku-fatelf/headers/compatibility/gnu/sys/ |
H A D | xattr.h | 25 ssize_t getxattr(const char* path, const char* attribute, void* buffer, 27 ssize_t lgetxattr(const char* path, const char* attribute, void* buffer, 31 int setxattr(const char* path, const char* attribute, const void* buffer, 33 int lsetxattr(const char* path, const char* attribute, const void* buffer, 38 int removexattr (const char* path, const char* attribute); 39 int lremovexattr (const char* path, const char* attribute); 42 ssize_t listxattr(const char* path, char* buffer, size_t size); 43 ssize_t llistxattr(const char* path, char* buffer, size_t size);
|
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | realpath.h | 15 extern char *ntfs_realpath(const char *path, char *resolved_path); 19 extern char *ntfs_realpath_canonicalize(const char *path, char *resolved_path);
|