CVS commit: src/external/bsd/am-utils/dist

2024-04-04 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Apr  4 20:33:59 UTC 2024

Removed Files:
src/external/bsd/am-utils/dist: amd2netbsd

Log Message:
external/bsd/am-utils: delete outdated amd2netbsd under dist

This was stored as a local change to dist, where it doesn't belong --
it belongs outside dist.  But we already have an amd2netbsd with the
correct path outside of dist.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r0 src/external/bsd/am-utils/dist/amd2netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/am-utils/dist

2024-04-04 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Apr  4 20:33:59 UTC 2024

Removed Files:
src/external/bsd/am-utils/dist: amd2netbsd

Log Message:
external/bsd/am-utils: delete outdated amd2netbsd under dist

This was stored as a local change to dist, where it doesn't belong --
it belongs outside dist.  But we already have an amd2netbsd with the
correct path outside of dist.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r0 src/external/bsd/am-utils/dist/amd2netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/am-utils/dist

2022-08-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 23 07:42:28 UTC 2022

Modified Files:
src/external/bsd/am-utils/dist/amd: amq_subr.c
src/external/bsd/am-utils/dist/amq: amq.c amq_xdr.c
src/external/bsd/am-utils/dist/include: amq_defs.h

Log Message:
fix pointer bug (thanks RVP) and change to use 64 bit times. Don't bother
with backwards compatibility; too much work for little benefit.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/am-utils/dist/amd/amq_subr.c
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/am-utils/dist/amq/amq.c
cvs rdiff -u -r1.1.1.3 -r1.2 src/external/bsd/am-utils/dist/amq/amq_xdr.c
cvs rdiff -u -r1.1.1.3 -r1.2 \
src/external/bsd/am-utils/dist/include/amq_defs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/am-utils/dist

2022-08-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 23 07:42:28 UTC 2022

Modified Files:
src/external/bsd/am-utils/dist/amd: amq_subr.c
src/external/bsd/am-utils/dist/amq: amq.c amq_xdr.c
src/external/bsd/am-utils/dist/include: amq_defs.h

Log Message:
fix pointer bug (thanks RVP) and change to use 64 bit times. Don't bother
with backwards compatibility; too much work for little benefit.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/am-utils/dist/amd/amq_subr.c
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/am-utils/dist/amq/amq.c
cvs rdiff -u -r1.1.1.3 -r1.2 src/external/bsd/am-utils/dist/amq/amq_xdr.c
cvs rdiff -u -r1.1.1.3 -r1.2 \
src/external/bsd/am-utils/dist/include/amq_defs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/am-utils/dist/amd/amq_subr.c
diff -u src/external/bsd/am-utils/dist/amd/amq_subr.c:1.3 src/external/bsd/am-utils/dist/amd/amq_subr.c:1.4
--- src/external/bsd/am-utils/dist/amd/amq_subr.c:1.3	Sun Jan 18 11:27:36 2015
+++ src/external/bsd/am-utils/dist/amd/amq_subr.c	Tue Aug 23 03:42:28 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: amq_subr.c,v 1.3 2015/01/18 16:27:36 christos Exp $	*/
+/*	$NetBSD: amq_subr.c,v 1.4 2022/08/23 07:42:28 christos Exp $	*/
 
 /*
  * Copyright (c) 1997-2014 Erez Zadok
@@ -331,7 +331,7 @@ bool_t
 xdr_amq_mount_tree_node(XDR *xdrs, amq_mount_tree *objp)
 {
   am_node *mp = (am_node *) objp;
-  long mtime;
+  longlong_t mtime;
 
   if (!xdr_amq_string(xdrs, &mp->am_al->al_mnt->mf_info)) {
 return (FALSE);
@@ -346,7 +346,7 @@ xdr_amq_mount_tree_node(XDR *xdrs, amq_m
 return (FALSE);
   }
   mtime = mp->am_stats.s_mtime;
-  if (!xdr_long(xdrs, &mtime)) {
+  if (!xdr_longlong_t(xdrs, &mtime)) {
 return (FALSE);
   }
   if (!xdr_u_short(xdrs, &mp->am_stats.s_uid)) {
@@ -530,7 +530,7 @@ xdr_amq_map_info_qelem(XDR *xdrs, qelem 
   u_int len = 0;
   int x;
   char *n;
-  long modify;
+  longlong_t modify;
 
   /*
* Compute length of list
@@ -556,7 +556,7 @@ xdr_amq_map_info_qelem(XDR *xdrs, qelem 
 }
 
 modify = (long)m->modify;
-if (!xdr_long(xdrs, &modify)) {
+if (!xdr_longlong_t(xdrs, &modify)) {
   return (FALSE);
 }
 

Index: src/external/bsd/am-utils/dist/amq/amq.c
diff -u src/external/bsd/am-utils/dist/amq/amq.c:1.3 src/external/bsd/am-utils/dist/amq/amq.c:1.4
--- src/external/bsd/am-utils/dist/amq/amq.c:1.3	Sun Jan 18 10:37:57 2015
+++ src/external/bsd/am-utils/dist/amq/amq.c	Tue Aug 23 03:42:28 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: amq.c,v 1.3 2015/01/18 15:37:57 christos Exp $	*/
+/*	$NetBSD: amq.c,v 1.4 2022/08/23 07:42:28 christos Exp $	*/
 
 /*
  * Copyright (c) 1997-2014 Erez Zadok
@@ -81,7 +81,7 @@ enum show_opt {
 static void
 time_print(time_type tt)
 {
-  time_t t = (time_t)*tt;
+  time_t t = (time_t)tt;
   struct tm *tp = localtime(&t);
   printf("%02d/%02d/%04d %02d:%02d:%02d",
 	 tp->tm_mon + 1, tp->tm_mday,

Index: src/external/bsd/am-utils/dist/amq/amq_xdr.c
diff -u src/external/bsd/am-utils/dist/amq/amq_xdr.c:1.1.1.3 src/external/bsd/am-utils/dist/amq/amq_xdr.c:1.2
--- src/external/bsd/am-utils/dist/amq/amq_xdr.c:1.1.1.3	Sat Jan 17 11:34:15 2015
+++ src/external/bsd/am-utils/dist/amq/amq_xdr.c	Tue Aug 23 03:42:28 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: amq_xdr.c,v 1.1.1.3 2015/01/17 16:34:15 christos Exp $	*/
+/*	$NetBSD: amq_xdr.c,v 1.2 2022/08/23 07:42:28 christos Exp $	*/
 
 /*
  * Copyright (c) 1997-2014 Erez Zadok
@@ -49,7 +49,7 @@
 bool_t
 xdr_time_type(XDR *xdrs, time_type *objp)
 {
-  if (!xdr_long(xdrs, (long *) objp)) {
+  if (!xdr_longlong_t(xdrs, (longlong_t *) objp)) {
 return (FALSE);
   }
   return (TRUE);

Index: src/external/bsd/am-utils/dist/include/amq_defs.h
diff -u src/external/bsd/am-utils/dist/include/amq_defs.h:1.1.1.3 src/external/bsd/am-utils/dist/include/amq_defs.h:1.2
--- src/external/bsd/am-utils/dist/include/amq_defs.h:1.1.1.3	Sat Jan 17 11:34:18 2015
+++ src/external/bsd/am-utils/dist/include/amq_defs.h	Tue Aug 23 03:42:28 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: amq_defs.h,v 1.1.1.3 2015/01/17 16:34:18 christos Exp $	*/
+/*	$NetBSD: amq_defs.h,v 1.2 2022/08/23 07:42:28 christos Exp $	*/
 
 /*
  * Copyright (c) 1997-2014 Erez Zadok
@@ -68,7 +68,7 @@
 /*
  * TYPEDEFS
  */
-typedef long *time_type;
+typedef long long time_type;
 typedef struct amq_mount_info amq_mount_info;
 typedef struct amq_map_info amq_map_info;
 typedef struct amq_mount_stats amq_mount_stats;



CVS commit: src/external/bsd/am-utils/dist/amd

2022-08-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 24 05:01:13 UTC 2022

Modified Files:
src/external/bsd/am-utils/dist/amd: amq_subr.c

Log Message:
remove long cast (thanks RVP)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/am-utils/dist/amd/amq_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/am-utils/dist/amd

2022-08-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Aug 24 05:01:13 UTC 2022

Modified Files:
src/external/bsd/am-utils/dist/amd: amq_subr.c

Log Message:
remove long cast (thanks RVP)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/am-utils/dist/amd/amq_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/am-utils/dist/amd/amq_subr.c
diff -u src/external/bsd/am-utils/dist/amd/amq_subr.c:1.4 src/external/bsd/am-utils/dist/amd/amq_subr.c:1.5
--- src/external/bsd/am-utils/dist/amd/amq_subr.c:1.4	Tue Aug 23 03:42:28 2022
+++ src/external/bsd/am-utils/dist/amd/amq_subr.c	Wed Aug 24 01:01:13 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: amq_subr.c,v 1.4 2022/08/23 07:42:28 christos Exp $	*/
+/*	$NetBSD: amq_subr.c,v 1.5 2022/08/24 05:01:13 christos Exp $	*/
 
 /*
  * Copyright (c) 1997-2014 Erez Zadok
@@ -555,7 +555,7 @@ xdr_amq_map_info_qelem(XDR *xdrs, qelem 
   return (FALSE);
 }
 
-modify = (long)m->modify;
+modify = m->modify;
 if (!xdr_longlong_t(xdrs, &modify)) {
   return (FALSE);
 }



Re: CVS commit: src/external/bsd/am-utils/dist/include

2009-10-28 Thread Joerg Sonnenberger
On Wed, Oct 28, 2009 at 09:08:45AM -0400, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date: Wed Oct 28 13:08:45 UTC 2009
> 
> Modified Files:
>   src/external/bsd/am-utils/dist/include: am_defs.h
> 
> Log Message:
> Deal with errno correctly. Fixed better upstream.

Please just kill that chunk. It is broken and non-portable.
Seriously, if a platform doesn't have errno.h, you have bigger issues.

Joerg


Re: CVS commit: src/external/bsd/am-utils/dist/include

2009-10-28 Thread Christos Zoulas
On Oct 28,  2:17pm, jo...@britannica.bec.de (Joerg Sonnenberger) wrote:
-- Subject: Re: CVS commit: src/external/bsd/am-utils/dist/include

| On Wed, Oct 28, 2009 at 09:08:45AM -0400, Christos Zoulas wrote:
| > Module Name:src
| > Committed By:   christos
| > Date:   Wed Oct 28 13:08:45 UTC 2009
| > 
| > Modified Files:
| > src/external/bsd/am-utils/dist/include: am_defs.h
| > 
| > Log Message:
| > Deal with errno correctly. Fixed better upstream.
| 
| Please just kill that chunk. It is broken and non-portable.
| Seriously, if a platform doesn't have errno.h, you have bigger issues.

Well, am-utils compiles on platforms that don't... Anyway I fixed it more
correctly.

christos