Solaris Express Developer Edition Release Notes

Impact to Newly-compiled C binaries:

When code is recompiled, standard development practices should catch any problems that are caused by changes in the uid_t and gid_t type.

Problem areas to be aware of include the following:


1 #include <unistd.h>
2 #include <stdlib.h>
3 #include <stdio.h>
4
5 int
6 main(void)
7 {
8 uid_t negone = -1;
9
10 if (getuid() < 0)
11 exit(1);
12
13 (void) setreuid(negone, getuid());
14
15 (void) printf("%ld\n", getuid());
16
17 return (0);
18 }

Note –

Newly-compiled C binaries can be intermingled with old objects and system objects. The size of the type has not changed.