Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 111) sorted by relevance

12345

/bionic/libc/kernel/uapi/rdma/
Drdma_user_cm.h72 __u32 id; member
76 __u32 id; member
85 __u32 id; member
88 __u32 id; member
96 __u32 id; member
100 __u32 id; member
109 __u32 id; member
119 __u32 id; member
177 __u32 id; member
182 __u32 id; member
[all …]
Dib_user_mad.h25 __u32 id; member
43 __u32 id; member
69 __u32 id; member
82 __u32 id; member
/bionic/libc/bionic/
Dsys_msg.cpp34 int msgctl(int id, int cmd, msqid_ds* buf) { in msgctl() argument
40 return syscall(SYS_msgctl, id, cmd, buf); in msgctl()
42 return syscall(SYS_ipc, MSGCTL, id, cmd, 0, buf, 0); in msgctl()
54 ssize_t msgrcv(int id, void* msg, size_t n, long type, int flags) { in msgrcv() argument
56 return syscall(SYS_msgrcv, id, msg, n, type, flags); in msgrcv()
58 return syscall(SYS_ipc, IPCCALL(1, MSGRCV), id, n, flags, msg, type); in msgrcv()
62 int msgsnd(int id, const void* msg, size_t n, int flags) { in msgsnd() argument
64 return syscall(SYS_msgsnd, id, msg, n, flags); in msgsnd()
66 return syscall(SYS_ipc, MSGSND, id, n, flags, msg, 0); in msgsnd()
Dsys_sem.cpp35 int semctl(int id, int num, int cmd, ...) { in semctl() argument
45 return syscall(SYS_semctl, id, num, cmd, arg); in semctl()
47 return syscall(SYS_ipc, SEMCTL, id, num, cmd, &arg, 0); in semctl()
59 int semop(int id, sembuf* ops, size_t op_count) { in semop() argument
60 return semtimedop(id, ops, op_count, nullptr); in semop()
63 int semtimedop(int id, sembuf* ops, size_t op_count, const timespec* ts) { in semtimedop() argument
65 return syscall(SYS_semtimedop, id, ops, op_count, ts); in semtimedop()
67 return syscall(SYS_ipc, SEMTIMEDOP, id, op_count, 0, ops, ts); in semtimedop()
Dsys_shm.cpp34 void* shmat(int id, const void* address, int flags) { in shmat() argument
36 return reinterpret_cast<void*>(syscall(SYS_shmat, id, address, flags)); in shmat()
40 if (syscall(SYS_ipc, SHMAT, id, flags, &result, address, 0) == -1) { in shmat()
47 int shmctl(int id, int cmd, struct shmid_ds* buf) { in shmctl() argument
53 return syscall(SYS_shmctl, id, cmd, buf); in shmctl()
55 return syscall(SYS_ipc, SHMCTL, id, cmd, 0, buf, 0); in shmctl()
Dposix_timers.cpp185 int timer_delete(timer_t id) { in timer_delete() argument
186 int rc = __timer_delete(to_kernel_timer_id(id)); in timer_delete()
191 PosixTimer* timer = reinterpret_cast<PosixTimer*>(id); in timer_delete()
204 int timer_gettime(timer_t id, itimerspec* ts) { in timer_gettime() argument
205 return __timer_gettime(to_kernel_timer_id(id), ts); in timer_gettime()
213 int timer_settime(timer_t id, int flags, const itimerspec* ts, itimerspec* ots) { in timer_settime() argument
214 PosixTimer* timer= reinterpret_cast<PosixTimer*>(id); in timer_settime()
219 int timer_getoverrun(timer_t id) { in timer_getoverrun() argument
220 return __timer_getoverrun(to_kernel_timer_id(id)); in timer_getoverrun()
Dwait.cpp32 extern "C" int __waitid(idtype_t which, id_t id, siginfo_t* info, int options, struct rusage* ru);
42 int waitid(idtype_t which, id_t id, siginfo_t* info, int options) { in waitid() argument
44 return __waitid(which, id, info, options, nullptr); in waitid()
Dgrp_pwd.cpp130 static const android_id_info* find_android_id_info(unsigned id) { in find_android_id_info() argument
132 if (android_ids[n].aid == id) { in find_android_id_info()
194 static bool platform_id_secondary_user_allowed(id_t id) { in platform_id_secondary_user_allowed() argument
196 if (allowed_id == id) { in platform_id_secondary_user_allowed()
204 static bool is_valid_app_id(id_t id, bool is_group) { in is_valid_app_id() argument
205 id_t appid = id % AID_USER_OFFSET; in is_valid_app_id()
223 if (appid >= AID_SHARED_GID_START && appid <= AID_SHARED_GID_END && appid != id) { in is_valid_app_id()
424 static bool is_oem_id(id_t id) { in is_oem_id() argument
429 if (device_launched_before_api_29() && id >= AID_OEM_RESERVED_START && id < AID_EVERYBODY && in is_oem_id()
430 find_android_id_info(id) == nullptr) { in is_oem_id()
[all …]
/bionic/tests/
Dsys_sem_test.cpp44 int id = semget(key, 1, IPC_CREAT|0666); in TEST() local
45 ASSERT_NE(id, -1); in TEST()
50 ASSERT_EQ(0, semctl(id, 0, IPC_STAT, &ds)); in TEST()
53 ASSERT_EQ(0, semctl(id, 0, GETVAL)); in TEST()
57 ASSERT_EQ(0, semop(id, ops, 1)); in TEST()
58 ASSERT_EQ(1, semctl(id, 0, GETVAL)); in TEST()
64 ASSERT_EQ(-1, semtimedop(id, ops, 1, &ts)); in TEST()
66 ASSERT_EQ(1, semctl(id, 0, GETVAL)); in TEST()
70 ASSERT_EQ(0, semop(id, ops, 1)); in TEST()
71 ASSERT_EQ(0, semctl(id, 0, GETVAL)); in TEST()
[all …]
Dsys_msg_test.cpp44 int id = msgget(key, IPC_CREAT|0666); in TEST() local
45 ASSERT_NE(id, -1); in TEST()
50 ASSERT_EQ(0, msgctl(id, IPC_STAT, &ds)); in TEST()
59 ASSERT_EQ(0, msgsnd(id, &msg, sizeof(msg), 0)); in TEST()
62 ASSERT_EQ(0, msgctl(id, IPC_STAT, &ds)); in TEST()
68 ASSERT_EQ(static_cast<ssize_t>(sizeof(msg)), msgrcv(id, &msg, sizeof(msg), 0, 0)); in TEST()
73 ASSERT_EQ(0, msgctl(id, IPC_RMID, nullptr)); in TEST()
Dsys_shm_test.cpp43 int id = shmget(key, 1234, IPC_CREAT|0666); in TEST() local
44 ASSERT_NE(id, -1); in TEST()
49 ASSERT_EQ(0, shmctl(id, IPC_STAT, &ds)); in TEST()
53 void* p = shmat(id, nullptr, SHM_RDONLY); in TEST()
60 ASSERT_EQ(0, shmctl(id, IPC_RMID, nullptr)); in TEST()
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_atanf.c52 int32_t ix,hx,id; in atanf() local
65 id = -1; in atanf()
70 id = 0; x = ((float)2.0*x-one)/((float)2.0+x); in atanf()
72 id = 1; x = (x-one)/(x+one); in atanf()
76 id = 2; x = (x-(float)1.5)/(one+(float)1.5*x); in atanf()
78 id = 3; x = -(float)1.0/x; in atanf()
87 if (id<0) return x - x*(s1+s2); in atanf()
89 z = atanhi[id] - ((x*(s1+s2) - atanlo[id]) - x); in atanf()
Ds_atanl.c37 int id; in atanl() local
58 id = -1; in atanl()
63 id = 0; x = (2.0*x-one)/(2.0+x); in atanl()
65 id = 1; x = (x-one)/(x+one); in atanl()
69 id = 2; x = (x-1.5)/(one+1.5*x); in atanl()
71 id = 3; x = -1.0/x; in atanl()
80 if (id<0) return x - x*(s1+s2); in atanl()
82 z = atanhi[id] - ((x*(s1+s2) - atanlo[id]) - x); in atanl()
Ds_atan.c77 int32_t ix,hx,id; in atan() local
93 id = -1; in atan()
98 id = 0; x = (2.0*x-one)/(2.0+x); in atan()
100 id = 1; x = (x-one)/(x+one); in atan()
104 id = 2; x = (x-1.5)/(one+1.5*x); in atan()
106 id = 3; x = -1.0/x; in atan()
115 if (id<0) return x - x*(s1+s2); in atan()
117 z = atanhi[id] - ((x*(s1+s2) - atanlo[id]) - x); in atan()
/bionic/libc/kernel/uapi/linux/
Dadb.h22 #define ADB_FLUSH(id) (0x01 | ((id) << 4)) argument
23 #define ADB_WRITEREG(id,reg) (0x08 | (reg) | ((id) << 4)) argument
24 #define ADB_READREG(id,reg) (0x0C | (reg) | ((id) << 4)) argument
Dzorro.h22 #define ZORRO_MANUF(id) ((id) >> 16) argument
23 #define ZORRO_PROD(id) (((id) >> 8) & 0xff) argument
24 #define ZORRO_EPC(id) ((id) & 0xff) argument
Dpatchkey.h27 #define _PATCHKEY(id) (0xfd00 | id) argument
29 #define _PATCHKEY(id) ((id << 8) | 0x00fd) argument
Duhid.h77 __u32 id; member
82 __u32 id; member
88 __u32 id; member
95 __u32 id; member
127 __u32 id; member
132 __u32 id; member
Dinet_diag.h39 struct inet_diag_sockid id; member
49 struct inet_diag_sockid id; member
57 struct inet_diag_sockid id; member
103 struct inet_diag_sockid id; member
/bionic/libc/kernel/tools/
Dcpp.py119 def id(self): member in Token
126 @id.setter
127 def id(self, new_id): member in Token
142 if self.id == 'defined':
143 return self.id
145 return "(ident %s)" % self.id
147 return self.id
150 return self.id
321 token_list.append((token.id, token.location.line,
324 token_list.append(token.id)
[all …]
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c194 evTimer *id; in evSetTimer() local
224 OKNEW(id); in evSetTimer()
225 id->func = func; in evSetTimer()
226 id->uap = uap; in evSetTimer()
227 id->due = due; in evSetTimer()
228 id->inter = inter; in evSetTimer()
230 if (heap_insert(ctx->timers, id) < 0) in evSetTimer()
235 opaqueID->opaque = id; in evSetTimer()
246 evClearTimer(evContext opaqueCtx, evTimerID id) { in evClearTimer() argument
248 evTimer *del = id.opaque; in evClearTimer()
[all …]
Dev_streams.c68 evStreamFunc func, void *uap, evStreamID *id) in evWrite() argument
90 if (id != NULL) in evWrite()
91 id->opaque = new; in evWrite()
102 evStreamFunc func, void *uap, evStreamID *id) in evRead() argument
124 if (id) in evRead()
125 id->opaque = new; in evRead()
135 evTimeRW(evContext opaqueCtx, evStreamID id, evTimerID timer) /*ARGSUSED*/ { in evTimeRW() argument
136 evStream *str = id.opaque; in evTimeRW()
146 evUntimeRW(evContext opaqueCtx, evStreamID id) /*ARGSUSED*/ { in evUntimeRW() argument
147 evStream *str = id.opaque; in evUntimeRW()
[all …]
/bionic/libc/kernel/uapi/drm/
Dtegra_drm.h38 __u32 id; member
42 __u32 id; member
46 __u32 id; member
63 __u32 id; member
68 __u32 id; member
71 __u32 id; member
/bionic/libc/kernel/uapi/sound/
Dsfnt_info.h23 #define SNDRV_OSS_PATCHKEY(id) (0xfd00 | id) argument
25 #define SNDRV_OSS_PATCHKEY(id) ((id << 8) | 0xfd) argument
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dftok.c33 ftok(const char *path, int id) in ftok() argument
41 ((id & 0xff) << 24 | (st.st_dev & 0xff) << 16 | (st.st_ino & 0xffff)); in ftok()

12345