Searched refs:ncmds (Results 1 - 25 of 35) sorted by relevance

12

/freebsd-11-stable/sys/compat/freebsd32/
H A Dfreebsd32_capability.c57 size_t ncmds; local
61 ncmds = uap->ncmds;
63 if (ncmds > 256) /* XXX: Is 256 sane? */
66 if (ncmds == 0) {
69 cmds32 = malloc(sizeof(cmds32[0]) * ncmds, M_FILECAPS, M_WAITOK);
70 error = copyin(uap->cmds, cmds32, sizeof(cmds32[0]) * ncmds);
75 cmds = malloc(sizeof(cmds[0]) * ncmds, M_FILECAPS, M_WAITOK);
76 for (i = 0; i < ncmds; i++)
81 return (kern_cap_ioctls_limit(td, uap->fd, cmds, ncmds));
[all...]
/freebsd-11-stable/sys/kern/
H A Dsys_capability.c341 ssize_t ncmds; local
348 ncmds = fdp->fd_ofiles[fd].fde_nioctls;
349 if (ncmds == -1)
353 for (i = 0; i < ncmds; i++) {
366 size_t ncmds)
376 if (oncmds < (ssize_t)ncmds)
380 for (i = 0; i < ncmds; i++) {
393 kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds, size_t ncmds) argument
409 error = cap_ioctl_limit_check(fdp, fd, cmds, ncmds);
415 fdp->fd_ofiles[fd].fde_nioctls = ncmds;
365 cap_ioctl_limit_check(struct filedesc *fdp, int fd, const u_long *cmds, size_t ncmds) argument
429 size_t ncmds; local
[all...]
/freebsd-11-stable/usr.bin/checknr/
H A Dchecknr.c211 static int ncmds; /* size of knowncmds */ variable
223 while (knowncmds[ncmds])
224 ncmds++;
574 if (ncmds >= MAXCMDS) {
604 src = &knowncmds[ncmds-1];
610 ncmds++;
614 knowncmds[slot+1], knowncmds[slot+2], ncmds);
630 top = ncmds-1;
/freebsd-11-stable/lib/libcasper/services/cap_grp/
H A Dcap_grp.h51 size_t ncmds);
H A Dcap_grp.c367 cap_grp_limit_cmds(cap_channel_t *chan, const char * const *cmds, size_t ncmds) argument
381 for (i = 0; i < ncmds; i++)
/freebsd-11-stable/lib/libcasper/services/cap_pwd/
H A Dcap_pwd.h51 size_t ncmds);
H A Dcap_pwd.c321 cap_pwd_limit_cmds(cap_channel_t *chan, const char * const *cmds, size_t ncmds) argument
335 for (i = 0; i < ncmds; i++)
/freebsd-11-stable/contrib/netbsd-tests/lib/libcurses/slave/
H A Dcommands.c59 while (i < ncmds) {
H A Dcommand_table.h395 size_t ncmds = sizeof(commands) / sizeof(struct command_def); variable
/freebsd-11-stable/contrib/tcsh/
H A Dtc.os.c83 unsigned int npaths, ncmds; local
104 ncmds = i - npaths - 1;
122 cmds = xmalloc((ncmds + 1) * sizeof *cmds);
123 setzero(cmds, (ncmds + 1) * sizeof *cmds);
138 for (i = 0; i < ncmds; i++) {
156 for (i = 0; i < ncmds; i++)
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_geom.c352 * cmds, datas, offsets, errors, and sizes are arrays of length ncmds. Each IO
358 off_t *sizes, int *errors, int ncmds)
370 for (i = 0; i < ncmds; i++)
378 for (i = j = 0; i < ncmds; i++) {
399 for (i = j = 0; i < ncmds; i++) {
357 vdev_geom_io(struct g_consumer *cp, int *cmds, void **datas, off_t *offsets, off_t *sizes, int *errors, int ncmds) argument
/freebsd-11-stable/sys/sys/
H A Dcapsicum.h408 int cap_ioctls_limit(int fd, const cap_ioctl_t *cmds, size_t ncmds);
H A Dsyscallsubr.h80 size_t ncmds);
/freebsd-11-stable/sys/teken/
H A Dteken_subr.h1121 teken_subr_set_graphic_rendition(teken_t *t, unsigned int ncmds, argument
1127 if (ncmds == 0) {
1132 for (i = 0; i < ncmds; i++) {
1174 if (i + 2 >= ncmds || cmds[i + 1] != 5)
1193 if (i + 2 >= ncmds || cmds[i + 1] != 5)
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DMachOYAML.h51 uint32_t ncmds; member in struct:llvm::MachOYAML::FileHeader
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_procmaps_mac.cpp303 data_.current_load_cmd_count = hdr->ncmds;
/freebsd-11-stable/usr.sbin/bhyve/
H A Dbhyverun.c938 size_t ncmds; local
983 vm_get_ioctls(&ncmds);
987 if (cap_ioctls_limit(vm_get_device_fd(ctx), cmds, ncmds) == -1 &&
/freebsd-11-stable/sys/dev/digi/
H A Ddigi.c74 static void fepcmd(struct digi_p *port, int cmd, int op, int ncmds);
84 #define fepcmd_b(port, cmd, op1, op2, ncmds) \
85 fepcmd(port, cmd, (op2 << 8) | op1, ncmds)
1404 fepcmd(struct digi_p *port, int cmd, int op1, int ncmds) argument
1427 if (n <= ncmds * sizeof(short) * 4)
/freebsd-11-stable/contrib/sendmail/libmilter/
H A Dengine.c245 int ncmds = sizeof(cmds) / sizeof(cmdfct); local
328 for (i = 0; i < ncmds; i++)
333 if (i >= ncmds)
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMachO.h506 uint32_t ncmds; member in struct:llvm::MachO::mach_header
516 uint32_t ncmds; member in struct:llvm::MachO::mach_header_64
1029 sys::swapByteOrder(mh.ncmds);
1039 sys::swapByteOrder(H.ncmds);
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/
H A DMachOReader.cpp25 O.Header.NCmds = MachOObj.getHeader().ncmds;
H A DMachOWriter.cpp135 Header.ncmds = O.Header.NCmds;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp77 Header.ncmds = Obj.Header.ncmds;
H A DMachOYAML.cpp89 IO.mapRequired("ncmds", FileHdr.ncmds);
/freebsd-11-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DMachONormalizedFileBinaryReader.cpp236 const uint32_t lcCount = smh->ncmds;

Completed in 298 milliseconds

12