Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2010 23:24:09 GMT
From:      Ivan Voras <ivoras@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 178738 for review
Message-ID:  <201005242324.o4ONO98M027773@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@178738?ac=10

Change 178738 by ivoras@betelgeuse on 2010/05/24 23:23:35

	Create a mini utility library for hashing files asynchronously.

Affected files ...

.. //depot/projects/soc2010/pkg_patch/src/patch/Makefile#2 edit
.. //depot/projects/soc2010/pkg_patch/src/patch/hashjob.c#1 add
.. //depot/projects/soc2010/pkg_patch/src/patch/hashjob.h#1 add
.. //depot/projects/soc2010/pkg_patch/src/patch/main.c#2 edit

Differences ...

==== //depot/projects/soc2010/pkg_patch/src/patch/Makefile#2 (text+ko) ====

@@ -3,9 +3,11 @@
 .include <bsd.own.mk>
 
 PROG=	pkg_patch
-SRCS=	main.c
+SRCS=	main.c hashjob.c
 
 WARNS?=	4
 WFORMAT?=	1
 
+LDADD=	-lmd
+
 .include <bsd.prog.mk>

==== //depot/projects/soc2010/pkg_patch/src/patch/main.c#2 (text+ko) ====

@@ -12,19 +12,22 @@
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
- * Jordan K. Hubbard
- * 18 July 1993
+ * Ivan Voras
+ * 21 May 2010
  *
- * This is the add module.
+ * This is the "binary patch"  module.
  */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/usr.sbin/pkg_install/add/main.c,v 1.85 2010/04/23 11:07:43 flz Exp $");
+__FBSDID("$FreeBSD$");
 
 #include <sys/param.h>
 #include <sys/utsname.h>
 #include <err.h>
-#include <getopt.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <unistd.h>
+
 
 #include <pkg.h>
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005242324.o4ONO98M027773>