dirent on IRIX - d_type and d_fileno?
#11
RE: dirent on IRIX - d_type and d_fileno?
I plan to yes. Because this is mostly taking place on the Tezro and I've neither finished building Git nor Game of Trees (the BSD version of Git) I just haven't yet had time to move it off and commit to an IRIXCE repo.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-25-2021, 02:03 PM
#12
RE: dirent on IRIX - d_type and d_fileno?
FYI, here's the illumos-gate version running on IRIX:

Code:
devel@murasaki ~/irix-6.5.17-src/new-eoe/cmd/diff2 % diff -urnp diff.c diff2.c
diff: conflicting specifications of output style
diff: conflicting specifications of output style
*** diff.c      Thu Apr 15 18:33:46 2021
--- diff2.c     Thu Apr 15 18:39:21 2021
***************
*** 1,42 ****
- /*
-  * CDDL HEADER START
-  *
-  * The contents of this file are subject to the terms of the
-  * Common Development and Distribution License, Version 1.0 only
-  * (the "License").  You may not use this file except in compliance
-  * with the License.
-  *
-  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-  * or http://www.opensolaris.org/os/licensing.
-  * See the License for the specific language governing permissions
-  * and limitations under the License.
-  *
-  * When distributing Covered Code, include this CDDL HEADER in each
-  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-  * If applicable, add the following below this CDDL HEADER, with the
-  * fields enclosed by brackets "[]" replaced with your own identifying
-  * information: Portions Copyright [yyyy] [name of copyright owner]
-  *
-  * CDDL HEADER END
-  */
- /*
-  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
-  * Use is subject to license terms.
-  */
-
- /*    Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
- /*      All Rights Reserved   */
-
- /*
-  * University Copyright- Copyright (c) 1982, 1986, 1988
-  * The Regents of the University of California
-  * All Rights Reserved
-  *
-  * University Acknowledgment- Portions of this document are derived from
-  * software developed by the University of California, Berkeley, and its
-  * contributors.
-  */
-
  #pragma ident "%Z%%M% %I%     %E% SMI"

  /*
--- 1,3 ----

Only real issue? it requires some version of gettext! other than that it's actually pretty damn good. 

It's a good fallback in case my work on rebuilding the OpenBSD one fails.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-25-2021, 04:05 PM
#13
RE: dirent on IRIX - d_type and d_fileno?
devel@murasaki ~/irix-6.5.17-src/new-eoe/cmd/diff % c99 -o diff diff.o diffdir.o diffreg.o xmalloc.o -lxg
ld32: ERROR  33 : Unresolved text symbol "pledge" -- 1st referenced by diff.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR  33 : Unresolved text symbol "err" -- 1st referenced by diff.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR  33 : Unresolved text symbol "errx" -- 1st referenced by diff.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR  33 : Unresolved text symbol "splice" -- 1st referenced by diff.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR  33 : Unresolved text symbol "diffreg" -- 1st referenced by diff.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR  33 : Unresolved text symbol "fgetln" -- 1st referenced by diff.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR  33 : Unresolved text symbol "warnc" -- 1st referenced by diffdir.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR  33 : Unresolved text symbol "warn" -- 1st referenced by diffdir.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: ERROR  33 : Unresolved text symbol "reallocarray" -- 1st referenced by xmalloc.o.
        Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO    152: Output file removed because of error.


Oh shit. Well that didn't last long. Scuttling OpenBSD's diff then, plan b it is! MFW I see impossible to port functions: 



Edit: The real issue isn't warn or anything like that, but pledge(). Pledge is a major framework used by OpenBSD, and I shoulda coulda woulda anticipated it.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
(This post was last modified: 04-25-2021, 05:26 PM by Raion.)
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-25-2021, 04:32 PM
#14
RE: dirent on IRIX - d_type and d_fileno?
For those interested in trying my patch and diff util - here's the binaries:

http://irix.cc/raion/untested/pkgit.tar.gz

Due to me being lazy, you do need Mozilla installed to use diff. If you want to know why, it's because I ghetto rigged libintl.so from mozilla to the diff command so I didn't have to port gettext from Solaris yet! Excuse the ghetto/ratchetness of such an oversight!

I have to refactor the makefiles for this and create a new irixce branch to bring them into the fold. That may be for another day because I'm pretty under the weather.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-25-2021, 05:30 PM
#15
RE: dirent on IRIX - d_type and d_fileno?
Here's a working version that instead requires gettext and expat from freeware. It should work fine if you install those.


Attached Files
.gz IRIX-neweoe-master.tar.gz Size: 47.83 KB  Downloads: 198

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-26-2021, 05:01 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)