Searched refs:pwd (Results 201 - 225 of 454) sorted by relevance

1234567891011>>

/freebsd-current/bin/sh/
H A Dexec.c709 const char *pwd; local
711 if (*name != '/' && (pwd = lookupvar("PWD")) != NULL && *pwd != '\0') {
712 out1str(pwd);
713 if (strcmp(pwd, "/") != 0)
/freebsd-current/usr.sbin/quot/
H A Dquot.c47 #include <pwd.h>
280 struct passwd *pwd; local
288 if (!(pwd = getpwuid(uid))) {
293 malloc(strlen(pwd->pw_name) + 1)))
294 strcpy(usr->name,pwd->pw_name);
/freebsd-current/contrib/unbound/daemon/
H A Dunbound.c65 #include <pwd.h>
475 struct passwd *pwd = NULL; local
478 if((pwd = getpwnam(cfg->username)) == NULL)
480 /* endpwent below, in case we need pwd for setusercontext */
580 if(setusercontext(NULL, pwd, cfg_uid, (unsigned)
585 (void)pwd;
/freebsd-current/contrib/libarchive/test_utils/
H A Dtest_main.c3674 char *buff, *tried, *pwd = NULL, *p = NULL; local
3697 pwd = NULL;
3708 pwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */
3710 pwd = getcwd(NULL, 0);
3712 while (pwd[strlen(pwd) - 1] == '\n')
3713 pwd[strlen(pwd) - 1] = '\0';
3716 snprintf(buff, buff_size, "%s", pwd);
3722 snprintf(buff, buff_size, "%s/test", pwd);
3898 char *pwd, *testprogdir, *tmp2 = NULL, *vlevel = NULL; local
[all...]
/freebsd-current/usr.sbin/inetd/
H A Dinetd.c121 #include <pwd.h>
320 struct passwd *pwd; local
793 if ((pwd = getpwnam(sep->se_user)) == NULL) {
815 pwd->pw_gid = grp->gr_gid;
835 if (setusercontext(lc, pwd, pwd->pw_uid,
845 if (pwd->pw_uid) {
852 if (setgid(pwd->pw_gid) < 0) {
855 sep->se_service, pwd->pw_gid);
858 (void) initgroups(pwd
[all...]
/freebsd-current/lib/libc/gen/
H A Dglob-compat11.c49 #include <pwd.h>
386 struct passwd *pwd; local
422 (pwd = getpwnam(h)) != NULL) ||
423 (pwd = getpwuid(getuid())) != NULL)
424 h = pwd->pw_dir;
435 if ((pwd = getpwnam((char *)wbuf)) == NULL)
438 h = pwd->pw_dir;
H A Dglob.c83 #include <pwd.h>
418 struct passwd *pwd; local
454 (pwd = getpwnam(h)) != NULL) ||
455 (pwd = getpwuid(getuid())) != NULL)
456 h = pwd->pw_dir;
467 if ((pwd = getpwnam((char *)wbuf)) == NULL)
470 h = pwd->pw_dir;
H A Dreadpassphrase.c29 #include <pwd.h>
/freebsd-current/contrib/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc35 #include <pwd.h>
372 const char *pwd = ::getenv("PWD");
374 if (pwd && llvm::sys::path::is_absolute(pwd) &&
375 !llvm::sys::fs::status(pwd, PWDStatus) &&
378 result.append(pwd, pwd + strlen(pwd));
/freebsd-current/contrib/kyua/utils/
H A Dpasswd_test.cpp34 #include <pwd.h>
/freebsd-current/contrib/capsicum-test/
H A Dcapsicum-test-main.cc11 #include <pwd.h>
/freebsd-current/crypto/openssh/regress/
H A Dcheck-perm.c17 #include <pwd.h>
/freebsd-current/contrib/smbfs/lib/smb/
H A Dctx.c46 #include <pwd.h>
70 struct passwd *pwd; local
100 if ((pwd = getpwuid(euid)) != NULL) {
101 smb_ctx_setuser(ctx, pwd->pw_name);
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/
H A Dt_revoke.c40 #include <pwd.h>
/freebsd-current/crypto/heimdal/appl/ftp/ftp/
H A Dcmdtab.c163 { "pwd", pwdhelp, 0, 1, 1, pwd },
/freebsd-current/crypto/heimdal/appl/afsutil/
H A Dpagsh.c52 #include <pwd.h>
/freebsd-current/contrib/openbsm/bin/auditdistd/
H A Dsandbox.c41 #include <pwd.h>
/freebsd-current/crypto/openssh/
H A Duidswap.c18 #include <pwd.h>
H A Dsshpty.c28 #include <pwd.h>
H A Dlogintest.c42 #include <pwd.h>
H A Dauth-passwd.c43 #include <pwd.h>
/freebsd-current/contrib/llvm-project/lldb/source/Host/posix/
H A DHostInfoPosix.cpp23 #include <pwd.h>
/freebsd-current/libexec/rpc.rwalld/
H A Drwalld.c34 #include <pwd.h>
/freebsd-current/libexec/mknetid/
H A Dmknetid.c50 #include <pwd.h>
/freebsd-current/lib/libc/posix1e/
H A Dacl_from_text.c38 #include <pwd.h>

Completed in 325 milliseconds

1234567891011>>