Searched defs:logname (Results 1 - 25 of 33) sorted by relevance

12

/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/
H A Dzfs_acl_chmod_rwx_003_pos.ksh62 function logname #node acl_spec user function
88 log=$(logname $node $acl_spec $ZFS_ACL_CUR_USER)
92 log=$(logname $node $acl_spec $g_usr)
96 log=$(logname $node $acl_spec $o_usr)
H A Dzfs_acl_chmod_delete_001_pos.ksh130 function logname #acl_parent acl_target user function
177 log=$(logname "$acl_parent" $acl_target $ZFS_ACL_CUR_USER)
181 log=$(logname "$acl_parent" $acl_target $g_usr)
185 log=$(logname "$acl_parent" $acl_target $o_usr)
190 log=$(logname "$acl_parent" $acl_target $user)
H A Dzfs_acl_chmod_xattr_001_pos.ksh108 function logname #acl_target user function
132 log=$(logname $acl_target $ZFS_ACL_CUR_USER)
136 log=$(logname $acl_target $g_usr)
140 log=$(logname $acl_target $o_usr)
H A Dzfs_acl_chmod_xattr_002_pos.ksh100 function logname #acl_target owner user function
126 log=$(logname $acl_target $owner $ZFS_ACL_CUR_USER)
130 log=$(logname $acl_target $owner $g_usr)
134 log=$(logname $acl_target $owner $o_usr)
H A Dzfs_acl_chmod_owner_001_pos.ksh187 function logname function
224 log=$(logname $acl_target $user \
238 log=$(logname $acl_target $g_usr $old_owner \
252 log=$(logname $acl_target $o_usr $old_owner \
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dgetname.c33 * getname(name) -- get logname
35 * getname tries to find the user's logname from:
39 * The logname is returned as the value of the function.
66 static char *logname = 0; local
69 if (logname)
70 return (logname);
87 logname = Strdup(l);
90 logname = Malloc(10 + 1);
91 if (logname)
92 sprintf (logname, "
[all...]
/illumos-gate/usr/src/lib/libcmd/common/
H A Dlogname.c26 * logname
30 "[-?\n@(#)$Id: logname (AT&T Research) 1999-04-30 $\n]"
32 "[+NAME?logname - return the user's login name]"
55 register char* logname; local
73 if (!(logname = getlogin()))
74 logname = fmtuid(getuid());
75 sfputr(sfstdout, logname, '\n');
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dsend.c61 #define logname "/dev/conslog" macro
91 tfd = open(logname, O_WRONLY);
/illumos-gate/usr/src/cmd/bnu/
H A Dunknown.c56 char buf[LOGLEN], *ctoday, *logname, tmpbuf[MAXBASENAME+1]; local
73 logname = cuserid((char *) NULL);
77 ctoday, tmpbuf, (logname == NULL ? "<unknown>" : logname));
/illumos-gate/usr/src/cmd/oamuser/user/
H A Duserdel.c62 static char *logname; /* login name to delete */ variable
112 logname = argv[optind];
115 pstruct = getpwnam(logname);
126 if (strcmp(pstruct->pw_name, logname) == 0)
133 errmsg(M_EXIST, logname);
137 if (isbusy(logname)) {
138 errmsg(M_BUSY, logname, "remove");
149 nargv[argindex++] = logname;
165 errmsg(M_NO_PERM, logname, pstruct->pw_dir);
170 if (rm_files(pstruct->pw_dir, logname, zfs_flag
[all...]
H A Duseradd.c103 static char *logname; /* login name to add */ variable
412 logname = argv[optind];
413 switch (valid_login(logname, (struct passwd **)NULL, &warning)) {
415 errmsg(M_INVALID, logname, "login name");
420 errmsg(M_USED, logname);
425 errmsg(M_TOO_LONG, logname);
431 warningmsg(warning, logname);
512 (void) sprintf(homedir, "%s/%s", base_dir, logname);
528 errmsg(M_NO_PERM, logname, homedir);
619 nargv[argindex++] = logname;
[all...]
H A Dusermod.c100 static char *logname = NULL; /* login name to add */ variable
293 logname = argv[optind];
296 if ((ua = getusernam(logname)) == NULL ||
327 pw = getpwnam(logname);
338 if (strcmp(pw->pw_name, logname) == 0)
348 if (getpwnam_r(logname, &pwd, pwdb, sizeof (pwdb)) == NULL) {
350 errmsg(M_EXIST, logname);
354 errmsg(M_NONLOCAL, logname);
372 if (isbusy(logname)) {
374 errmsg(M_BUSY, logname, "chang
[all...]
/illumos-gate/usr/src/cmd/streams/log/
H A Dstrclean.c64 char *logname; local
66 logname = LOGDEFAULT;
76 logname = optarg;
102 if ((stat(logname, &stbuf) < 0) || !(stbuf.st_mode & DIRECTORY)) {
103 fprintf(stderr, "strclean: %s not a directory\n", logname);
107 if (access(logname, ACCESS) < 0) {
109 logname);
132 strcpy(prefix, logname);
135 ftw(logname, clean, 1);
H A Dstrerr.c114 char *logname; local
126 logname = LOGDEFAULT;
127 if (stat(logname, &stbuf) < 0 || !(stbuf.st_mode & DIRECTORY)) {
128 fprintf(stderr, "ERROR: %s not a directory\n", logname);
132 if (access(logname, ACCESS) < 0) {
134 logname);
/illumos-gate/usr/src/cmd/newgrp/
H A Dnewgrp.c68 char *logname; variable
160 if ((logname = (char *)malloc(len)) == NULL)
162 (void) snprintf(logname, len, "LOGNAME=%s", name);
165 envinit[2] = logname;
/illumos-gate/usr/src/lib/efcode/engine/
H A Dlog.c267 open_syslog_log(char *logname, int logflags) argument
269 openlog(logname, LOG_PID, LOG_DAEMON);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dsyslog.c53 static char *logname = "/dev/log"; variable
252 (void) strncpy(SyslogAddr.sa_data, logname,
/illumos-gate/usr/src/cmd/cron/
H A Dcron.h71 char logname[LLEN]; member in struct:message
/illumos-gate/usr/src/lib/krb5/kdb/
H A Dkdb_log.c535 char logname[MAX_FILENAME]; local
546 if (strlcpy(logname, params->dbname, MAX_FILENAME) >= MAX_FILENAME)
548 if (strlcat(logname, ".ulog", MAX_FILENAME) >= MAX_FILENAME)
551 if (stat(logname, &st) == -1) {
560 if ((ulogfd = open(logname, O_RDWR+O_CREAT, 0600)) == -1) {
581 if ((ulogfd = open(logname, O_RDWR, 0600)) == -1) {
/illumos-gate/usr/src/cmd/logadm/
H A Dkw.c84 static char *logname; local
155 if ((logname = getenv("LOGNAME")) != NULL)
156 Keywords = lut_add(Keywords, "logname", STRDUP(logname));
H A Dmain.c102 * with any of these options unless at least one logname is also provided.
110 " or: logadm [options] logname...\n"\
120 " -r remove logname entry from conffile\n"\
343 usage("some options require logname argument");
350 /* foreach logname... */
357 "main: logname already done: <%s>\n",
362 err(EF_FILE, "bailing out on logname \"%s\" "
445 /* main logname processing */
449 const char *logname = fn_s(fnp); local
457 cfopts = conf_opts(logname);
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Deventlog_log.c311 logr_syslog_snapshot(char *logname, logr_info_t *loginfo) argument
317 if ((loginfo == NULL) || (!logr_is_supported(logname)))
322 if (strcasecmp(logname, logr_eventlog[i].el_name) == 0)
H A Deventlog_svc.c233 logr_hdalloc(ndr_xa_t *mxa, char *logname) argument
241 ctx->lc_source_name = strdup(logname);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsyslog.c99 #define logname "/dev/conslog" macro
448 LogFile = open(logname, O_WRONLY);
/illumos-gate/usr/src/lib/libshell/common/edit/
H A Dhistory.c130 static char *logname; variable
148 logname = strdup(cp);
816 timechars = sfprintf(staksp, "\t%s\t%x\n",logname,time(NIL(long *)));

Completed in 158 milliseconds

12