/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | tli_wrappers.c | 124 t_open(const char *path, int flags, struct t_info *info) argument 126 return (_tx_open(path, flags, info, TX_TLI_API));
|
H A D | xti_wrappers.c | 140 _xti_open(const char *path, int flags, struct t_info *info) argument 142 return (_tx_open(path, flags, info, TX_XTI_API));
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | proc_arg.c | 48 char *path = alloca(strlen(arg) + strlen(procfs_path) + 9); local 54 (void) strcpy(path, procfs_path); 55 (void) strcat(path, "/"); 56 (void) strcat(path, arg); 58 (void) strcpy(path, arg); 60 (void) strcat(path, "/psinfo"); 66 if ((fd = open64(path, O_RDONLY)) >= 0) { 130 proc_grab_common(const char *arg, const char *path, int oflag, int gflag, argument 183 if ((Pr = Pfgrab_core(fd, path == NULL ? 184 dirname(core) : path, per 243 proc_arg_xgrab(const char *arg, const char *path, int oflag, int gflag, int *perr, const char **lwps) argument [all...] |
/illumos-gate/usr/src/lib/libproc/sparc/ |
H A D | Pisadep.c | 141 char path[64]; local 146 (void) snprintf(path, sizeof (path), "/proc/%d/lwp/%d/gwindows", 149 if (stat64(path, &st) == -1 || st.st_size == 0) 152 if ((fd = open64(path, O_RDONLY)) >= 0) {
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montoya/common/ |
H A D | montoya.c | 77 get_bus_type(char *path, struct io_card *card) argument 83 get_slot_number(char *path, struct io_card *card) argument 85 if (strncmp(path, SATA_DISK_PATH, strlen(SATA_DISK_PATH)) == 0) { 88 } else if (strncmp(path, AMC_PATH, strlen(AMC_PATH)) == 0) { 98 montoya_get_network_instance(char *path) argument 101 if (strncmp(path, NETWORK_1_PATH, strlen(NETWORK_1_PATH)) == 0) { 103 } else if (strncmp(path, NETWORK_0_PATH, strlen(NETWORK_0_PATH)) == 0) { 105 } else if (strncmp(path, NETWORK_3_PATH, strlen(NETWORK_3_PATH)) == 0) { 107 } else if (strncmp(path, NETWORK_2_PATH, strlen(NETWORK_2_PATH)) == 0) { 123 char path[MAXSTRLE local 344 char path[MAXSTRLEN] = ""; local [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/ |
H A D | monza.c | 79 monza_get_bus_type(char *path, struct io_card *card) argument 81 if (strcmp(path, MONZA_NIU) == 0) { 89 monza_get_slot_number(char *path, struct io_card *card) argument 91 if (strcmp(path, MONZA_N2_XAUI0) == 0) { 94 } else if (strcmp(path, MONZA_N2_XAUI1) == 0) { 104 monza_get_network_instance(char *path) argument 107 if (strncmp(path, MONZA_NETWORK_0, strlen(MONZA_NETWORK_0)) == 0) { 109 } else if (strncmp(path, MONZA_NETWORK_1, strlen(MONZA_NETWORK_1)) 112 } else if (strncmp(path, MONZA_NETWORK_2, strlen(MONZA_NETWORK_2)) 115 } else if (strncmp(path, MONZA_ENET_ 150 char path[MAXSTRLEN]; local 381 char path[MAXSTRLEN] = ""; local [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/ |
H A D | erie.c | 71 char path[MAXSTRLEN]; local 80 /* Get the parent node's path - used to determine bus type of child */ 110 if ((err = erie_get_path(nodeh, path, sizeof (path))) 120 slot = erie_get_slot_number(path); 121 erie_get_nac(bus_type, path, slot, name, nac, sizeof (nac)); 135 log_printf("%46s", path); 138 log_printf("%46s", path); 173 char path[MAXSTRLEN] = ""; local 178 /* Get path o 375 erie_get_bus_type(char path[], char bus_type[]) argument 391 erie_get_slot_number(char path[]) argument 405 erie_get_network_instance(char path[]) argument 427 erie_get_path(picl_nodehdl_t nodeh, char path[], int size) argument 493 erie_get_nac(char bus_type[], char path[], int slot, char name[], char nac[], int size) argument [all...] |
H A D | ontario.c | 81 get_bus_type(char *path, struct io_card *card) argument 83 if (strncmp(path, PCIX_SLOT0, PCIX_COMP_NUM) == 0) { 91 get_slot_number(picl_nodehdl_t nodeh, char *path, struct io_card *card) argument 93 if (strncmp(path, PCIE_SLOT0, PCIE_COMP_NUM) == 0) { 96 } else if (strncmp(path, PCIE_SLOT1, PCIE_COMP_NUM) == 0) { 99 } else if (strncmp(path, PCIE_SLOT2, PCIE_COMP_NUM) == 0) { 102 } else if ((strncmp(path, PCIX_SLOT1, strlen(PCIX_SLOT1)) == 0) || 103 (strncmp(path, PCIX_SLOT0, strlen(PCIX_SLOT0)) == 0)) { 111 * PCIX_SLOT0 and PCIX_SLOT1 are actually the same path so 132 ontario_get_network_instance(char *path) argument 155 char path[MAXSTRLEN]; local 409 char path[MAXSTRLEN] = ""; local [all...] |
H A D | stpaul.c | 58 static void get_bus_type(char *path, struct io_card *card); 59 static void get_slot_number(char *path, struct io_card *card); 60 static int stpaul_get_network_instance(char *path); 61 static int stpaul_get_usb_instance(char *path); 62 static int stpaul_get_io_instance(char *path, char *type); 74 char path[MAXSTRLEN]; local 114 path, sizeof (path)); 118 (void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes)); 120 get_bus_type(path, 251 char path[MAXSTRLEN]; local 369 get_bus_type(char *path, struct io_card *card) argument 389 get_slot_number(char *path, struct io_card *card) argument 411 stpaul_get_network_instance(char *path) argument 424 stpaul_get_usb_instance(char *path) argument 437 stpaul_get_io_instance(char *path, char *type) argument [all...] |
/illumos-gate/usr/src/lib/libreparse/common/ |
H A D | fs_reparse_lib.c | 60 * Create a symlink at the specified 'path' as a reparse point. 61 * This function will fail if path refers to an existing file system 62 * object or an object named string already exists at the given path. 67 reparse_create(const char *path, const char *data) argument 72 if (path == NULL || data == NULL) 79 if (lstat(path, &sbuf) == 0) 82 return (symlink(data, path) ? errno : 0); 174 * a reparse point does not exist at the given path or the pathname 180 reparse_delete(const char *path) argument 184 if (path 307 char isa[MAXISALEN], dirpath[MAXPATHLEN], path[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | _open.c | 70 open_com(char *path, int flags, int mode) argument 94 /* change path from ..../lib/locale/.... to ..../lib/oldlocale/.... XXX */ 96 if ((loct = (char *)_strstr(path, loc)) != NULL) { /* /lib/locale ? */ 97 char locbuf[MAXPATHLEN+100]; /* to hold new locale path */ 99 pathl = strlen(path); 101 (void) strncpy(locbuf, path, inspt); /* copy path upto lib */ 104 strcat(locbuf, loct+5); /* add remainer of path */ 108 if (strcmp(path, "/etc/mtab") == 0) 111 if (strcmp(path, "/et [all...] |
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_cron.c | 284 char *path, 306 if (path != NULL) { 307 if (strlen(path) + strlen(fname) + 2 > PATH_MAX) { 311 (void) strcat(strcat(strcpy(full_path, path), "/"), 440 audit_cron_create_anc_file(char *name, char *path, char *uname, uid_t uid) argument 454 if (path != NULL) { 455 if (strlen(path) + strlen(name) + 2 > PATH_MAX) 457 (void) strcat(strcat(strcpy(full_path, path), "/"), name); 505 audit_cron_delete_anc_file(char *name, char *path) argument 514 if (path ! 282 audit_cron_session( char *name, char *path, uid_t uid, gid_t gid, char *at_jobname) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nlspath_checks.c | 85 nls_safe_open(const char *path, struct stat64 *statbuf, int *trust, int safe) argument 101 fd = open(path, O_RDONLY); 113 * when specified as full path or when NLSPATH is known to 117 * Don't trust these files even if the path is correct. 123 * if the path is absolute and does not contain "/../", 126 if (*path == '/' && strstr(path, "/../") == NULL) { 129 * if the path belongs to the trusted system directory, 133 if (strncmp(p->dir, path, p->dirlen) == 0) { 194 * if the path doe [all...] |
/illumos-gate/usr/src/lib/libc/port/regex/ |
H A D | wordexp.c | 102 const char *path = "/usr/bin/ksh93"; local 238 * explicitly to /usr/no/such/path/element/)). 241 "export PATH=/usr/no/such/path/element/ ; " 248 args[i++] = strrchr(path, '/') + 1; 290 error = posix_spawn(&pid, path, &fact, &attr,
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | pos4obj.c | 58 __open_nc(const char *path, int oflag, mode_t mode) argument 65 * Ensure path is not a symlink to somewhere else. This provides 68 if (lstat64(path, &statbuf) == 0) { 76 val = open64(path, oflag, mode); 126 __pos4obj_name(const char *path, const char *type) argument 136 * If the path is path_max - strlen(type) characters or less, 137 * the name of the file to use will be the path prefixed by 140 * In the special case where the path is longer than 142 * MD5 hash of the path. We prefix that string with a '.' to 146 * directory, the filename will be the path o 400 __pos4obj_unlock(const char *path, const char *type) argument 409 __pos4obj_clean(char *path) argument 454 __pos4obj_check(const char *path) argument [all...] |
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | chgrp.c | 150 lchown(const char* path, uid_t uid, gid_t gid) argument
|
H A D | cksum.c | 74 " mode, user and group between the checksum and path. User and group" 76 " specified then the mode, user and group for each path in \afile\a" 145 * open path for read mode 149 openfile(const char* path, const char* mode) argument 153 if (!path || streq(path, "-") || streq(path, "/dev/stdin") || streq(path, "/dev/fd/0")) 158 else if (!(sp = sfopen(NiL, path, mode))) 159 error(ERROR_SYSTEM|2, "%s: cannot read", path); [all...] |
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | expreserve.c | 361 unsigned char path[PATH_MAX+1]; local 364 strcpy(path, dir); 365 strcat(path, cp); 366 dcp = path + strlen(path) - 1; 387 } while (((fd = open(path, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0) && 390 strcpy(cp, path + strlen(dir));
|
/illumos-gate/usr/src/cmd/vntsd/ |
H A D | common.c | 170 char *path; local 173 path = calloc(sz, 1); 175 if (path == NULL) { 179 (void) snprintf(path, sz-1, VCC_DEVICE_PATH, dev_name); 182 drvfd = open(path, O_RDWR); 197 free(path); 201 free(path);
|
H A D | vntsd.c | 329 char *path; local 453 path = calloc(sz, 1); 454 if (path == NULL) { 455 vntsd_log(VNTSD_ERR_NO_MEM, "main(): alloc dev path"); 458 (void) snprintf(path, sz-1, VCC_DEVICE_CTL_PATH, vntsdp->devinst, 460 vntsdp->ctrl_fd = open(path, O_RDWR); 466 path); 471 free(path);
|
/illumos-gate/usr/src/cmd/who/ |
H A D | who.c | 165 * Strip off path name of this command 483 char path[sizeof (utmpp->ut_line) + 6]; local 549 (void) strcpy(path, "/dev/"); 550 (void) strncpy(path + 5, utmpp->ut_line, 552 path[5 + sizeof (utmpp->ut_line)] = '\0'; 554 if ((rc = stat(path, stbufp)) == -1) w = '?'; 575 (void) strcpy(path, "/dev/"); 576 (void) strncpy(path + 5, utmpp->ut_line, 578 path[5 + sizeof (utmpp->ut_line)] = '\0'; 579 rc = stat(path, stbuf [all...] |
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | ypxfrd_server.c | 126 char path[MAXNAMLEN + 1]; local 142 * Build up path name. If we are working in N2L mode also conv 145 * Do not allow any path as a domain name or map name. 149 (!ypmkfilename(argp->domain, argp->map, (char *)&path))) { 172 m.map = (map_ctrl *)shim_dbm_open(path, 0, 0); 174 perror(path);
|
/illumos-gate/usr/src/cmd/zinject/ |
H A D | translate.c | 83 * Given a full path to a file, translate into a dataset name and a relative 84 * path within the dataset. 'dataset' must be at least MAXNAMELEN characters, 102 "path\n", fullpath); 138 (void) fprintf(stderr, "invalid path '%s': not a ZFS " 144 (void) fprintf(stderr, "invalid path '%s': mountpoint " 145 "doesn't match path\n", fullpath); 160 * Convert from a (dataset, path) pair into a (objset, object) pair. Note that 166 object_from_path(const char *dataset, const char *path, struct stat64 *statbuf, argument 335 char path[MAXPATHLEN]; local 380 * Convert a full path int [all...] |
/illumos-gate/usr/src/head/ |
H A D | pkgstrct.h | 85 char *path; member in struct:cfent
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_support/ |
H A D | s10_support.c | 67 * DELETE_LIST_PATH represents the path to a solaris10-branded zone's "delete 209 s10_err(gettext("error formating pkg path")); 260 s10_err(gettext("error getting zone's path")); 268 s10_err(gettext("error formating file path")); 338 char path[MAXPATHLEN]; local 352 s10_err(gettext("error getting zone's path")); 353 if (snprintf(path, sizeof (path), "%s" S10_REQ_EMULATION_DIR, 354 zoneroot) >= sizeof (path)) 355 s10_err(gettext("zone's emulation versioning directory's path " [all...] |