Displaying 20 results from an estimated 39 matches for "caddr_t".
Did you mean:
maddr_t
2008 Sep 17
1
floppy disk controller broken
Hello,
when testing FreeBSD-7.1-BETA i discovered that the floppy disk
controller doesn't work correctly. Trying to format a floppy (perhaps
with bad blocks) i get:
Processing fdformat: ioctl(FD_FORM): Device not configured
instead of the normal E letter. I then checked the same problem is
present on FreeBSD-6.3 and it has been reported by Beech Rintoul (*) in
2006! Of course the floppy disk
2003 Sep 08
1
ports/55928: vmware2 broken on -STABLE, presumably by PAE import
...d/files/pmap.patch-stable Thu Jan 1 01:00:00 1970
+++ vmware2/files/pmap.patch-stable Mon Sep 8 09:17:55 2003
@@ -0,0 +1,16 @@
+--- vmmon-only/freebsd/hostif.c.orig Mon Sep 8 09:10:39 2003
++++ vmmon-only/freebsd/hostif.c Mon Sep 8 09:11:28 2003
+@@ -181,11 +181,11 @@
+ {
+ #define DEB(x)
+ caddr_t addr = (caddr_t)VPN_2_VA(ppn);
+- pt_entry_t pteptr = (pt_entry_t)vtopte(addr);
++ pt_entry_t pteptr = (pt_entry_t)vtopte((unsigned long) addr);
+ PTE pte;
+
+ DEB(printf("FindMPN: for page %d address %p(phys %p) pteptr %p", ppn, addr, (caddr_t)vtophys(addr), pteptr));
+- pte...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...;type, "xfs") == 0) {
- /* XFS */
- struct fs_disk_quota xdqblk;
+ if (strcmp(root->mount->type, "xfs") == 0) {
+ /* XFS */
+ struct fs_disk_quota xdqblk;
- if (quotactl(QCMD(Q_XGETQUOTA, USRQUOTA),
- root->mount->device_path,
- root->uid, (caddr_t)&xdqblk) < 0) {
- i_error("quotactl(Q_XGETQUOTA, %s) failed: %m",
- root->mount->device_path);
- quota_set_error(_root->setup->quota,
- "Internal quota error");
- return -1;
- }
+ if (quotactl(QCMD(Q_XGETQUOTA, args[i]),
+ root->moun...
2004 Oct 27
1
Problems installing GRASS package
...PIC -O -pipe -c ascii_chk.c -o
ascii_chk.o
cc -I/usr/local/lib/R/include -DR_GRASS_INTERFACE -I./include
-I/usr/local/include -mieee-fp -fPIC -O -pipe -c auto_mask.c -o
auto_mask.o
In file included from include/G.h:3,
from auto_mask.c:18:
include/rpc/types.h:87: redefinition of `caddr_t'
/usr/include/sys/types.h:69: `caddr_t' previously declared here
include/rpc/types.h:89: redefinition of `u_int'
/usr/include/sys/types.h:54: `u_int' previously declared here
include/rpc/types.h:90: redefinition of `u_long'
/usr/include/sys/types.h:55: `u_long' previously de...
2002 Apr 10
8
[Bug 213] -SNAP-20020410 fails to compile under AIX 4.3.3
http://bugzilla.mindrot.org/show_bug.cgi?id=213
------- Additional Comments From stevesk at pobox.com 2002-04-11 08:57 -------
can you provide cpp output from the file (e.g., cc -E)
for the tmp[] definition?
can someone with some AIX knowledge help with this?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2015 Feb 26
4
Call for testing: OpenSSH 6.8
...pfd;
+ ssize_t r;
- /* Avoid obvious stupidity */
- if (isatty(STDOUT_FILENO))
- errx(1, "Cannot pass file descriptor to tty");
-
- bzero(&mh, sizeof(mh));
- bzero(&cmsgbuf, sizeof(cmsgbuf));
- bzero(&iov, sizeof(iov));
- bzero(&pfd, sizeof(pfd));
-
- mh.msg_control = (caddr_t)&cmsgbuf.buf;
- mh.msg_controllen = sizeof(cmsgbuf.buf);
- cmsg = CMSG_FIRSTHDR(&mh);
+ memset(&msg, 0, sizeof(msg));
+#ifdef HAVE_ACCRIGHTS_IN_MSGHDR
+ msg.msg_accrights = (caddr_t)&nfd;
+ msg.msg_accrightslen = sizeof(nfd);
+#else
+ memset(&cmsgbuf, 0, sizeof(cmsgbuf));
+ msg....
2003 Sep 01
1
testers needed for CAM INVARIANTS fix
...+ }
+
/*
* We have a handler function for this so we can check the values when the
* user sets them, instead of every time we look at them.
***************
*** 658,664 ****
struct ccb_setasync csa;
struct ccb_pathinq cpi;
struct ccb_getdev *cgd;
! char tmpstr[80], tmpstr2[80];
caddr_t match;
cgd = (struct ccb_getdev *)arg;
--- 698,704 ----
struct ccb_setasync csa;
struct ccb_pathinq cpi;
struct ccb_getdev *cgd;
! char tmpstr[80];
caddr_t match;
cgd = (struct ccb_getdev *)arg;
***************
*** 714,730 ****
if (cpi.ccb_h.status == CAM_REQ_CMP &&a...
2015 Feb 25
2
Call for testing: OpenSSH 6.8
On 24/02/15 21:56, Tim Rice wrote:
> On Wed, 25 Feb 2015, Damien Miller wrote:
>
> | On Tue, 24 Feb 2015, Tom G. Christensen wrote:
> |
> | > I've switched to HEAD in the git repo and it now builds on Solaris
> | > 2.6, 7, 8 and 9 but the testsuite still cannot be built due to the
> | > missing <err.h>.
>
> The err.h issue is fixes but there still
2008 Oct 30
7
Is there any way to check if DTrace is running or a DTrace probe is enabled?
Hi,
I am adding DTrace probes within NFS v3 client. In my current
implementation, I use some tsd_*() functions and kmem_zalloc() function.
These functions might be heavy and affect the performance. I want to
call this function only when DTrace is running or the DTrace probes are
enable. So is there a way to check DTrace is running or DTrace probe is
enabled?
Regards,
Danhua
2004 Sep 17
1
Fwd: FreeBSD kernel buffer overflow
..., in the end, it calls syscall().
>syscall() is responsible for loading arguments from a syscall and copying
>them in a kspace
>pointer in order to accessing them. The code to do that is the following:
>
>void
>syscall(frame)
> struct trapframe frame;
>{
> caddr_t params;
> struct sysent *callp;
> struct thread *td = curthread;
> struct proc *p = td->td_proc;
> register_t orig_tf_eflags;
> u_int sticks;
> int error;
> int narg;
> int args[8];
> u_int code;
&...
2003 Aug 22
3
PAE removal patch for testing
...ef SMP
-extern pt_entry_t *SMPpt;
-#define CMAP1 prv_CMAP1
-#define CMAP2 prv_CMAP2
-#define CMAP3 prv_CMAP3
-#define PMAP1 prv_PMAP1
-#define CADDR1 prv_CADDR1
-#define CADDR2 prv_CADDR2
-#define CADDR3 prv_CADDR3
-#define PADDR1 prv_PADDR1
-#else
-static pt_entry_t *CMAP1, *CMAP2, *CMAP3;
-static caddr_t CADDR1, CADDR2, CADDR3;
-static pd_entry_t *PMAP1;
-static pt_entry_t *PADDR1;
-#endif
-
-static pt_entry_t *ptmmap;
-caddr_t ptvmmap = 0;
+pt_entry_t *CMAP1 = 0;
+static pt_entry_t *CMAP2, *ptmmap;
+caddr_t CADDR1 = 0, ptvmmap = 0;
+static caddr_t CADDR2;
static pt_entry_t *msgbufmap;
-struct msg...
1998 Mar 12
2
FreeBSD Security Advisory: FreeBSD-SA-98:02.mmap
...==========================================
RCS file: /home/cvsup/freebsd/CVS/src/sys/vm/vm_mmap.c,v
retrieving revision 1.53.2.2
diff -u -r1.53.2.2 vm_mmap.c
--- vm_mmap.c 1997/03/25 04:54:29 1.53.2.2
+++ vm_mmap.c 1998/03/10 21:50:46
@@ -157,6 +157,9 @@
vm_prot_t prot, maxprot;
caddr_t handle;
int flags, error;
+ int disablexworkaround;
+
+ addr = (vm_offset_t) uap->addr;
prot = uap->prot & VM_PROT_ALL;
flags = uap->flags;
@@ -230,6 +233,26 @@
flags |= MAP_ANON;
} else {
/*
+ * cdevs does not provide private mappings...
2003 Jun 11
1
nfs panic with umount -f
...-397705260, tf_ebx = 1, tf_edx = 134701424, tf_ecx = 0,
tf_eax = 22, tf_trapno = 12, tf_err = 2, tf_eip = 134523456, tf_cs = 31,
at /usr/src/sys/i386/i386/trap.c:1175
#21 0xc038a9d5 in Xint0x80_syscall ()
#22 0x804849b in ?? ()
#23 0x804813e in ?? ()
(kgdb) list
1577 register caddr_t cp;
1578 register int32_t t1, t2;
1579 caddr_t bpos, dpos, cp2;
1580 int error = 0, wccflag = NFSV3_WCCRATTR;
1581 struct mbuf *mreq, *mrep, *md, *mb, *mb2;
1582 int v3 = NFS_ISV3(dvp);
1583
1584 nfsstats.rpccnt[NFSPROC_REMOVE]++;
15...
2013 Oct 28
5
FreeBSD PVH guest support
...d); /* XXX header file */
extern void identify_cpu(void);
@@ -166,6 +177,23 @@ static int set_fpcontext(struct thread *td, const mcontext_t *mcp,
char *xfpustate, size_t xfpustate_len);
SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL);
+/* Preload data parse function */
+static caddr_t native_parse_preload_data(u_int64_t);
+
+/* Native function to fetch the e820 map */
+static void native_fetch_e820_map(caddr_t, struct bios_smap **, u_int32_t *);
+
+/* Default init_ops implementation. */
+struct init_ops init_ops = {
+ .parse_preload_data = native_parse_preload_data,
+ .early_del...
2006 Jun 20
1
Group-based filesystem quota
Hello. After using Dovecot for over a year, I have just started
experimenting with the filesystem quotas, and I have a suggestion for
improvement. On my mail server, I use group-based quotas, and would
like to have Dovecot be able to report these quotas.
It should be simple to implement, requiring only changes to the
quota-fs.c file of the quota plugin. Simply changing USRQUOTA to
2005 May 05
1
FreeBSD Security Advisory FreeBSD-SA-05:08.kmem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
=============================================================================
FreeBSD-SA-05:08.kmem Security Advisory
The FreeBSD Project
Topic: Local kernel memory disclosure
Category: core
Module: sys
Announced: 2005-05-06
2006 Nov 01
0
No subject
...t; char ch = '\0';
> int n;
> #ifndef HAVE_ACCRIGHTS_IN_MSGHDR
> char tmp[CMSG_SPACE(sizeof(int))];
> struct cmsghdr *cmsg;
> #endif
>
> memset(&msg, 0, sizeof(msg));
> #ifdef HAVE_ACCRIGHTS_IN_MSGHDR
> msg.msg_accrights = (caddr_t)&fd;
> msg.msg_accrightslen = sizeof(fd);
> #else
> msg.msg_control = (caddr_t)tmp;
> msg.msg_controllen = CMSG_LEN(sizeof(int));
> cmsg = CMSG_FIRSTHDR(&msg);
> cmsg->cmsg_len = CMSG_LEN(sizeof(int));
> cmsg->cmsg_level = SOL_S...
2020 Jun 14
0
[ANNOUNCE] twm 1.0.11
...by making a copy of the data
gcc-stricter warnings, no object change
constify deftwmrc[], to fix gcc-stricter warnings
fix const-warnings in grammar using a non-const initializer
fix const-warnings by making a copy of the data
issue 4: twm makes windows too wide
caddr_t used to be used in X code before XPointer was established; it's obsolete and less portable
bump minor version to reflect issues #4 and #7
issue 2: twm doesn't handle RandR screen size changes
bump minor version for issue #2
Formatted most of the C files using "t...
2008 Feb 20
1
alignment problem in monitor_fdpass.c
...on a 4 byte boundary and using -O does not. On
architectures that do not like unaligned accesses this will break.
An extraction of mm_send_fd() look something like this:
##############################
struct msghdr msg;
char tmp[CMSG_SPACE(sizeof(int))];
struct cmsghdr *cmsg;
msg.msg_control = (caddr_t)tmp;
cmsg = CMSG_FIRSTHDR(&msg);
cmsg->cmsg_len = CMSG_LEN(sizeof(int));
##############################
The bus error happens on the last line when a value is written into
cmsg_len.
In effect it does:
cmsg = tmp;
cmsg->cmsg_len = CMSG_LEN(sizeof(int));
So if tmp is not aligned, then c...
2000 Feb 14
0
[openssh-1.2.2] some porting notes for SunOS 4.1.4
...======
==> strerror.c <==
extern int sys_nerr;
extern char *sys_errlist[];
char *
strerror(e)
int e;
{
return (e >= 0 && e < sys_nerr)
? sys_errlist[e]
: "unlisted error" ;
}
==> atexit.c <==
#include <sys/types.h>
extern int on_exit(void (*f)(), caddr_t a);
int
atexit(f)
void (*f)(void);
{
return on_exit(f, 0) ? 0 : -1;
}
==> memmove.c <==
extern void bcopy(char *b1, char *b2, int l);
void *
memmove(d, s, l)
char *d;
char *s;
int l;
{
bcopy(s, d, l);
return d;
}
======================================================================...