/freebsd-10-stable/usr.sbin/pw/ |
H A D | pw_vpw.c | 145 vnextgrent(char const *nam, gid_t gid, int doclose) argument 195 vgetgrgid(gid_t gid) argument
|
/freebsd-10-stable/crypto/openssh/ |
H A D | sshpty.c | 193 gid_t gid; local
|
/freebsd-10-stable/tools/regression/sysvsem/ |
H A D | semtest.c | 282 gid_t gid = getegid(); local
|
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_fchownat.c | 56 static int getuser(uid_t *uid, gid_t *gid) argument 80 gid_t gid; local 108 gid_t gid; local 134 gid_t gid; local 151 gid_t gid; local 172 gid_t gid; local 194 gid_t gid; local 214 gid_t gid; local [all...] |
/freebsd-10-stable/contrib/libarchive/libarchive/ |
H A D | archive_write_disk_set_standard_lookup.c | 100 lookup_gid(void *private_data, const char *gname, int64_t gid) argument [all...] |
H A D | archive_read_disk_set_standard_lookup.c | 247 lookup_gname(void *data, int64_t gid) argument
|
/freebsd-10-stable/bin/getfacl/ |
H A D | getfacl.c | 74 getgname(gid_t gid) argument
|
/freebsd-10-stable/contrib/apr/include/arch/unix/ |
H A D | apr_arch_threadproc.h | 105 apr_gid_t gid; member in struct:apr_procattr_t
|
/freebsd-10-stable/contrib/apr/shmem/unix/ |
H A D | shm.c | 153 apr_gid_t gid; local
|
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/ |
H A D | GDBRemoteCommunicationServer.cpp | 359 assert(packet_len < (int)sizeof(packet)); return SendPacketNoLock (packet, packet_len); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::SendOKResponse () { return SendPacketNoLock (�, 2); } bool GDBRemoteCommunicationServer::HandshakeWithClient(Error *error_ptr) { return GetAck() == PacketResult::Success; } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qHostInfo (StringExtractorGDBRemote &packet) { StreamString response; ArchSpec host_arch (Host::GetArchitecture ()); const llvm::Triple &host_triple = host_arch.GetTriple(); response.PutCString(�); response.PutCStringAsRawHex8(host_triple.getTriple().c_str()); response.Printf (�,host_arch.GetAddressByteSize()); const char* distribution_id = host_arch.GetDistributionId ().AsCString (); if (distribution_id) { response.PutCString(�); response.PutCStringAsRawHex8(distribution_id); response.PutCString(�); } uint32_t cpu = host_arch.GetMachOCPUType(); uint32_t sub = host_arch.GetMachOCPUSubType(); if (cpu != LLDB_INVALID_CPUTYPE) response.Printf (�, cpu); if (sub != LLDB_INVALID_CPUTYPE) response.Printf (�, sub); if (cpu == ArchSpec::kCore_arm_any) response.Printf(�); else response.Printf(�); switch (lldb::endian::InlHostByteOrder()) { case eByteOrderBig: response.PutCString (�); break; case eByteOrderLittle: response.PutCString (�); break; case eByteOrderPDP: response.PutCString (�); break; default: response.PutCString (�); break; } uint32_t major = UINT32_MAX; uint32_t minor = UINT32_MAX; uint32_t update = UINT32_MAX; if (Host::GetOSVersion (major, minor, update)) { if (major != UINT32_MAX) { response.Printf(�, major); if (minor != UINT32_MAX) { response.Printf(�, minor); if (update != UINT32_MAX) response.Printf(�, update); } response.PutChar(�); } } std::string s; if (Host::GetOSBuildString (s)) { response.PutCString (�); response.PutCStringAsRawHex8(s.c_str()); response.PutChar(�); } if (Host::GetOSKernelDescription (s)) { response.PutCString (�); response.PutCStringAsRawHex8(s.c_str()); response.PutChar(�); } response.PutCString (�); response.PutCStringAsRawHex8(�); response.PutChar(�); return SendPacketNoLock (response.GetData(), response.GetSize()); } static void CreateProcessInfoResponse (const ProcessInstanceInfo &proc_info, StreamString &response) { response.Printf (� PRIu64 � PRIu64 �, proc_info.GetProcessID(), proc_info.GetParentProcessID(), proc_info.GetUserID(), proc_info.GetGroupID(), proc_info.GetEffectiveUserID(), proc_info.GetEffectiveGroupID()); response.PutCString (�); response.PutCStringAsRawHex8(proc_info.GetName()); response.PutChar(�); const ArchSpec &proc_arch = proc_info.GetArchitecture(); if (proc_arch.IsValid()) { const llvm::Triple &proc_triple = proc_arch.GetTriple(); response.PutCString(�); response.PutCStringAsRawHex8(proc_triple.getTriple().c_str()); response.PutChar(�); } } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qProcessInfoPID (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); lldb::pid_t pid = packet.GetU32 (LLDB_INVALID_PROCESS_ID); if (pid != LLDB_INVALID_PROCESS_ID) { ProcessInstanceInfo proc_info; if (Host::GetProcessInfo(pid, proc_info)) { StreamString response; CreateProcessInfoResponse (proc_info, response); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (1); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qfProcessInfo (StringExtractorGDBRemote &packet) { m_proc_infos_index = 0; m_proc_infos.Clear(); ProcessInstanceInfoMatch match_info; packet.SetFilePos(::strlen (�)); if (packet.GetChar() == �) { std::string key; std::string value; while (packet.GetNameColonValue(key, value)) { bool success = true; if (key.compare(�) == 0) { StringExtractor extractor; extractor.GetStringRef().swap(value); extractor.GetHexByteString (value); match_info.GetProcessInfo().GetExecutableFile().SetFile(value.c_str(), false); } else if (key.compare(�) == 0) { if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchEquals); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchStartsWith); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchEndsWith); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchContains); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchRegularExpression); } else { success = false; } } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetParentProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetUserID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetGroupID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetEffectiveUserID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetEffectiveGroupID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.SetMatchAllUsers(Args::StringToBoolean(value.c_str(), false, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().GetArchitecture().SetTriple (value.c_str(), NULL); } else { success = false; } if (!success) return SendErrorResponse (2); } } if (Host::FindProcesses (match_info, m_proc_infos)) { return Handle_qsProcessInfo (packet); } return SendErrorResponse (3); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qsProcessInfo (StringExtractorGDBRemote &packet) { if (m_proc_infos_index < m_proc_infos.GetSize()) { StreamString response; CreateProcessInfoResponse (m_proc_infos.GetProcessInfoAtIndex(m_proc_infos_index), response); ++m_proc_infos_index; return SendPacketNoLock (response.GetData(), response.GetSize()); } return SendErrorResponse (4); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qUserName (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); uint32_t uid = packet.GetU32 (UINT32_MAX); if (uid != UINT32_MAX) { std::string name; if (Host::GetUserName (uid, name)) { StreamString response; response.PutCStringAsRawHex8 (name.c_str()); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (5); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qGroupName (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); uint32_t gid = packet.GetU32 (UINT32_MAX); if (gid != UINT32_MAX) { std::string name; if (Host::GetGroupName (gid, name)) { StreamString response; response.PutCStringAsRawHex8 (name.c_str()); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (6); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qSpeedTest (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); std::string key; std::string value; bool success = packet.GetNameColonValue(key, value); if (success && key.compare(�) == 0) { uint32_t response_size = Args::StringToUInt32(value.c_str(), 0, 0, &success); if (success) { if (response_size == 0) return SendOKResponse(); StreamString response; uint32_t bytes_left = response_size; response.PutCString(�); while (bytes_left > 0) { if (bytes_left >= 26) argument
|
/freebsd-10-stable/contrib/ofed/management/infiniband-diags/src/ |
H A D | ibaddr.c | 62 ibmad_gid_t gid; local
|
/freebsd-10-stable/contrib/smbfs/mount_smbfs/ |
H A D | mount_smbfs.c | 87 gid_t gid; local
|
/freebsd-10-stable/sys/boot/userboot/userboot/ |
H A D | host.c | 99 int gid; local
|
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/ |
H A D | mthca_mcg.c | 42 u8 gid[16]; member in struct:mthca_mgm 127 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u1 argument 63 find_mgm(struct mthca_dev *dev, u8 *gid, struct mthca_mailbox *mgm_mailbox, u16 *hash, int *prev, int *index) argument 234 mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument [all...] |
/freebsd-10-stable/sys/ofed/include/rdma/ |
H A D | ib_user_mad.h | 87 __u8 gid[16]; member in struct:ib_user_mad_hdr_old 131 __u8 gid[16]; member in struct:ib_user_mad_hdr
|
/freebsd-10-stable/tools/regression/priv/ |
H A D | main.c | 387 setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid, mode_t mode) argument 403 setup_file(const char *test, char *fpathp, uid_t uid, gid_t gid, mode_t mode) argument 426 set_creds(const char *test, uid_t uid, gid_t gid) argument [all...] |
/freebsd-10-stable/tools/regression/sysvmsg/ |
H A D | msgtest.c | 263 gid_t gid = getegid(); local
|
/freebsd-10-stable/usr.bin/newgrp/ |
H A D | newgrp.c | 244 inarray(gid_t gid, const gid_t grps[], int ngrps) argument
|
/freebsd-10-stable/usr.sbin/ctm/ctm/ |
H A D | ctm_pass3.c | 37 u_char *md5=0,*md5before=0,*trash=0,*name=0,*uid=0,*gid=0,*mode=0; local
|
/freebsd-10-stable/usr.sbin/nscd/ |
H A D | query.h | 74 gid_t gid; /* gid of the caller received via credentials */ member in struct:query_state
|
/freebsd-10-stable/usr.sbin/chown/ |
H A D | chown.c | 68 static gid_t gid; variable [all...] |
/freebsd-10-stable/contrib/openbsm/bin/auditd/ |
H A D | auditd_fbsd.c | 71 auditd_openlog(int debug, gid_t __unused gid) argument
|
/freebsd-10-stable/sys/sys/ |
H A D | ipc.h | 79 unsigned short gid; /* group id */ member in struct:ipc_perm_old 90 gid_t gid; /* group id */ member in struct:ipc_perm
|
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zfs_sa.c | 204 uint64_t uid, gid, mode, rdev, xattr, parent; local
|
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_stat.c | 247 gid_t gid; local
|