GPM ported
Stefan Sperling
stsp at stsp.in-berlin.de
Sat Nov 25 10:59:54 CET 2006
On Sat, Nov 25, 2006 at 09:52:38AM +0000, Malcolm wrote:
> On 11/25/06, Troy Davis <troy_ed at yahoo.com> wrote:
>
> > and a updated patch for gpm - which builds/fixes libgpm to use /var/run/gp
> > instead of /var/run/gpctrl since for some reason the gpm program is only
> > creating /var/run/gp
>
> /dev/gpmctl
> /var/run/gp
>
> looks like the string is a fixed length.
mmmh. Looks like it's due to GPF's diff (see excerpt below).
@GPF: please do not substitude GPM_NODE_CTL all over the place.
Redefine the constant itself, if you need to. That's what it is for.
@@ -312,20 +314,20 @@
bzero((char *)&addr,sizeof(addr));
addr.sun_family=AF_UNIX;
- strcpy(addr.sun_path, GPM_NODE_CTL);
- i=sizeof(addr.sun_family)+strlen(GPM_NODE_CTL);
+ strcpy(addr.sun_path, "/var/run/gp");
+ i=sizeof(addr.sun_family)+strlen("/var/run/gp");
if(connect(gpm_fd,(struct sockaddr *)(&addr),i)<0 ) {
struct stat stbuf;
- gpm_report(GPM_PR_INFO,GPM_MESS_DOUBLE_S,GPM_NODE_CTL,strerror(errno));
+ gpm_report(GPM_PR_INFO,GPM_MESS_DOUBLE_S,addr.sun_path,strerror(errno));
/*
* Well, try to open a chr device called /dev/gpmctl. This should
* be forward-compatible with a kernel server
*/
close(gpm_fd); /* the socket */
- if ((gpm_fd=open(GPM_NODE_DEV,O_RDWR))==-1) {
- gpm_report(GPM_PR_ERR,GPM_MESS_DOUBLE_S,GPM_NODE_DEV
+ if ((gpm_fd=open("/var/run/gp",O_RDWR))==-1) {
+ gpm_report(GPM_PR_ERR,GPM_MESS_DOUBLE_S,"/var/run/gp"
,strerror(errno));
goto err;
--
stefan
http://stsp.in-berlin.de PGP Key: 0xF59D25F0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://mailman.dslinux.in-berlin.de/pipermail/dslinux-devel-dslinux.in-berlin.de/attachments/20061125/d7f05a00/attachment.pgp
More information about the dslinux-devel
mailing list