MCPcopy Create free account
hub / github.com/coreutils/coreutils / dev_ino_push

Function dev_ino_push

src/ls.c:1060–1072  ·  view source on GitHub ↗

Push a pair onto the device/inode stack. */

Source from the content-addressed store, hash-verified

1058
1059/* Push a pair onto the device/inode stack. */
1060static void
1061dev_ino_push (dev_t dev, ino_t ino)
1062{
1063 void *vdi;
1064 struct dev_ino *di;
1065 int dev_ino_size = sizeof *di;
1066 obstack_blank (&dev_ino_obstack, dev_ino_size);
1067 vdi = obstack_next_free (&dev_ino_obstack);
1068 di = vdi;
1069 di--;
1070 di->st_dev = dev;
1071 di->st_ino = ino;
1072}
1073
1074/* Pop a dev/ino struct off the global dev_ino_obstack
1075 and return that struct. */

Callers 1

print_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected