Home
last modified time | relevance | path

Searched refs:getuid (Results 1 – 25 of 34) sorted by relevance

12

/haiku/src/kits/app/
H A DLaunchRoster.cpp43 status_t status = request.AddInt32("user", getuid()); in RegisterSessionDaemon()
101 status = request.AddInt32("user", getuid()); in GetData()
155 status_t status = request.AddInt32("user", getuid()); in Target()
176 status_t status = request.AddInt32("user", getuid()); in StopTarget()
195 status_t status = request.AddInt32("user", getuid()); in Start()
212 status_t status = request.AddInt32("user", getuid()); in Stop()
231 status_t status = request.AddInt32("user", getuid()); in SetEnabled()
250 status_t status = request.AddInt32("user", getuid()); in StartSession()
293 status_t status = request.AddInt32("user", getuid()); in GetTargets()
318 status_t status = request.AddInt32("user", getuid()); in GetJobs()
[all …]
H A DAppMisc.cpp221 request.AddInt32("user", getuid()); in create_desktop_connection()
277 link->Attach<int32>(getuid()); in create_desktop_connection()
/haiku/src/system/libroot/posix/unistd/
H A Dgetlogin.cpp24 pw = getpwuid(getuid()); in getlogin()
39 int status = getpwuid_r(getuid(), &passwdBuffer, passwdStringBuffer, in getlogin_r()
H A Dusergroup.cpp61 getuid(void) in getuid() function
/haiku/src/tests/system/libroot/posix/
H A Dxsi_msg_queue_test1.cpp107 msg_queue.msg_perm.uid = getuid() + 3; in test_msgctl()
122 assert_equals(msg_queue.msg_perm.uid, getuid() + 3); in test_msgctl()
160 msg_queue.msg_perm.uid = getuid() + 3; in test_msgsnd()
H A Dxsi_sem_test1.cpp288 semaphore.sem_perm.uid = getuid() + 3; in test_semctl()
304 assert_equals(args.buf->sem_perm.uid, getuid() + 3); in test_semctl()
/haiku/src/bin/
H A Dautologin.cpp17 if (getuid() != 0) in main()
H A Did.c257 rUID = getuid (); in main()
/haiku/src/add-ons/kernel/drivers/misc/
H A Dmem.c118 if (getuid() != 0 && geteuid() != 0) { in mem_read()
145 if (getuid() != 0 && geteuid() != 0) { in mem_write()
H A Dpoke.cpp102 if (getuid() != 0 && geteuid() != 0) in poke_open()
/haiku/src/bin/pcmcia-cs/
H A Dcardctl.c583 if (getuid() != 0) { in do_scheme()
663 char *s, *opts = (getuid() == 0) ? "Vc:f:s:" : "V"; in main()
711 setuid(getuid()); in main()
735 setuid(getuid()); in main()
746 setuid(getuid()); in main()
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DRPCAuth.cpp65 xdr.AddUInt(getuid()); in CreateSys()
/haiku/src/system/libroot/posix/stdlib/
H A Dmktemp.c133 seed = (getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec; in _gettemp()
/haiku/src/bin/multiuser/
H A Dpasswd.cpp94 uid_t uid = getuid(); in main()
/haiku/src/bin/network/telnet/
H A Dcommands.c2182 setuid(getuid()); in tn()
2231 setuid(getuid()); in tn()
2250 setuid(getuid()); in tn()
2319 setuid(getuid()); in tn()
2367 setuid(getuid()); in tn()
2371 setuid(getuid()); in tn()
2378 setuid(getuid()); in tn()
2480 ((pw = getpwnam(user)) && pw->pw_uid != getuid())) { in tn()
2481 if ((pw = getpwuid(getuid()))) in tn()
/haiku/src/bin/network/ftpd/
H A Dpopen.c147 if (getuid() != geteuid() && setuid(geteuid()) < 0) in ftpd_popen()
/haiku/src/libs/uuid/
H A Dgen_uuid.c89 srand((getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec); in get_random_fd()
/haiku/src/bin/network/ping/
H A Dping6.c423 if (getuid()) { in ping6()
456 if (t < 1 && getuid()) { in ping6()
473 if (getuid()) { in ping6()
760 if (seteuid(getuid()) != 0) in ping6()
762 if (setuid(getuid()) != 0) in ping6()
H A Dping.c267 if (setuid(getuid()) != 0) in ping()
269 uid = getuid(); in ping()
/haiku/src/add-ons/kernel/drivers/pty/
H A Ddriver.cpp412 if (chown(path, getuid(), getgid()) != 0 in pty_ioctl()
/haiku/src/apps/terminal/
H A DShell.cpp404 if (getpwuid_r(getuid(), &passwdStruct, stringBuffer, in _Spawn()
/haiku/headers/posix/
H A Dunistd.h463 extern uid_t getuid(void);
/haiku/src/tools/fs_shell/
H A Dfuse.cpp497 if (getuid() == 0 && geteuid() == 0 && getgid() == 0 && getegid() == 0) { in fssh_fuse_session()
/haiku/src/system/libroot/posix/
H A Dspawn.cpp428 if (seteuid(getuid()) != 0) in process_spawnattr()
/haiku/src/system/kernel/posix/
H A Dxsi_message_queue.cpp545 if (msg.msg_qbytes > messageQueue->MaxBytes() && getuid() != 0) { in _user_xsi_msgctl()

12