search for: cmptr

Displaying 10 results from an estimated 10 matches for "cmptr".

Did you mean: mmptr
2009 Sep 11
1
[PATCH] guestfish: Redirect stdout when executing remote commands
...nclude <rpc/xdr.h> @@ -49,6 +50,124 @@ create_sockpath (pid_t pid, char *sockpath, int len, struct sockaddr_un *addr) strcpy (addr->sun_path, sockpath); } +static const socklen_t controllen = CMSG_LEN (sizeof (int)); + +static void +receive_stdout (int s) +{ + static struct cmsghdr *cmptr = NULL, *h; + struct msghdr msg; + struct iovec iov[1]; + + /* Our 1 byte buffer */ + char buf[1]; + + if (NULL == cmptr) { + cmptr = malloc (controllen); + if (NULL == cmptr) { + perror ("malloc"); + exit (1); + } + } + + /* Don't specify a...
2002 Jan 21
1
help for tftp-hpa with libc5
...om.c:105: warning: unsigned value < 0 is always 0 recvfrom.c:109: sizeof applied to an incomplete type recvfrom.c:109: warning: unsigned value >= 0 is always 1 recvfrom.c:72: warning: unused variable `on' make: *** [recvfrom.o] Error 1 === === recvfrom.c line 62 onwards struct cmsghdr *cmptr; union { struct cmsghdr cm; #ifdef IP_PKTINFO char control[CMSG_SPACE(sizeof(struct in_addr)) + CMSG_SPACE(sizeof(struct in_pktinfo))]; #else char control[CMSG_SPACE(sizeof(struct in_addr))]; #endif } control_un; int on = 1; #ifdef IP_PKTINFO struct in_pktinfo pk...
2013 Sep 12
10
[PATCH] xen/build: Remove hacked up version of figlet
...********* - - handlemapping - - Given an input character (type inchr), executes re-mapping commands - read from control files. Returns re-mapped character (inchr). - -****************************************************************************/ - -inchr handlemapping(c) -inchr c; -{ - comnode *cmptr; - - cmptr=commandlist; - while (cmptr!=NULL) { - if (cmptr->thecommand ? - (c >= cmptr->rangelo && c <= cmptr->rangehi) : 0) { - c += cmptr->offset; - while(cmptr!=NULL ? cmptr->thecommand : 0) { - cmptr=cmptr->next; - } - } -...
2009 Nov 20
1
fix new failures from latest-from-gnulib syntax-check
...== argv_new) { perror ("realloc"); free_n_strings (argv, argv_len-1); - exit (1); + exit (EXIT_FAILURE); } argv = argv_new; diff --git a/fish/rc.c b/fish/rc.c index a9eb578..dbaf953 100644 --- a/fish/rc.c +++ b/fish/rc.c @@ -66,7 +66,7 @@ receive_stdout (int s) cmptr = malloc (controllen); if (NULL == cmptr) { perror ("malloc"); - exit (1); + exit (EXIT_FAILURE); } } @@ -88,7 +88,7 @@ receive_stdout (int s) ssize_t n = recvmsg (s, &msg, 0); if (n < 0) { perror ("recvmsg stdout fd"); - exit...
2004 Nov 28
1
Macromedia Flash MX 2004
Greetings! There are no flash editors for linux. I mean at all! That's horrible. But I think that's the reason for using a combination of Subj+wine. And I think there should be some FAQ or other type of help on this topic. Could anybody point to such a help source for me? Or maybe you could help me to resolve the source of such an error: fixme:ntdll:NtQueryInformationProcess
2015 Nov 23
2
httpd 2.3 or 2.4 repository for CentOS 6.X anywhere?
Hi is there a yum repository for httpd 2.3 or 2.4 for CentOS 6.X anywhere? Like remi for php/mysql? thanks Jobst -- f u cn rd ths, u cn gt a gd jb n cmptr prgmmng. [Anon] | |0| | Jobst Schmalenbach, jobst at barrett.com.au, General Manager | | |0| Barrett Consulting Group P/L & The Meditation Room P/L |0|0|0| +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
1997 Jul 15
0
resetting printer after job removal
...k page after the job): print command = lpr -h -P%p %s; rm %s ; the print command to send things to LPD System: RedHat Linux 4.2 (kernel 2.0.30) Machine: Pentium 133, 64 MB RAM, 4 GB SCSI disk Thanks for any idea. Celso. Stolen from an Internet user: "f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng !" ------------------------------------------------------ | Celso Kopp Webber | | e-mail: celsinho@inf.ufsc.br | | | | Federal University of Santa Catarina | | Flor...
1997 Jul 15
3
How to write a printcap entry for remote printer
I am sharing some printers attached to Win95 boxes, and would like to be able to do more than connect from Linux with smbclient and print via translate. I would like to be able to specify a printcap entry for these so as to be able to print from pine or lynx or Netscape (when I get X running here at work). I haven't found anything in Samba docs or LDP docs yet to tell me how to write such
2007 Jun 13
4
subdir disappeared
I have an installation that sometimes acts strangely: Jun 12 11:28:00 mail dovecot: imap-login: Login: user=<nadia>, method=PLAIN, rip=10.10.10.103, lip=10.10.10.254 Jun 12 11:53:59 mail dovecot: IMAP(nadia): inotify_add_watch(/var/spool/mail/nadia/new) failed: No such file or directory Jun 12 11:53:59 mail dovecot: IMAP(nadia): stat(/var/spool/mail/nadia/new) failed: No such file or
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...-1 && errno != EEXIST) error: - perror (dir); - exit (EXIT_FAILURE); - } + error (EXIT_FAILURE, errno, "%s", dir); if (lstat (dir, &statbuf) == -1) goto error; if (!S_ISDIR (statbuf.st_mode) || @@ -99,10 +98,8 @@ receive_stdout (int s) if (NULL == cmptr) { cmptr = malloc (controllen); - if (NULL == cmptr) { - perror ("malloc"); - exit (EXIT_FAILURE); - } + if (NULL == cmptr) + error (EXIT_FAILURE, errno, "malloc"); } /* Don't specify a source */ @@ -122,10 +119,8 @@ receive_stdout (int s...